Juri Berlanda created DELTASPIKE-1372:
-----------------------------------------
Summary: 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
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)