@Test(expected = ApplicationRuntimeException.class) public void activeTransactionSetRollbackOnly() throws Exception { transactionFactory.expectActiveTransaction(); transactionFactory.expectSetRollbackOnly(); transactionFactory.replay(); try { InvocationContext ic = createNiceMock(InvocationContext.class); expect(ic.proceed()).andThrow(new ApplicationRuntimeException()); replay(ic); interceptor.applyTransaction(ic); } finally { transactionFactory.verify(); } }
@AroundInvoke public Object applyTransaction(InvocationContext ic) throws Exception { return super.applyTransaction(ic); }
SupportsTransactionInterceptor extends RequiredTransactionInterceptor { @AroundInvoke public Object applyTransaction(InvocationContext ic) throws Exception { return super.applyTransaction(ic); } }
SupportsTransactionInterceptor extends RequiredTransactionInterceptor { @AroundInvoke public Object applyTransaction(InvocationContext ic) throws Exception { return super.applyTransaction(ic); }  }
SupportsTransactionInterceptor extends RequiredTransactionInterceptor { @AroundInvoke public Object applyTransaction(InvocationContext ic) throws Exception { return super.applyTransaction(ic); }  @AroundInvoke Object applyTransaction(InvocationContext ic); }
SupportsTransactionInterceptor extends RequiredTransactionInterceptor { @AroundInvoke public Object applyTransaction(InvocationContext ic) throws Exception { return super.applyTransaction(ic); }  @AroundInvoke Object applyTransaction(InvocationContext ic);  }