[jboss-user] [JBoss Tools (users)] - How to run the test cases?

SunFire do-not-reply at jboss.com
Fri Nov 30 10:42:41 EST 2007


When I create a Seam EAR project there is also a ProjectName-test created. I also have created a sample action and the matching tests stubs have been created as well including the test-ng definition. How I am supposed to run the test now? I tried to just do a "Run as... TestNG Suite" after installing the Test-NG plugin but that did not work.

  | org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  | 
  | *** DEPLOYMENTS IN ERROR: Name -> Error
  | 
  | vfsfile:/C:/java/workspaces/test/Example-ejb/build/classes/ -> java.lang.IllegalStateException: FileHandler at 262539730[path= context=file:/C:/java/workspaces/test/Example-ejb/build/classes/ real=file:/C:/java/workspaces/test/Example-ejb/build/classes/] has no parent.
  | 
  | 
  | 	at org.jboss.embedded.DeploymentGroup.checkIncomplete(DeploymentGroup.java:151)
  | 	at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:129)
  | 	at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:307)
  | 	at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:14)
  | 	at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
  | 	at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
  | 	at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
  | 	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
  | 	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
  | 	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
  | 	at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
  | 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
  | 	at org.testng.TestRunner.runWorkers(TestRunner.java:689)
  | 	at org.testng.TestRunner.privateRun(TestRunner.java:566)
  | 	at org.testng.TestRunner.run(TestRunner.java:466)
  | 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
  | 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
  | 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
  | 	at org.testng.SuiteRunner.run(SuiteRunner.java:191)
  | 	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
  | 	at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
  | 	at org.testng.TestNG.run(TestNG.java:701)
  | 	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
  | 	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
  | 
  | 

So what is the suggested way to run the tests out of the box?

Thanks, Thorsten

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

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



More information about the jboss-user mailing list