8283848586878889909192
Assert.assertTrue(manager.getExtension(TestObserver.class).wasCalled); } finally { context.deactivate(); context.destroy(); } } @Test(expected = IllegalStateException.class) public void shouldThrowExceptionIfTryingToSetAUnScopedInstance() throws Exception
6061626364656667686970
} finally { context.deactivate(); context.destroy(); } } @Test public void shouldBindToTheScopedContext() throws Exception
979899100101102103104105106107
finally { classContext.deactivate(); classContext.destroy(this.getClass()); suiteContext.deactivate(); suiteContext.destroy(); } } @Test public void shouldResolveToNullIfNoActiveContexts() throws Exception
7475767778798081828384
store.get(Boolean.class)); } finally { context.deactivate(); context.destroy(); } } @Test
108109110111112113114115116
} } finally { context.deactivate(); context.destroy(); } } }
8687888990919293949596
} } finally { context.deactivate(); context.destroy(); } } public static class TestObserverOne {
5859606162636465666768
testObject, instance.get()); } finally { context.deactivate(); context.destroy(); } } @Test public void shouldFireEventOnSet() throws Exception