assertEquals(1, currentUniverse.gbeClassToInjectorMap.size());
}
public void testThatTestsWithDifferentGbesGetDifferentTestScopes()
throws ClassNotFoundException {
GuiceBerryJunit3 guiceBerryJunit3 = instance();
TestWithGbeOne testOne = TestWithGbeOne.createInstance();
assertNull(getTestScopeForGbe(
Class.forName(GuiceBerryEnvOne.GUICE_BERRY_ENV_ONE)));
guiceBerryJunit3.doSetUp(testOne);
TestScope testScopeOne =
getTestScopeForGbe(
Class.forName(GuiceBerryEnvOne.GUICE_BERRY_ENV_ONE));
assertNotNull(testScopeOne);
testOne.run();
TestWithGbeTwo testTwo = TestWithGbeTwo.createInstance();
guiceBerryJunit3.doSetUp(testTwo);
assertNotNull(getTestScopeForGbe(
Class.forName(GuiceBerryEnvTwo.GUICE_BERRY_ENV_TWO)));
TestScope testScopeTwo =
getTestScopeForGbe(
Class.forName(GuiceBerryEnvTwo.GUICE_BERRY_ENV_TWO));