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);  }
@Test(expected = PoincutDefinitionException.class) public void testLocalTransactionPointcut() { businessLocalTransactionAspectUnderTest.localTransactionPointcut(); }