You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The introductory Arquillian example in Chapter 03 uses a remote JBoss container.
The test case deploys the war file built from the main java resources that probably do not contain the test case:
[source,java]
@Deployment
public static WebArchive createDeployment() {
return ShrinkWrap.createFromZipFile(WebArchive.class, new File(
"target/feedback.war"));
}
As the test case assumes to be running in the container I guess that the test case will not run due to the missing class in the Deployment.
Or is there something I have overseen?
Kind regards,
Robert
The text was updated successfully, but these errors were encountered:
Arquillian will slyly add the test case into the WebArchive before it's
deployed; you'll never really see us adding the test case itself (or its
dependencies) in manually. :)
OK, you're right.
Just reproduced it:
It works when testing a WAR, the test class is automatically added to WEB-INF/classes.
But it is not added to an EAR.
(That's what I am always working on, so that's why this made me wonder)
The introductory Arquillian example in Chapter 03 uses a remote JBoss container.
The test case deploys the war file built from the main java resources that probably do not contain the test case:
[source,java]
As the test case assumes to be running in the container I guess that the test case will not run due to the missing class in the Deployment.
Or is there something I have overseen?
Kind regards,
Robert
The text was updated successfully, but these errors were encountered: