01: /**
02: * JavaGuard -- an obfuscation package for Java classfiles.
03: *
04: * Copyright (c) 2002 Thorsten Heit (theit@gmx.de)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * The author may be contacted at theit@gmx.de.
21: *
22: *
23: * $Id: Test1.java,v 1.1 2002/04/16 15:19:31 glurk Exp $
24: */package test;
25:
26: /** This is a simple test class to demonstrate that the obfuscator works.
27: *
28: * @author <a href="mailto:theit@gmx.de">Thorsten Heit</a>
29: */
30: public class Test1 {
31: /** Returns a test string.
32: * @return test string
33: */
34: protected String getText() {
35: return "Hello world";
36: }
37:
38: /** Prints a simple test message to the system console.
39: */
40: public void printMessage() {
41: System.out.println("Test message from Test1: " + getText());
42: }
43:
44: /** Main method that starts the test.
45: * @param args the command line arguments (not used)
46: */
47: public static void main(String[] args) {
48: Test1 t = new Test1();
49: t.printMessage();
50: }
51: }
|