1 19 20 package org.netbeans.modules.web.project.test; 21 22 import org.netbeans.junit.NbTestCase; 23 import org.openide.filesystems.Repository; 24 25 30 public class TestBase extends NbTestCase { 31 32 private static final Repository REPOSITORY; 33 34 static { 35 REPOSITORY = new RepositoryImpl(); 36 setLookup(new Object [0]); 38 } 39 40 public static void setLookup(Object [] instances) { 41 Object [] newInstances = new Object [instances.length + 1]; 42 System.arraycopy(instances, 0, newInstances, 0, instances.length); 43 newInstances[newInstances.length - 1] = REPOSITORY; 44 45 TestUtil.setLookup(newInstances); 46 } 47 48 public TestBase(String name) { 49 super(name); 50 } 51 } 52 | Popular Tags |