- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {StringBuilder s =
new StringBuilder()
new StringBuilder(32)
String str;new StringBuilder(str)
- Smart code suggestions by Codota
}
/** * Prunes the given object id from the cache */ public void invalidate(ObjectId id) { sharedCache.get().invalidate(keyPrefix.create(id)); }
/** * Prunes the given object id from the cache */ public void invalidate(ObjectId id) { sharedCache.get().invalidate(keyPrefix.create(id)); }
public @Test void testInvalidate() { cache2.invalidate(o2.getId()); cache1.invalidate(o1.getId()); verify(mockSharedCache, times(1)).invalidate(eq(k22)); verify(mockSharedCache, times(1)).invalidate(eq(k11)); verifyNoMoreInteractions(mockSharedCache); }
public @Test void testInvalidate() { cache2.invalidate(o2.getId()); cache1.invalidate(o1.getId()); verify(mockSharedCache, times(1)).invalidate(eq(k22)); verify(mockSharedCache, times(1)).invalidate(eq(k11)); verifyNoMoreInteractions(mockSharedCache); }