@Test public void shouldWeaveAroundJoinPointAndReturnCorrectObject() throws Throwable { final Object object = maybeWeaver.weaveAroundJoinPoint(proceedingJoinPoint, mock(Logger.class)); assertThat(object).isInstanceOf(Maybe.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 FrodoForMaybe(proceedingJoinPoint, messageManager).maybe(); }
MaybeWeaver { 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 FrodoForMaybe(proceedingJoinPoint, messageManager).maybe(); } }
MaybeWeaver { 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 FrodoForMaybe(proceedingJoinPoint, messageManager).maybe(); }  }
MaybeWeaver { 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 FrodoForMaybe(proceedingJoinPoint, messageManager).maybe(); }  static boolean methodAnnotatedWithRxLogMaybe(ProceedingJoinPoint joinPoint); Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger); }
MaybeWeaver { 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 FrodoForMaybe(proceedingJoinPoint, messageManager).maybe(); }  static boolean methodAnnotatedWithRxLogMaybe(ProceedingJoinPoint joinPoint); Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger); static final String POINTCUT; static final String ADVICE; }