javaclass

Change of tests/FieldSubclassTest.java

143:0a9d421f9b34
tests/FieldSubclassTest.java
     1.1 --- a/tests/FieldSubclassTest.java	Sat Jan 22 23:35:05 2005 +0100
     1.2 +++ b/tests/FieldSubclassTest.java	Sat Jan 22 23:35:05 2005 +0100
     1.3 @@ -1,2 +1,27 @@
     1.4  public class FieldSubclassTest extends FieldTest {
     1.5 +    public static void main(String[] args) {
     1.6 +        if (FieldSubclassTest.h != null && FieldSubclassTest.h.a == 789) {
     1.7 +            System.out.println("FieldSubclassTest.h.a correct: " + FieldSubclassTest.h.a);
     1.8 +        } else {
     1.9 +            System.out.println("FieldSubclassTest.h.a failed!");
    1.10 +        }
    1.11 +        FieldSubclassTest test = new FieldSubclassTest();
    1.12 +        if (test.h != null && test.h.a == 789) {
    1.13 +            System.out.println("test.h.a correct: " + test.h.a);
    1.14 +        } else {
    1.15 +            System.out.println("test.h.a failed!");
    1.16 +        }
    1.17 +        if (test.e != null && test.e.a == 456) {
    1.18 +            System.out.println("test.e.a correct: " + test.e.a);
    1.19 +        } else {
    1.20 +            System.out.println("test.e.a failed!");
    1.21 +        }
    1.22 +        if (test.f != null && test.f.a == 579) {
    1.23 +            System.out.println("test.f.a correct: " + test.f.a);
    1.24 +        } else {
    1.25 +            System.out.println("test.f.a failed!");
    1.26 +        }
    1.27 +    }
    1.28  }
    1.29 +
    1.30 +// vim: tabstop=4 expandtab shiftwidth=4