@Test(expected = PoincutDefinitionException.class) public void testLocalTransactionPointcut() { businessLocalTransactionAspectUnderTest.localTransactionPointcut(); }
@Pointcut("@annotation(io.kermoss.trx.app.annotation.BusinessLocalTransactional)") public void localTransactionPointcut(){ throw new PoincutDefinitionException(); }
BusinessLocalTransactionAspect { @Pointcut("@annotation(io.kermoss.trx.app.annotation.BusinessLocalTransactional)") public void localTransactionPointcut(){ throw new PoincutDefinitionException(); } }
BusinessLocalTransactionAspect { @Pointcut("@annotation(io.kermoss.trx.app.annotation.BusinessLocalTransactional)") public void localTransactionPointcut(){ throw new PoincutDefinitionException(); } BusinessLocalTransactionAspect(BusinessLocalTransactionManager businessTransactionManager); }
BusinessLocalTransactionAspect { @Pointcut("@annotation(io.kermoss.trx.app.annotation.BusinessLocalTransactional)") public void localTransactionPointcut(){ throw new PoincutDefinitionException(); } BusinessLocalTransactionAspect(BusinessLocalTransactionManager businessTransactionManager); @Pointcut("@annotation(io.kermoss.trx.app.annotation.BusinessLocalTransactional)") void localTransactionPointcut(); @Pointcut("@annotation(io.kermoss.trx.app.annotation.SwitchBusinessLocalTransactional)") void moveLocalTransactionPointcut(); @Pointcut("@annotation(io.kermoss.trx.app.annotation.RollBackBusinessLocalTransactional)") void rollBackLocalTransactionPointcut(); @Around("localTransactionPointcut()") void beginLocalTransaction(ProceedingJoinPoint pjp); @Around("moveLocalTransactionPointcut()") void moveLocalTransaction(ProceedingJoinPoint pjp); @Around("rollBackLocalTransactionPointcut()") void rollBackTransaction(ProceedingJoinPoint pjp); }
BusinessLocalTransactionAspect { @Pointcut("@annotation(io.kermoss.trx.app.annotation.BusinessLocalTransactional)") public void localTransactionPointcut(){ throw new PoincutDefinitionException(); } BusinessLocalTransactionAspect(BusinessLocalTransactionManager businessTransactionManager); @Pointcut("@annotation(io.kermoss.trx.app.annotation.BusinessLocalTransactional)") void localTransactionPointcut(); @Pointcut("@annotation(io.kermoss.trx.app.annotation.SwitchBusinessLocalTransactional)") void moveLocalTransactionPointcut(); @Pointcut("@annotation(io.kermoss.trx.app.annotation.RollBackBusinessLocalTransactional)") void rollBackLocalTransactionPointcut(); @Around("localTransactionPointcut()") void beginLocalTransaction(ProceedingJoinPoint pjp); @Around("moveLocalTransactionPointcut()") void moveLocalTransaction(ProceedingJoinPoint pjp); @Around("rollBackLocalTransactionPointcut()") void rollBackTransaction(ProceedingJoinPoint pjp);  }