[ https://issues.apache.org/jira/browse/DELTASPIKE-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16794574#comment-16794574 ]
ASF subversion and git services commented on DELTASPIKE-1372: ------------------------------------------------------------- Commit fcb567c9104d59a65953eb5f928901f177a199fe in deltaspike's branch refs/heads/master from Gerhard Petracek [ https://gitbox.apache.org/repos/asf?p=deltaspike.git;h=fcb567c ] Merge pull request #86 from j-be/DELTASPIKE-1372 DELTASPIKE-1372 fixed dependency > Test-Control module has a undeclared and undocumented de-facto runtime > dependency on core-impl > ---------------------------------------------------------------------------------------------- > > Key: DELTASPIKE-1372 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1372 > Project: DeltaSpike > Issue Type: Bug > Components: TestControl > Affects Versions: 1.9.0 > Reporter: Juri Berlanda > Priority: Major > Time Spent: 20m > Remaining Estimate: 0h > > When setting up Test-Control Module like described in > [http://deltaspike.apache.org/documentation/test-control.html] I end up with: > {{java.lang.ExceptionInInitializerError}} > {{ at > org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner.<clinit>(CdiTestRunner.java:87)}} > {{ at > org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)}} > {{ at > org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)}} > {{ at > org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)}} > {{ at > org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)}} > {{ Caused by: java.lang.RuntimeException: Could not load ConfigProvider}} > {{ at > org.apache.deltaspike.core.api.config.ConfigResolver.getConfigProvider(ConfigResolver.java:628)}} > {{ at > org.apache.deltaspike.core.api.config.ConfigResolver.resolve(ConfigResolver.java:613)}} > {{ at > org.apache.deltaspike.testcontrol.api.junit.TestBaseConfig$ContainerIntegration.<clinit>(TestBaseConfig.java:29)}} > {{ ... 15 more}} > The reason is, that {{deltaspike-core-impl}} is missing on the classpath. > Adding it solves the problem. > So imho. we should add a {{runtime}} dependency on {{deltaspike-core-impl}} > to {{deltaspike-test-control-module-impl}}. It should be a matter of > replacing {{<scope>test</scope>}} to {{<scope>runtime</scope>}} on > {{deltaspike-core-impl}} in {{deltaspike-test-control-module-impl}}'s > {{pom.xml}}. > I'll create a pull-request doing exactly that in a moment. > EDIT: Pull-request exists at https://github.com/apache/deltaspike/pull/86 -- This message was sent by Atlassian JIRA (v7.6.3#76005)