dain        2005/05/08 15:37:10

  Modified:    modules/core/src/test/org/openejb/server/axis
                        WSContainerTest.java
  Log:

  Added KernelFactory for pluggable kernel
  Kernel is now an interface
  Moved Kernel implementation  to basic kernel
  Converted JMX registry and config manager to plain old gbeans (they do not 
require special access to the kernel)
  Magic attributes such as state and enabled are now accessed via kernel methods
  Use of getAttribute and invoke for magic attributes and state transition is 
now deprecated
  Cleaned up cruft in GBean infos such as declaration of non existent attributes
  Upgraded to newest CGLIB, asm, and commons-collections
  
  Revision  Changes    Path
  1.7       +5 -5      
openejb/modules/core/src/test/org/openejb/server/axis/WSContainerTest.java
  
  Index: WSContainerTest.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/test/org/openejb/server/axis/WSContainerTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- WSContainerTest.java      12 Apr 2005 02:17:59 -0000      1.6
  +++ WSContainerTest.java      8 May 2005 19:37:10 -0000       1.7
  @@ -68,6 +68,7 @@
   import junit.framework.TestCase;
   
   import org.apache.geronimo.gbean.GBeanData;
  +import org.apache.geronimo.kernel.KernelFactory;
   import org.apache.geronimo.kernel.Kernel;
   import org.apache.geronimo.kernel.jmx.JMXUtil;
   import org.apache.geronimo.kernel.management.State;
  @@ -96,7 +97,7 @@
       }
   
       public void testGetWSDL() throws Exception {
  -        Kernel kernel = new Kernel("wstest");
  +        Kernel kernel = KernelFactory.newInstance().createKernel("wstest");
           kernel.boot();
   
           URI wsdlURI = new URI("META-INF/wsdl/test-ejb.wsdl");
  @@ -148,7 +149,7 @@
       }
   
       public void testAxisStyleMessage() throws Exception {
  -        Kernel kernel = new Kernel("wstest");
  +        Kernel kernel = KernelFactory.newInstance().createKernel("wstest");
           kernel.boot();
   
           URI wsdlURI = new URI("META-INF/wsdl/test-ejb.wsdl");
  @@ -215,8 +216,7 @@
       }
   
       private void assertRunning(Kernel kernel, ObjectName objectName) throws 
Exception {
  -        int state = ((Integer) kernel.getAttribute(objectName, 
"state")).intValue();
  -        assertEquals("should be running: " + objectName, 
State.RUNNING_INDEX, state);
  +        assertEquals("should be running: " + objectName, 
State.RUNNING_INDEX, kernel.getGBeanState(objectName));
       }
   
       private String getResult(InputStream responseStream) throws 
ParserConfigurationException, SAXException, IOException {
  
  
  

Reply via email to