@Test public void shouldWeaveAroundJoinPointAndReturnCorrectObject() throws Throwable { final Object object = observableWeaver.weaveAroundJoinPoint(proceedingJoinPoint, mock(Logger.class)); assertThat(object).isInstanceOf(Observable.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 FrodoForObservable(proceedingJoinPoint, messageManager).observable(); }
ObservableWeaver { 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 FrodoForObservable(proceedingJoinPoint, messageManager).observable(); } }
ObservableWeaver { 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 FrodoForObservable(proceedingJoinPoint, messageManager).observable(); }  }
ObservableWeaver { 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 FrodoForObservable(proceedingJoinPoint, messageManager).observable(); }  static boolean methodAnnotatedWithRxLogObservable(ProceedingJoinPoint joinPoint); Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger); }
ObservableWeaver { 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 FrodoForObservable(proceedingJoinPoint, messageManager).observable(); }  static boolean methodAnnotatedWithRxLogObservable(ProceedingJoinPoint joinPoint); Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger); static final String POINTCUT; static final String ADVICE; }