7879808182838485868788
store.get(Boolean.class)); } finally { context.deactivate(); context.destroy(); } } @Test
157158159160161162163164165166167
throw new RuntimeException(e); } finally { context.deactivate(); context.destroy(); } }; }; setup.setUncaughtExceptionHandler(catcher); setup.start();
201202203204205206207208209210211
throw new RuntimeException(e); } finally { context.deactivate(); context.destroy(); } }; }; setup.setUncaughtExceptionHandler(catcher); Thread check = new Thread()
8485868788899091929394
} } finally { context.deactivate(); context.destroy(); } } public static class TestObserverOne {
5657585960616263646566
testObject, instance.get()); } finally { context.deactivate(); context.destroy(); } } @Test public void shouldFireEventOnSet() throws Exception
8081828384858687888990
Assert.assertTrue(manager.getExtension(TestObserver.class).wasCalled); } finally { context.deactivate(); context.destroy(); } } @Test(expected = IllegalStateException.class) public void shouldThrowExceptionIfTryingToSetAUnScopedInstance() throws Exception
5960616263646566676869
} finally { context.deactivate(); context.destroy(); } } @Test public void shouldBindToTheScopedContext() throws Exception
96979899100101102103104105106
finally { classContext.deactivate(); classContext.destroy("A"); suiteContext.deactivate(); suiteContext.destroy(); } } @Test public void shouldResolveToNullIfNoActiveContexts() throws Exception
7677787980818283848586
110111112113114115116117118119120
} } finally { context.deactivate(); context.destroy(); } } @Test public void shouldBeAbleToStackContextOfSameType()