1 19 package org.netbeans.api.java.source.gen; 20 21 import java.io.IOException ; 22 import java.util.List ; 23 import junit.textui.TestRunner; 24 import org.netbeans.junit.NbTestCase; 25 import org.netbeans.junit.NbTestSuite; 26 import org.openide.filesystems.FileStateInvalidException; 27 28 34 public class FieldTest3 extends GeneratorTest { 35 36 37 public FieldTest3(String name) { 38 super(name); 39 } 40 41 public static NbTestSuite suite() { 42 NbTestSuite suite = new NbTestSuite(FieldTest3.class); 43 return suite; 44 } 45 46 protected void setUp() throws Exception { 47 super.setUp(); 48 testFile = getFile(getSourceDir(), getSourcePckg() + "FieldTest3.java"); 49 } 50 51 54 public void testGroupInitValues() throws IOException { 55 System.err.println("testGroupInitValues"); 56 60 assertFiles("testGroupInitValues_FieldTest3.pass"); 61 } 62 63 66 public void testGroupSeparation() throws IOException { 67 System.err.println("testGroupSeparation"); 68 72 assertFiles("testGroupSeparation_FieldTest3.pass"); 73 } 74 75 78 public static void main(String [] args) { 79 TestRunner.run(suite()); 80 } 81 82 String getSourcePckg() { 83 return "org/netbeans/test/codegen/"; 84 } 85 86 String getGoldenPckg() { 87 return "org/netbeans/jmi/javamodel/codegen/FieldTest3/"; 88 } 89 } 90 | Popular Tags |