paul@67 | 1 | public class FieldSubclassTest extends FieldTest { |
paul@143 | 2 | public static void main(String[] args) { |
paul@143 | 3 | if (FieldSubclassTest.h != null && FieldSubclassTest.h.a == 789) { |
paul@143 | 4 | System.out.println("FieldSubclassTest.h.a correct: " + FieldSubclassTest.h.a); |
paul@143 | 5 | } else { |
paul@143 | 6 | System.out.println("FieldSubclassTest.h.a failed!"); |
paul@143 | 7 | } |
paul@143 | 8 | FieldSubclassTest test = new FieldSubclassTest(); |
paul@143 | 9 | if (test.h != null && test.h.a == 789) { |
paul@143 | 10 | System.out.println("test.h.a correct: " + test.h.a); |
paul@143 | 11 | } else { |
paul@143 | 12 | System.out.println("test.h.a failed!"); |
paul@143 | 13 | } |
paul@143 | 14 | if (test.e != null && test.e.a == 456) { |
paul@143 | 15 | System.out.println("test.e.a correct: " + test.e.a); |
paul@143 | 16 | } else { |
paul@143 | 17 | System.out.println("test.e.a failed!"); |
paul@143 | 18 | } |
paul@143 | 19 | if (test.f != null && test.f.a == 579) { |
paul@143 | 20 | System.out.println("test.f.a correct: " + test.f.a); |
paul@143 | 21 | } else { |
paul@143 | 22 | System.out.println("test.f.a failed!"); |
paul@143 | 23 | } |
paul@143 | 24 | } |
paul@67 | 25 | } |
paul@143 | 26 | |
paul@143 | 27 | // vim: tabstop=4 expandtab shiftwidth=4 |