@Test public void shouldWeaveAroundJoinPointAndReturnCorrectObject() throws Throwable { final Object object = completableWeaver.weaveAroundJoinPoint(proceedingJoinPoint, mock(Logger.class)); assertThat(object).isInstanceOf(Completable.class); }
public Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger) throws Throwable { final FrodoProceedingJoinPoint proceedingJoinPoint = new FrodoProceedingJoinPoint(joinPoint); final MessageManager messageManager = new MessageManager(new MessageBuilder(), logger); return new FrodoForCompletable(proceedingJoinPoint, messageManager).completable(); }
CompletableWeaver { public Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger) throws Throwable { final FrodoProceedingJoinPoint proceedingJoinPoint = new FrodoProceedingJoinPoint(joinPoint); final MessageManager messageManager = new MessageManager(new MessageBuilder(), logger); return new FrodoForCompletable(proceedingJoinPoint, messageManager).completable(); } }
CompletableWeaver { public Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger) throws Throwable { final FrodoProceedingJoinPoint proceedingJoinPoint = new FrodoProceedingJoinPoint(joinPoint); final MessageManager messageManager = new MessageManager(new MessageBuilder(), logger); return new FrodoForCompletable(proceedingJoinPoint, messageManager).completable(); }  }
CompletableWeaver { public Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger) throws Throwable { final FrodoProceedingJoinPoint proceedingJoinPoint = new FrodoProceedingJoinPoint(joinPoint); final MessageManager messageManager = new MessageManager(new MessageBuilder(), logger); return new FrodoForCompletable(proceedingJoinPoint, messageManager).completable(); }  static boolean methodAnnotatedWithRxLogCompletable(ProceedingJoinPoint joinPoint); Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger); }
CompletableWeaver { public Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger) throws Throwable { final FrodoProceedingJoinPoint proceedingJoinPoint = new FrodoProceedingJoinPoint(joinPoint); final MessageManager messageManager = new MessageManager(new MessageBuilder(), logger); return new FrodoForCompletable(proceedingJoinPoint, messageManager).completable(); }  static boolean methodAnnotatedWithRxLogCompletable(ProceedingJoinPoint joinPoint); Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger); static final String POINTCUT; static final String ADVICE; }