KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > share > management > UtilMEJBTest


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  * UtilMEJBTest.java
21  * JUnit based test
22  *
23  * Created on May 20, 2004, 3:12 PM
24  */

25
26 package org.netbeans.modules.j2ee.sun.share.management;
27
28 //import javax.management.*;
29
//import javax.management.j2ee.Management;
30
//import javax.management.j2ee.ManagementHome;
31
//import javax.management.remote.JMXConnector;
32
//import javax.management.remote.JMXServiceURL;
33
import javax.management.MBeanServerConnection JavaDoc;
34 //import javax.management.MBeanException;
35
//import javax.management.ReflectionException;
36
//import javax.management.IntrospectionException;
37
//import javax.management.InstanceNotFoundException;
38
//import javax.management.AttributeNotFoundException;
39
//import javax.management.InvalidAttributeValueException;
40
//import java.io.File;
41
//import javax.swing.JOptionPane;
42
//import java.util.Set;
43
//import java.util.Arrays;
44
//import java.util.HashSet;
45
//import java.util.Hashtable;
46
//import javax.naming.*;
47
//import javax.rmi.PortableRemoteObject;
48
//import java.util.Iterator;
49
//import java.util.Properties;
50
//import javax.enterprise.deploy.spi.DeploymentManager;
51
//import java.rmi.RemoteException;
52
//import com.sun.enterprise.admin.jmx.remote.DefaultConfiguration;
53
//import com.sun.enterprise.admin.jmx.remote.SunOneHttpJmxConnectorFactory;
54
//import com.sun.enterprise.deployment.util.DeploymentProperties;
55
//import org.netbeans.modules.j2ee.sun.ide.j2ee.mbmapping.*;
56
//import org.netbeans.modules.j2ee.sun.ide.j2ee.runtime.nodes.Constants;
57
//import org.netbeans.modules.j2ee.sun.ide.j2ee.DeploymentManagerProperties;
58
//import org.netbeans.modules.j2ee.sun.share.SunDeploymentManagerInterface;
59
import junit.framework.*;
60
61 import org.netbeans.modules.j2ee.sun.share.management.UtilMEJB;
62
63 /**
64  *
65  * @author vkraemer
66  */

67 public class UtilMEJBTest extends TestCase {
68     
69     public void testCreate() {
70         UtilMEJB foo = new UtilMEJB("iasengsol7.red.iplanet.com",4849,"admin","adminadmin");
71         MBeanServerConnection JavaDoc bar = foo.getConnection();
72         foo.getServerName();
73  
74     }
75
76     
77     public UtilMEJBTest(java.lang.String JavaDoc testName) {
78         super(testName);
79     }
80     
81 }
82     
83     /**
84      * Test of getServerName method, of class org.netbeans.modules.j2ee.sun.share.management.UtilMEJB.
85      *
86     public void testGetServerName() {
87         System.out.println("testGetServerName");
88         
89         // TODO add your test code below by replacing the default call to fail.
90         fail("The test case is empty.");
91     }
92     
93     /**
94      * Test of getConnection method, of class org.netbeans.modules.j2ee.sun.share.management.UtilMEJB.
95      *
96     public void testGetConnection() {
97         System.out.println("testGetConnection");
98         
99         // TODO add your test code below by replacing the default call to fail.
100         fail("The test case is empty.");
101     }
102     
103     
104     /**
105      * Test of updateGetAttributes method, of class org.netbeans.modules.j2ee.sun.share.management.UtilMEJB.
106      *
107     public void testUpdateGetAttributes() {
108         System.out.println("testUpdateGetAttributes");
109         
110         // TODO add your test code below by replacing the default call to fail.
111         fail("The test case is empty.");
112     }
113     
114     /**
115      * Test of updateGetAttribute method, of class org.netbeans.modules.j2ee.sun.share.management.UtilMEJB.
116      *
117     public void testUpdateGetAttribute() {
118         System.out.println("testUpdateGetAttribute");
119         
120         // TODO add your test code below by replacing the default call to fail.
121         fail("The test case is empty.");
122     }
123     
124     /**
125      * Test of updateInvoke method, of class org.netbeans.modules.j2ee.sun.share.management.UtilMEJB.
126      *
127     public void testUpdateInvoke() {
128         System.out.println("testUpdateInvoke");
129         
130         // TODO add your test code below by replacing the default call to fail.
131         fail("The test case is empty.");
132     }
133     
134     /**
135      * Test of queryServer method, of class org.netbeans.modules.j2ee.sun.share.management.UtilMEJB.
136      *
137     public void testQueryServer() {
138         System.out.println("testQueryServer");
139         
140         // TODO add your test code below by replacing the default call to fail.
141         fail("The test case is empty.");
142     }
143     
144     /**
145      * Test of updateMBeanInfo method, of class org.netbeans.modules.j2ee.sun.share.management.UtilMEJB.
146      *
147     public void testUpdateMBeanInfo() {
148         System.out.println("testUpdateMBeanInfo");
149         
150         // TODO add your test code below by replacing the default call to fail.
151         fail("The test case is empty.");
152     }
153     
154     /**
155      * Test of updateSetAttribute method, of class org.netbeans.modules.j2ee.sun.share.management.UtilMEJB.
156      *
157     public void testUpdateSetAttribute() {
158         System.out.println("testUpdateSetAttribute");
159         
160         // TODO add your test code below by replacing the default call to fail.
161         fail("The test case is empty.");
162     }
163     
164     // TODO add test methods here, they have to start with 'test' name.
165     // for example:
166     // public void testHello() {}
167     
168     
169 }*/

170
Popular Tags