-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.0.0.CR6
I use following components / versions:
arquillian-junit-container - 1.0.0.CR6
jboss - 7.1.0.Beta1
jboss-as-arquillian-container-remote - 7.1.0.Beta1
junit - 4.10
I have folloging testcase:
@RunWith(Arquillian.class)
public class DatasourceSessionBeanTest {
@Deployment
public static JavaArchive createTestArchive()
@EJB(mappedName = "java:app/datasource-test/DatasourceSessionBean")
private DatasourceServiceRemote datasourceService;
@Test
public void testGetByRoid()
}
-> A manifest.mf is added containing 'Dependencies: org.slf4j'
When running the test "as a junit test", slf4j is found and logging works.
When the tests are executed from maven lifecycle, I get a ClassNotFoundException org.slf4j.Logger and the test fails.
By adding dependencies to org.slf4j and org.jboss.logmanager to the pom and by adding them to the ShrinkWrap archive (see the two commented lines), the test works, although no logging is done.
Dependencies to modules in manifest.mf should also be recognized when the tests are run from maven.