1 19 20 package org.netbeans.core.projects; 21 22 import java.lang.reflect.Modifier ; 23 import junit.framework.*; 24 import org.netbeans.junit.*; 25 import org.netbeans.core.projects.SettingChildren; 26 import org.netbeans.core.projects.SettingChildren.FileStateProperty; 27 28 32 public class FileStatePropertyTest extends NbTestCase { 33 34 public FileStatePropertyTest(java.lang.String testName) { 35 super(testName); 36 } 37 38 public static void main(java.lang.String [] args) { 39 junit.textui.TestRunner.run(new NbTestSuite(FileStatePropertyTest.class)); 40 } 41 42 45 public void testJellyCompatibility() { 46 try { 47 assertTrue("SettingChildren class is public", Modifier.isPublic(SettingChildren.class.getModifiers())); 48 assertTrue("FileStateProperty class is public", Modifier.isPublic(FileStateProperty.class.getModifiers())); 49 try { 50 new FileStateProperty("Modules-Layer").getValue(); 51 } catch (NullPointerException npe) {} 52 } catch (Exception e) { 53 throw new AssertionFailedErrorException("JellyTools compatibility conflict, please contact QA or any JellyTools developer.", e); 54 } 55 } 56 57 58 } 59 | Popular Tags |