This content has been marked as final.
Show 1 reply
-
1. Re: java.lang.IllegalStateException: Error launching request
sm4 Oct 24, 2013 7:30 AM (in response to sm4)Here's a simple example of what fails:
public abstract class ParentTest<T extends MyEntity> extends Arquillian { @Test public static void testMethodThatDoesNotDependOnAnyone() { } // bunch of test classes that use the annotation @Test(dependsOnMethods="previousMethod") @Test public static void testMethodOne() { } @Test(dependsOnMethods="testMethodOne") public static void testMethodTwo() { } // more methods here } public class ChildTestOne extends ParentTest<ExampleOne> { } public class ChildTestTwo extends ParentTest<ExampleTwo> { }
The testMethodThatDoesNotDependOnAnyone will fail in one class (ChildTestOne) with the exception above. If I add testMethodAddedToProveMyPoint() both will fail. In the other class they will run just fine.
Also setting maxTestClassesBeforeRestart to 1 doesn't work properly - both classes will be tested in the second JBoss start.