KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > ide > j2ee > OptionalFactoryTest


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * OptionalFactoryTest.java
21  * JUnit based test
22  *
23  * Created on March 30, 2004, 2:16 PM
24  */

25
26 package org.netbeans.modules.j2ee.sun.ide.j2ee;
27
28 import javax.enterprise.deploy.spi.DeploymentManager JavaDoc;
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 /**
42  *
43  * @author ludo
44  */

45 public class OptionalFactoryTest extends TestCase {
46     private SunDeploymentManager dm;
47     public OptionalFactoryTest(java.lang.String JavaDoc testName) {
48         super(testName);
49         dm =new SunDeploymentManager(null,null,"localhost",4848);
50     }
51     
52     /**
53      * Test of getFindJSPServlet method, of class org.netbeans.modules.j2ee.sun.ide.j2ee.OptionalFactory.
54      */

55     public void testGetFindJSPServlet() {
56         System.out.println("testGetFindJSPServlet");
57         OptionalFactory f = new OptionalFactory();
58         assertTrue(null!=f.getFindJSPServlet(dm));
59         
60         // TODO add your test code below by replacing the default call to fail.
61
// fail("The test case is empty.");
62
}
63     
64     /**
65      * Test of getIncrementalDeployment method, of class org.netbeans.modules.j2ee.sun.ide.j2ee.OptionalFactory.
66      */

67     public void testGetIncrementalDeployment() {
68         System.out.println("testGetIncrementalDeployment");
69         OptionalFactory f = new OptionalFactory( );
70         assertTrue(null!=f.getIncrementalDeployment(dm));
71         
72         // TODO add your test code below by replacing the default call to fail.
73
// fail("The test case is empty.");
74
}
75     
76     /**
77      * Test of getStartServer method, of class org.netbeans.modules.j2ee.sun.ide.j2ee.OptionalFactory.
78      */

79     public void testGetStartServer() {
80         System.out.println("testGetStartServer");
81         OptionalFactory f = new OptionalFactory( );
82         assertTrue(null!=f.getStartServer(dm));
83         
84         // TODO add your test code below by replacing the default call to fail.
85
// fail("The test case is empty.");
86
}
87     
88     /**
89      * Test of getTargetModuleIDResolver method, of class org.netbeans.modules.j2ee.sun.ide.j2ee.OptionalFactory.
90      */

91     public void testGetTargetModuleIDResolver() {
92         System.out.println("testGetTargetModuleIDResolver");
93         OptionalFactory f = new OptionalFactory( );
94         assertTrue(null==f.getTargetModuleIDResolver(dm));
95
96     }
97     
98     // TODO add test methods here, they have to start with 'test' name.
99
// for example:
100
// public void testHello() {}
101

102     
103 }
104
Popular Tags