Skip to content

Commit

Permalink
#20840 fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
wezell authored and dsilvam committed Aug 3, 2022
1 parent 2b678e4 commit c10e479
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.util.Arrays;
import java.util.Optional;
import net.bytebuddy.agent.ByteBuddyAgent;
import org.apache.felix.framework.OSGISystem;
import org.apache.felix.framework.OSGIUtil;
import org.junit.BeforeClass;
import org.junit.Ignore;
Expand Down Expand Up @@ -98,9 +99,9 @@ public void test_dotsaml_inits_properly() {
*/
@Test
public void test_tika_inits_properly() {
BundleContext context = HostActivator.instance().getBundleContext();
Bundle[] bundles = OSGISystem.getInstance().getBundles();

Optional<Bundle> dotTika = Arrays.asList(context.getBundles())
Optional<Bundle> dotTika = Arrays.asList(bundles)
.stream()
.filter(b -> b.getSymbolicName().equals("com.dotcms.tika"))
.findFirst();
Expand Down

0 comments on commit c10e479

Please sign in to comment.