@Test public void testproceedSaveEntityNotContainsSecret() { when(proceedingJoinPoint.getArgs()).thenReturn(new String[] { "test" }); underTest.proceedOnRepositorySave(proceedingJoinPoint); }
@Around("onRepositorySave()") public Object proceedOnRepositorySave(ProceedingJoinPoint proceedingJoinPoint) { return proceedSave(proceedingJoinPoint); }
SecretAspects { @Around("onRepositorySave()") public Object proceedOnRepositorySave(ProceedingJoinPoint proceedingJoinPoint) { return proceedSave(proceedingJoinPoint); } }
SecretAspects { @Around("onRepositorySave()") public Object proceedOnRepositorySave(ProceedingJoinPoint proceedingJoinPoint) { return proceedSave(proceedingJoinPoint); }  }
SecretAspects { @Around("onRepositorySave()") public Object proceedOnRepositorySave(ProceedingJoinPoint proceedingJoinPoint) { return proceedSave(proceedingJoinPoint); }  @Pointcut("execution(* com.sequenceiq.cloudbreak.repository..*.save(..)) ") void onRepositorySave(); @Pointcut("execution(void com.sequenceiq.cloudbreak.repository..*.delete(..)) ") void onRepositoryDelete(); @Pointcut("execution(* com.sequenceiq.cloudbreak.repository..*.saveAll(..)) ") void onRepositorySaveAll(); @Pointcut("execution(void com.sequenceiq.cloudbreak.repository..*.deleteAll(..)) ") void onRepositoryDeleteAll(); @Around("onRepositorySave()") Object proceedOnRepositorySave(ProceedingJoinPoint proceedingJoinPoint); @Around("onRepositoryDelete()") Object proceedOnRepositoryDelete(ProceedingJoinPoint proceedingJoinPoint); @Around("onRepositorySaveAll()") Object proceedOnRepositorySaveAll(ProceedingJoinPoint proceedingJoinPoint); @Around("onRepositoryDeleteAll()") Object proceedOnRepositoryDeleteAll(ProceedingJoinPoint proceedingJoinPoint); }
SecretAspects { @Around("onRepositorySave()") public Object proceedOnRepositorySave(ProceedingJoinPoint proceedingJoinPoint) { return proceedSave(proceedingJoinPoint); }  @Pointcut("execution(* com.sequenceiq.cloudbreak.repository..*.save(..)) ") void onRepositorySave(); @Pointcut("execution(void com.sequenceiq.cloudbreak.repository..*.delete(..)) ") void onRepositoryDelete(); @Pointcut("execution(* com.sequenceiq.cloudbreak.repository..*.saveAll(..)) ") void onRepositorySaveAll(); @Pointcut("execution(void com.sequenceiq.cloudbreak.repository..*.deleteAll(..)) ") void onRepositoryDeleteAll(); @Around("onRepositorySave()") Object proceedOnRepositorySave(ProceedingJoinPoint proceedingJoinPoint); @Around("onRepositoryDelete()") Object proceedOnRepositoryDelete(ProceedingJoinPoint proceedingJoinPoint); @Around("onRepositorySaveAll()") Object proceedOnRepositorySaveAll(ProceedingJoinPoint proceedingJoinPoint); @Around("onRepositoryDeleteAll()") Object proceedOnRepositoryDeleteAll(ProceedingJoinPoint proceedingJoinPoint);  }