Skip to content

Commit

Permalink
fix test by using a simple bundle without unresolvable package imports
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlietz committed Nov 3, 2024
1 parent 5c163ab commit 2de3a49
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

import javax.inject.Inject;

import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.ops4j.pax.exam.Configuration;
Expand All @@ -43,17 +42,17 @@ public class UseFeatureInsteadOfDeployFolderTest extends TestBase {
public Option[] config() {
return options(
regressionDefaults(unpackDirectory()),
mavenBundle("org.slf4j", "slf4j-api", "1.6.1"));
mavenBundle("org.apache.sling", "org.apache.sling.commons.messaging", "1.0.2")
);
}

@Ignore
@Test
public void test() throws Exception {
for (Bundle b : bc.getBundles()) {
if (b.getSymbolicName().equals("slf4j.api")) {
if (b.getSymbolicName().equals("org.apache.sling.commons.messaging")) {
return;
}
}
fail("slf4j-api is not provisioned");
fail("bundle org.apache.sling.commons.messaging is not provisioned");
}
}

0 comments on commit 2de3a49

Please sign in to comment.