@Test public void testOut() throws Throwable { TSpace sp = mock(TSpace.class); SpaceInterceptor spaceInterceptor = new SpaceInterceptor(sp); sp.out("testString", "1", 0L); spaceInterceptor.out("testString", "1", 0L); assertSame(sp, spaceInterceptor.sp, "spaceInterceptor.sp"); verify(sp, times(2)).out("testString", "1", 0L); }
public void out (K key, V value) { sp.out (key, value); }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } SpaceInterceptor(Space<K,V> sp); }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); V in(K key); V rd(K key); V in(K key, long timeout); V rd(K key, long timeout); V inp(K key); V rdp(K key); @Override void nrd(K key); @Override V nrd(K key, long timeout); boolean existAny(K[] keys); boolean existAny(K[] keys, long timeout); }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); V in(K key); V rd(K key); V in(K key, long timeout); V rd(K key, long timeout); V inp(K key); V rdp(K key); @Override void nrd(K key); @Override V nrd(K key, long timeout); boolean existAny(K[] keys); boolean existAny(K[] keys, long timeout);  }