6667686970717273747576
guiceBerryEnvSelector); setUpAndTearDown.runBeforeTest(); return new TearDown() { public void tearDown() throws Exception { setUpAndTearDown.runAfterTest(); } }; } static TestDescription buildTestDescription(TestCase testCase, String methodName) {
6768697071727374757677
ManualTearDownGuiceBerry.buildTestDescription(testCase, testCase.getName()), guiceBerryEnvSelector); testCase.addTearDown(new TearDown() { public void tearDown() throws Exception { toTearDown.runAfterTest(); } }) ; toTearDown.runBeforeTest(); } }
5253545556575859606162
GuiceBerry.INSTANCE.buildWrapper(buildTestDescription(target, method.getName()), guiceBerryEnvSelector); try { setupAndTearDown.runBeforeTest(); base.evaluate(); } finally { setupAndTearDown.runAfterTest(); } } }; }
6465666768697071727374
guiceBerryEnvSelector); setUpAndTearDown.runBeforeTest(); return new TearDown() { public void tearDown() throws Exception { setUpAndTearDown.runAfterTest(); } }; } static TestDescription buildTestDescription(Object testCase, String methodName) {
146147148149150151152153154155156
//add a tear down before setting up so that if an exception is thrown there, //we still do the tear down. maybeAddGuiceBerryTearDown(testDescription, new TearDown() { public void tearDown() throws Exception { wrapper.runAfterTest(); } }); wrapper.runBeforeTest(); }