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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...