103104105106107108109110111112113
context.getObjectStore().get(String.class)); } finally { context.deactivate(); } Assert.assertTrue( "Outer Context should still be active", context.isActive());
112113114115116117118119120121122
"Outer Context should still be active", context.isActive()); } finally { context.deactivate(); context.clearAll(); } } @Test public void shouldBeAbleToReadFromChildThread() throws Exception
7778798081828384858687
"Should have set a Double in container scope", containerContext.getObjectStore().get(Double.class)); } finally { containerContext.deactivate(); containerContext.destroy("A"); } } finally {
93949596979899100101102103
"Verify value was not bound to any other context", classContext.getObjectStore().get(Object.class)); } finally { classContext.deactivate(); classContext.destroy("A"); suiteContext.deactivate(); suiteContext.destroy(); } }
134135136137138139140141142143144
143144145146147148149150151152
"Outer Context should still be active", context.isActive()); } finally { context.deactivate(); context.clearAll(); } } }