Skip to content

Commit

Permalink
ARIES-2160 - Simple MBeanServer based on the platform implementation
Browse files Browse the repository at this point in the history
Use the new MBeanServer Platform bundle in the ITs
  • Loading branch information
rombert committed Dec 16, 2024
1 parent 961c9ff commit c43e03e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 45 deletions.
5 changes: 5 additions & 0 deletions jmx/jmx-itests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
<artifactId>org.apache.aries.jmx.core.whiteboard</artifactId>
<version>1.1.7-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.aries.jmx</groupId>
<artifactId>org.apache.aries.jmx.mbeanserver-platform</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@
import javax.management.MBeanServerInvocationHandler;
import javax.management.ObjectName;

import org.apache.aries.jmx.test.MbeanServerActivator;
import org.junit.runner.RunWith;
import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.junit.PaxExam;
import org.ops4j.pax.exam.options.MavenArtifactProvisionOption;
import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
import org.ops4j.pax.exam.spi.reactors.PerClass;
import org.osgi.framework.Bundle;
Expand Down Expand Up @@ -87,17 +85,10 @@ protected Option jmxRuntime() {
mavenBundle("org.apache.aries.jmx", "org.apache.aries.jmx.api").versionAsInProject(),
mavenBundle("org.apache.aries.jmx", "org.apache.aries.jmx.whiteboard").versionAsInProject(),
mavenBundle("org.apache.aries.testsupport", "org.apache.aries.testsupport.unit").versionAsInProject(),
mbeanServerBundle()
mavenBundle("org.apache.aries.jmx", "org.apache.aries.jmx.mbeanserver-platform").versionAsInProject()
);
}

protected Option mbeanServerBundle() {
return provision(bundle()
.add(MbeanServerActivator.class)
.set(Constants.BUNDLE_ACTIVATOR, MbeanServerActivator.class.getName())
.build(withBnd()));
}

protected Option bundlea() {
return provision(bundle()
.add(org.apache.aries.jmx.test.bundlea.Activator.class)
Expand Down

This file was deleted.

0 comments on commit c43e03e

Please sign in to comment.