-
Bug
-
Resolution: Done
-
Major
-
None
-
1.2.6
-
None
The surefire configuration in the root pom.xml only includes:
<includes> <include>**/*TestCase.java</include> <include>**/*TestSuite.java</include> </includes>
The following test classes do not adhere to this and are therefore never executed:
impl-base/src/test/java/org/jboss/shrinkwrap/impl/base/spec/AddPackageFromJarContainingWebInfTest.java impl-base/src/test/java/org/jboss/shrinkwrap/impl/base/spec/AddPackageFromWarTest.java impl-base/src/test/java/org/jboss/shrinkwrap/impl/base/spec/AddPackageFromWarWithNonRootClassloaderTest.java
I fixed the names locally but then execution of all three tests fails because these tests are using JDK7 classes but are executed with JDK5 (see surefire config in impl-base/pom.xml):
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.007 sec <<< FAILURE! - in org.jboss.shrinkwrap.impl.base.spec.AddPackageFromWarWithNonRootClassloaderTestCase initializationError(org.jboss.shrinkwrap.impl.base.spec.AddPackageFromWarWithNonRootClassloaderTestCase) Time elapsed: 0.006 sec <<< ERROR! java.lang.NoClassDefFoundError: Ljava/nio/file/Path; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2259) at java.lang.Class.getDeclaredFields(Class.java:1715) at org.junit.runners.model.TestClass.<init>(TestClass.java:42) at org.junit.runners.ParentRunner.<init>(ParentRunner.java:65) at org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:58) at org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:13) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
- is related to
-
SHRINKWRAP-516 ContainerBase.addPackages() fails with IllegalArgumentException from ClassLoaderAsset
- Pull Request Sent