Search in sources :

Example 11 with EvictDynamicKey

use of io.rx_cache2.EvictDynamicKey in project RxCache by VictorAlbertos.

the class ProxyTranslatorTest method When_Use_Evict_Dynamic_Key_Without_Providing_Dynamic_Key_Throw_Exception.

@Test(expected = IllegalArgumentException.class)
public void When_Use_Evict_Dynamic_Key_Without_Providing_Dynamic_Key_Throw_Exception() throws NoSuchMethodException {
    Method mockMethod = io.rx_cache2.internal.ProvidersRxCache.class.getDeclaredMethod("getMockEvictDynamicKeyWithoutProvidingDynamicKey", Observable.class, EvictDynamicKey.class);
    Object[] data = { Observable.just(new Object[] {}), new EvictDynamicKey(true) };
    proxyTranslatorUT.processMethod(mockMethod, data);
}
Also used : EvictDynamicKey(io.rx_cache2.EvictDynamicKey) Method(java.lang.reflect.Method) Test(org.junit.Test)

Aggregations

EvictDynamicKey (io.rx_cache2.EvictDynamicKey)11 Reply (io.rx_cache2.Reply)7 FavoriteException (com.dante.exception.FavoriteException)6 MessageException (com.dante.exception.MessageException)6 Function (io.reactivex.functions.Function)6 DynamicKey (io.rx_cache2.DynamicKey)6 BaseResult (com.dante.data.model.BaseResult)4 UnLimit91PornItem (com.dante.data.model.UnLimit91PornItem)4 DynamicKeyGroup (io.rx_cache2.DynamicKeyGroup)4 EvictDynamicKeyGroup (io.rx_cache2.EvictDynamicKeyGroup)4 Test (org.junit.Test)4 Method (java.lang.reflect.Method)3 PigAvVideo (com.dante.data.model.PigAvVideo)1 VideoResult (com.dante.data.model.VideoResult)1 ConfigProvider (io.rx_cache2.ConfigProvider)1