@Test public void shouldWeaveAroundJoinPointAndReturnCorrectObject() throws Throwable { final Object object = singleWeaver.weaveAroundJoinPoint(proceedingJoinPoint, mock(Logger.class)); assertThat(object).isInstanceOf(Single.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 FrodoForSingle(proceedingJoinPoint, messageManager).single(); }
SingleWeaver { 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 FrodoForSingle(proceedingJoinPoint, messageManager).single(); } }
SingleWeaver { 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 FrodoForSingle(proceedingJoinPoint, messageManager).single(); }  }
SingleWeaver { 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 FrodoForSingle(proceedingJoinPoint, messageManager).single(); }  static boolean methodAnnotatedWithRxLogSingle(ProceedingJoinPoint joinPoint); Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger); }
SingleWeaver { 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 FrodoForSingle(proceedingJoinPoint, messageManager).single(); }  static boolean methodAnnotatedWithRxLogSingle(ProceedingJoinPoint joinPoint); Object weaveAroundJoinPoint(ProceedingJoinPoint joinPoint, Logger logger); static final String POINTCUT; static final String ADVICE; }