Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2012-09-21 01:45:51 +0000
committerGreg Wilkins2012-09-21 01:45:51 +0000
commit68ee346b8a4eeb38c8ef0277973b96ddc6b0bb72 (patch)
treed6a85e868fda781fd9c99d63a79a7b232cdcaaa5 /jetty-deploy/src/test
parent15804e76e2f0a168016e7d27245e06818fb68b92 (diff)
downloadorg.eclipse.jetty.project-68ee346b8a4eeb38c8ef0277973b96ddc6b0bb72.tar.gz
org.eclipse.jetty.project-68ee346b8a4eeb38c8ef0277973b96ddc6b0bb72.tar.xz
org.eclipse.jetty.project-68ee346b8a4eeb38c8ef0277973b96ddc6b0bb72.zip
jetty-9 combined the Container and AggregateLifeCycle into ContainerLifeCycle
Diffstat (limited to 'jetty-deploy/src/test')
-rw-r--r--jetty-deploy/src/test/java/org/eclipse/jetty/deploy/DeploymentManagerLifeCyclePathTest.java3
-rw-r--r--jetty-deploy/src/test/java/org/eclipse/jetty/deploy/providers/ScanningAppProviderRuntimeUpdatesTest.java2
2 files changed, 2 insertions, 3 deletions
diff --git a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/DeploymentManagerLifeCyclePathTest.java b/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/DeploymentManagerLifeCyclePathTest.java
index a5e6161839..c4eb14a5d5 100644
--- a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/DeploymentManagerLifeCyclePathTest.java
+++ b/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/DeploymentManagerLifeCyclePathTest.java
@@ -98,8 +98,7 @@ public class DeploymentManagerLifeCyclePathTest
// Setup JMX
MBeanContainer mbContainer=new MBeanContainer(ManagementFactory.getPlatformMBeanServer());
- mbContainer.start();
- mbContainer.addBean(depman);
+ depman.addBean(mbContainer);
depman.addLifeCycleBinding(pathtracker);
depman.addAppProvider(mockProvider);
diff --git a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/providers/ScanningAppProviderRuntimeUpdatesTest.java b/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/providers/ScanningAppProviderRuntimeUpdatesTest.java
index 982907a7c7..3f314aa94f 100644
--- a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/providers/ScanningAppProviderRuntimeUpdatesTest.java
+++ b/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/providers/ScanningAppProviderRuntimeUpdatesTest.java
@@ -63,7 +63,7 @@ public class ScanningAppProviderRuntimeUpdatesTest
jetty.start();
// monitor tick
- DeploymentManager dm = jetty.getServer().getBeans(DeploymentManager.class).get(0);
+ DeploymentManager dm = jetty.getServer().getBean(DeploymentManager.class);
for (AppProvider provider : dm.getAppProviders())
{
if (provider instanceof ScanningAppProvider)

Back to the top