Skip to content

Commit 3aef950

Browse files
glimmerveenstbischof
authored andcommitted
Added flag towards Pax Exam that ensures the Pax Exam test fails if there are unresolved bundles within the test runtime. This to avoid trying to run in a test in an inconsistent/incomplete environment (as some of the bundles were unresolved due to an incompatible version being used).
1 parent da26bc3 commit 3aef950

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
package org.apache.felix.scr.integration;
2020

21+
import static org.ops4j.pax.exam.Constants.EXAM_FAIL_ON_UNRESOLVED_KEY;
2122
import static org.ops4j.pax.exam.CoreOptions.frameworkProperty;
2223
import static org.ops4j.pax.exam.CoreOptions.junitBundles;
2324
import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
@@ -199,7 +200,8 @@ public static Option[] configuration()
199200
systemProperty( "ds.factory.enabled" ).value( Boolean.toString( NONSTANDARD_COMPONENT_FACTORY_BEHAVIOR ) ),
200201
systemProperty( "ds.loglevel" ).value( DS_LOGLEVEL ),
201202
systemProperty( "ds.cache.metadata" ).value( Boolean.toString(CACHE_META_DATA) ),
202-
systemProperty( "logback.configurationFile" ).value( "src/test/resources/logback-test.xml" )
203+
systemProperty( "logback.configurationFile" ).value( "src/test/resources/logback-test.xml" ),
204+
systemProperty( EXAM_FAIL_ON_UNRESOLVED_KEY ).value( "true" )
203205

204206
);
205207
final Option vmOption = ( paxRunnerVmOption != null )? CoreOptions.vmOption( paxRunnerVmOption ): null;

0 commit comments

Comments
 (0)