1 19 25 26 package org.netbeans.modules.j2ee.sun.ide.j2ee; 27 28 import javax.enterprise.deploy.spi.DeploymentManager ; 29 import junit.framework.*; 30 import org.netbeans.modules.j2ee.deployment.plugins.api.OptionalDeploymentManagerFactory; 31 import org.netbeans.modules.j2ee.deployment.plugins.api.FindJSPServlet; 32 import org.netbeans.modules.j2ee.deployment.plugins.api.IncrementalDeployment; 33 import org.netbeans.modules.j2ee.deployment.plugins.api.StartServer; 34 import org.netbeans.modules.j2ee.deployment.plugins.api.TargetModuleIDResolver; 35 import org.netbeans.modules.j2ee.sun.ide.j2ee.jsps.FindJSPServletImpl; 36 import org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade; 37 38 39 import org.netbeans.modules.j2ee.sun.share.SunDeploymentManager; 40 41 45 public class OptionalFactoryTest extends TestCase { 46 private SunDeploymentManager dm; 47 public OptionalFactoryTest(java.lang.String testName) { 48 super(testName); 49 dm =new SunDeploymentManager(null,null,"localhost",4848); 50 } 51 52 55 public void testGetFindJSPServlet() { 56 System.out.println("testGetFindJSPServlet"); 57 OptionalFactory f = new OptionalFactory(); 58 assertTrue(null!=f.getFindJSPServlet(dm)); 59 60 } 63 64 67 public void testGetIncrementalDeployment() { 68 System.out.println("testGetIncrementalDeployment"); 69 OptionalFactory f = new OptionalFactory( ); 70 assertTrue(null!=f.getIncrementalDeployment(dm)); 71 72 } 75 76 79 public void testGetStartServer() { 80 System.out.println("testGetStartServer"); 81 OptionalFactory f = new OptionalFactory( ); 82 assertTrue(null!=f.getStartServer(dm)); 83 84 } 87 88 91 public void testGetTargetModuleIDResolver() { 92 System.out.println("testGetTargetModuleIDResolver"); 93 OptionalFactory f = new OptionalFactory( ); 94 assertTrue(null==f.getTargetModuleIDResolver(dm)); 95 96 } 97 98 102 103 } 104 | Popular Tags |