Details
-
Bug
-
Resolution: Done
-
Major
-
1.0.0.Alpha5
-
None
-
-
- Give the @Deployment annotations unique name attributes.
- Reference the deployment in the test methods with @OperateOnDeployment
Description
When there are multiple @Deployment methods in a test, and the @Deployment methods have the same name Arquillian will throw a NullPointerException:
testSomething(eg.domainmodel.UserTest) Time elapsed: 0.019 sec <<< ERROR! java.lang.NullPointerException at org.jboss.arquillian.protocol.servlet.ServletUtil.determineBaseURI(ServletUtil.java:44) at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:56) at org.jboss.arquillian.protocol.servlet.BaseServletProtocol.getExecutor(BaseServletProtocol.java:30) at org.jboss.arquillian.impl.execution.RemoteTestExecuter.getContainerMethodExecutor(RemoteTestExecuter.java:105) at org.jboss.arquillian.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ...