use of io.rx_cache2.ConfigProvider in project RxCache by VictorAlbertos.
the class ProxyTranslatorTest method When_Return_Response_Then_Required_Detail_Response_Is_True.
@Test
public void When_Return_Response_Then_Required_Detail_Response_Is_True() throws NoSuchMethodException {
Method mockMethod = io.rx_cache2.internal.ProvidersRxCache.class.getDeclaredMethod("getMocksWithDetailResponse", Observable.class);
ConfigProvider configProvider = proxyTranslatorUT.processMethod(mockMethod, dataMethod);
assertThat(configProvider.requiredDetailedResponse(), is(true));
}
use of io.rx_cache2.ConfigProvider in project RxCache by VictorAlbertos.
the class ProxyTranslatorTest method Check_Flowable_Reactive_Type.
@Test
public void Check_Flowable_Reactive_Type() throws NoSuchMethodException {
Method mockMethod = io.rx_cache2.internal.ProvidersRxCache.class.getDeclaredMethod("getMocksFlowable", Flowable.class);
ConfigProvider configProvider = proxyTranslatorUT.processMethod(mockMethod, dataMethod);
assertNotNull(configProvider.getLoaderObservable());
}
use of io.rx_cache2.ConfigProvider in project RxCache by VictorAlbertos.
the class ProxyTranslatorTest method Check_Single_Reactive_Type.
@Test
public void Check_Single_Reactive_Type() throws NoSuchMethodException {
Method mockMethod = io.rx_cache2.internal.ProvidersRxCache.class.getDeclaredMethod("getMocksSingle", Single.class);
ConfigProvider configProvider = proxyTranslatorUT.processMethod(mockMethod, dataMethod);
assertNotNull(configProvider.getLoaderObservable());
}
Aggregations