use of io.rx_cache2.EvictDynamicKeyGroup in project RxCache by VictorAlbertos.
the class ProxyTranslatorTest method When_Use_Evict_Dynamic_Key_Group_Providing_Dynamic_Key_Group_Not_Throw_Exception.
@Test
public void When_Use_Evict_Dynamic_Key_Group_Providing_Dynamic_Key_Group_Not_Throw_Exception() throws NoSuchMethodException {
Method mockMethod = io.rx_cache2.internal.ProvidersRxCache.class.getDeclaredMethod("getMockEvictDynamicKeyGroupProvidingDynamicKeyGroup", Observable.class, DynamicKeyGroup.class, EvictDynamicKeyGroup.class);
Object[] data = { Observable.just(new Object[] {}), new DynamicKeyGroup("1", "1"), new EvictDynamicKeyGroup(true) };
proxyTranslatorUT.processMethod(mockMethod, data);
}
use of io.rx_cache2.EvictDynamicKeyGroup in project RxCache by VictorAlbertos.
the class ProxyTranslatorTest method When_Use_Evict_Dynamic_Key_Group_Without_Providing_Dynamic_Key_Group_Throw_Exception.
@Test(expected = IllegalArgumentException.class)
public void When_Use_Evict_Dynamic_Key_Group_Without_Providing_Dynamic_Key_Group_Throw_Exception() throws NoSuchMethodException {
Method mockMethod = ProvidersRxCache.class.getDeclaredMethod("getMockEvictDynamicKeyGroupWithoutProvidingDynamicKeyGroup", Observable.class, EvictDynamicKeyGroup.class);
Object[] data = { Observable.just(new Object[] {}), new EvictDynamicKeyGroup(true) };
proxyTranslatorUT.processMethod(mockMethod, data);
}
Aggregations