[jboss-dev-forums] [Design of POJO Server] - Re: Behavior with AbstractKernelController

scott.stark@jboss.org do-not-reply at jboss.com
Wed Aug 23 22:27:35 EDT 2006


The lack of an exception from the start attempt is a red-herring as this is not working anyway. The lack of an exception is masked by the catch(Throwable t) which is catching the junit fail call. If this is changed to:


  |       try
  |       {
  |          server.invoke(serviceOName,"create", new Object[0], new String[0]); 
  |          server.invoke(serviceOName,"start", new Object[0], new String[0]);
  |          fail("Service should not have started");
  |       }
  |       catch(Exception t)
  |       {
  |          log.debug("Service has rightly disagreed to start",t); 
  |       }
  | 

the test fails. The state of the service needs to be queried to ensure that is started rather than relying on getting an exception back.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967130#3967130

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967130



More information about the jboss-dev-forums mailing list