Search in sources :

Example 6 with RxLogObservable

use of com.fernandocejas.frodo.annotation.RxLogObservable in project frodo by android10.

the class LoggableObservableFactoryTest method shouldCreateLogEventsObservable.

@Test
public void shouldCreateLogEventsObservable() {
    final RxLogObservable annotation = mock(RxLogObservable.class);
    given(annotation.value()).willReturn(RxLogObservable.Scope.EVENTS);
    final LoggableObservable loggableObservable = observableFactory.create(annotation);
    assertThat(loggableObservable).isInstanceOf(LogEventsObservable.class);
}
Also used : RxLogObservable(com.fernandocejas.frodo.annotation.RxLogObservable) Test(org.junit.Test)

Aggregations

RxLogObservable (com.fernandocejas.frodo.annotation.RxLogObservable)6 Test (org.junit.Test)5 FrodoObservable (com.fernandocejas.frodo.internal.observable.FrodoObservable)1 FrodoProceedingJoinPoint (com.fernandocejas.frodo.joinpoint.FrodoProceedingJoinPoint)1 Annotation (java.lang.annotation.Annotation)1 Pointcut (org.aspectj.lang.annotation.Pointcut)1 MethodSignature (org.aspectj.lang.reflect.MethodSignature)1 Observable (rx.Observable)1