1 19 20 package org.netbeans.core.startup; 21 22 26 public class NbInstallerTest1 extends SetupHid { 27 28 public NbInstallerTest1(String name) { 29 super(name); 30 } 31 32 protected void setUp() throws Exception { 33 super.setUp(); 34 System.setProperty("org.netbeans.core.modules.NbInstaller.noAutoDeps", "true"); 35 36 System.setProperty("org.netbeans.core.startup.specialResource", "test1,foo.bar2"); 37 } 38 39 40 public void testIsSpecialResource() throws Exception { 41 Main.getModuleSystem (); final FakeEvents ev = new FakeEvents(); 43 org.netbeans.core.startup.NbInstaller installer = new org.netbeans.core.startup.NbInstaller(ev); 44 assertTrue("Parts of openide are speical", installer.isSpecialResource("org/openide/windows/")); 45 assertTrue("test1 is in the sys property", installer.isSpecialResource("test1")); 46 assertFalse("foo.bar is regular", installer.isSpecialResource("foo.bar")); 47 assertTrue("foo.bar2 is in the sys property", installer.isSpecialResource("foo.bar2")); 48 } 49 50 } 51 | Popular Tags |