@Test public void testEvaluateFailConfigure() throws Throwable { configuredInvoked = false; statementInvoked = false; final ContextWrapperStatement wrapper = new ContextWrapperStatement(new FakeTestContext(true), new FakeStatement(false), fakeTestObject); try { wrapper.evaluate(); fail("Wrapper call succeeded."); } catch (final Throwable e) { } assertFalse(configuredInvoked); assertFalse(statementInvoked); }
@Override public void evaluate() throws Throwable { testContext.configureTest(testObj); junitStatement.evaluate(); }
ContextWrapperStatement extends Statement { @Override public void evaluate() throws Throwable { testContext.configureTest(testObj); junitStatement.evaluate(); } }
ContextWrapperStatement extends Statement { @Override public void evaluate() throws Throwable { testContext.configureTest(testObj); junitStatement.evaluate(); } ContextWrapperStatement(final TestContext testContext, final Statement junitStatement, final Object testObj); }
ContextWrapperStatement extends Statement { @Override public void evaluate() throws Throwable { testContext.configureTest(testObj); junitStatement.evaluate(); } ContextWrapperStatement(final TestContext testContext, final Statement junitStatement, final Object testObj); @Override void evaluate(); }
ContextWrapperStatement extends Statement { @Override public void evaluate() throws Throwable { testContext.configureTest(testObj); junitStatement.evaluate(); } ContextWrapperStatement(final TestContext testContext, final Statement junitStatement, final Object testObj); @Override void evaluate();  }