1 19 20 package org.netbeans.modules.apisupport.project.universe; 21 22 import org.netbeans.modules.apisupport.project.NbModuleProject; 23 import org.netbeans.modules.apisupport.project.TestBase; 24 25 30 public class LocalizedBundleInfoTest extends TestBase { 31 32 public LocalizedBundleInfoTest(String name) { 33 super(name); 34 } 35 36 public void testIsModified() throws Exception { 37 NbModuleProject p = generateStandaloneModule("module1"); 38 LocalizedBundleInfo.Provider provider = (LocalizedBundleInfo.Provider) p.getLookup().lookup(LocalizedBundleInfo.Provider.class); 39 LocalizedBundleInfo info = provider.getLocalizedBundleInfo(); 40 assertFalse("just loaded", info.isModified()); 41 info.setCategory("my new category"); 42 assertTrue("modified", info.isModified()); 43 info.setCategory("mistyped category"); 44 assertTrue("modified", info.isModified()); 45 info.reload(); 46 assertFalse("reloaded", info.isModified()); 47 } 48 49 } 50 | Popular Tags |