8182838485868788899091
Assert.assertTrue(manager.getExtension(TestObserver.class).wasCalled); } finally { context.deactivate(); context.destroy(); } } @Test(expected = IllegalStateException.class)
5960616263646566676869
Assert.assertTrue(manager.getExtension(TestExtension.class).wasCalled); } finally { context.deactivate(); context.destroy(); } } @Test
96979899100101102103104105106
} finally { classContext.deactivate(); classContext.destroy(this.getClass()); suiteContext.deactivate(); suiteContext.destroy(); } } @Test
5253545556575859606162
Assert.assertEquals( "Verify that we can get objects from a active context", new Boolean(true), store.get(Boolean.class)); context.deactivate(); Assert.assertFalse(context.isActive()); try { context.getObjectStore();
7374757677787980818283
new Boolean(true), store.get(Boolean.class)); } finally { context.deactivate(); context.destroy(); } }
107108109110111112113114115116
Assert.fail("Thread never called?"); } } finally { context.deactivate(); context.destroy(); } } }
8586878889909192939495
containerContext.destroy(""); } } finally { context.deactivate(); context.destroy(); } } public static class TestObserverOne
5758596061626364656667
"Verify expected object was returned", testObject, instance.get()); } finally { context.deactivate(); context.destroy(); } } @Test
5354555657585960616263
suiteContext.activate(); context.proceed(); } finally { suiteContext.deactivate(); } } public void createClassContext(@Observes EventContext<ClassEvent> context) {