@Test public void testset() { context.checking(new Expectations() { { oneOf(writeRotator).getNext(); will(returnValue(cache)); oneOf(cache).set(null, null); } }); sut.set(null, null); context.assertIsSatisfied(); }
@Override public void set(final String inKey, final Object inValue) { writeCacheRotator.getNext().set(inKey, inValue); }
RotatingCacheClient implements Cache { @Override public void set(final String inKey, final Object inValue) { writeCacheRotator.getNext().set(inKey, inValue); } }
RotatingCacheClient implements Cache { @Override public void set(final String inKey, final Object inValue) { writeCacheRotator.getNext().set(inKey, inValue); } RotatingCacheClient(final Rotator<Cache> inReadCacheRotator, final Rotator<Cache> inWriteCacheRotator); }
RotatingCacheClient implements Cache { @Override public void set(final String inKey, final Object inValue) { writeCacheRotator.getNext().set(inKey, inValue); } RotatingCacheClient(final Rotator<Cache> inReadCacheRotator, final Rotator<Cache> inWriteCacheRotator); @Override Set<Long> addToSet(final String inKey, final Long inValue); @Override void addToTopOfList(final String inKey, final List<Long> inValues); @Override void addToTopOfList(final String inKey, final Long inValue); @Override void clear(); @Override void delete(final String inKey); @Override void deleteList(final String inKey); @Override Object get(final String inKey); @Override ArrayList<Long> getList(final String inKey, final int inMaximumEntries); @Override ArrayList<Long> getList(final String inKey); @Override Map<String, Object> multiGet(final Collection<String> inKeys); @Override Map<String, ArrayList<Long>> multiGetList(final Collection<String> inKeys); @Override void removeFromList(final String inKey, final Long inValue); @Override void removeFromLists(final List<String> inKeys, final List<Long> inValues); @Override void removeFromSet(final String inKey, final Long inValue); @Override void set(final String inKey, final Object inValue); @Override void setList(final String inKey, final List<Long> inValue); @Override ArrayList<Long> setListCAS(final String inKey, final List<Long> inValue); }
RotatingCacheClient implements Cache { @Override public void set(final String inKey, final Object inValue) { writeCacheRotator.getNext().set(inKey, inValue); } RotatingCacheClient(final Rotator<Cache> inReadCacheRotator, final Rotator<Cache> inWriteCacheRotator); @Override Set<Long> addToSet(final String inKey, final Long inValue); @Override void addToTopOfList(final String inKey, final List<Long> inValues); @Override void addToTopOfList(final String inKey, final Long inValue); @Override void clear(); @Override void delete(final String inKey); @Override void deleteList(final String inKey); @Override Object get(final String inKey); @Override ArrayList<Long> getList(final String inKey, final int inMaximumEntries); @Override ArrayList<Long> getList(final String inKey); @Override Map<String, Object> multiGet(final Collection<String> inKeys); @Override Map<String, ArrayList<Long>> multiGetList(final Collection<String> inKeys); @Override void removeFromList(final String inKey, final Long inValue); @Override void removeFromLists(final List<String> inKeys, final List<Long> inValues); @Override void removeFromSet(final String inKey, final Long inValue); @Override void set(final String inKey, final Object inValue); @Override void setList(final String inKey, final List<Long> inValue); @Override ArrayList<Long> setListCAS(final String inKey, final List<Long> inValue);  }