Search in sources :

Example 6 with TestJoinPoint

use of com.fernandocejas.frodo.joinpoint.TestJoinPoint in project frodo by android10.

the class LogSubscriberTest method shouldWeaveClassOfTypeSubscriber.

@Test
public void shouldWeaveClassOfTypeSubscriber() {
    final TestJoinPoint joinPoint = new TestJoinPoint.Builder(subscriber.getClass()).build();
    final TestProceedingJoinPoint proceedingJoinPoint = new TestProceedingJoinPoint(joinPoint);
    assertThat(LogSubscriber.classAnnotatedWithRxLogSubscriber(proceedingJoinPoint)).isTrue();
}
Also used : TestProceedingJoinPoint(com.fernandocejas.frodo.joinpoint.TestProceedingJoinPoint) TestJoinPoint(com.fernandocejas.frodo.joinpoint.TestJoinPoint) Test(org.junit.Test)

Aggregations

TestJoinPoint (com.fernandocejas.frodo.joinpoint.TestJoinPoint)6 TestProceedingJoinPoint (com.fernandocejas.frodo.joinpoint.TestProceedingJoinPoint)4 Test (org.junit.Test)4 ObservableInfo (com.fernandocejas.frodo.internal.observable.ObservableInfo)1 FrodoJoinPoint (com.fernandocejas.frodo.joinpoint.FrodoJoinPoint)1 FrodoProceedingJoinPoint (com.fernandocejas.frodo.joinpoint.FrodoProceedingJoinPoint)1 Before (org.junit.Before)1 Matchers.anyString (org.mockito.Matchers.anyString)1