1 19 20 package org.netbeans.modules.j2ee.deployment.impl; 21 22 import junit.framework.*; 23 import org.netbeans.junit.*; 24 25 import javax.enterprise.deploy.spi.DeploymentManager ; 26 import javax.enterprise.deploy.spi.Target ; 27 import org.netbeans.modules.j2ee.deployment.plugins.api.ServerProgress; 28 import org.netbeans.tests.j2eeserver.plugin.jsr88.*; 29 import org.netbeans.modules.j2ee.deployment.impl.ui.*; 30 import org.openide.filesystems.*; 31 32 36 public class ServerInstanceTest extends ServerRegistryTestBase { 37 38 public ServerInstanceTest(java.lang.String testName) { 39 super(testName); 40 } 41 42 46 public void testStartStopInstance() throws java.io.IOException { 47 ServerRegistry registry = ServerRegistry.getInstance(); 49 String url = "fooservice:testStartStopInstance"; 50 registry.addInstance(url, "user", "password", "TestInstance"); 51 ServerInstance instance = registry.getServerInstance(url); 52 ServerTarget target = instance.getServerTarget("Target 1"); 53 54 } 56 57 61 } 95 | Popular Tags |