@Test public void testClear() throws ClassNotFoundException { repository.loadClass("com.google.api.core.ApiFuture"); repository.loadClass("com.google.api.core.ApiClock"); repository.clear(); assertNull( "Cache should clear all entries", repository.findClass("com.google.api.core.ApiClock")); }
@Override public void clear() { loadedClass.invalidateAll(); }
FixedSizeClassPathRepository extends ClassPathRepository { @Override public void clear() { loadedClass.invalidateAll(); } }
FixedSizeClassPathRepository extends ClassPathRepository { @Override public void clear() { loadedClass.invalidateAll(); } FixedSizeClassPathRepository(ClassPath path); @VisibleForTesting  FixedSizeClassPathRepository(ClassPath path, long maximumSize); }
FixedSizeClassPathRepository extends ClassPathRepository { @Override public void clear() { loadedClass.invalidateAll(); } FixedSizeClassPathRepository(ClassPath path); @VisibleForTesting  FixedSizeClassPathRepository(ClassPath path, long maximumSize); @Override void storeClass(JavaClass javaClass); @Override @Nullable JavaClass findClass(String className); @Override JavaClass loadClass(String className); @Override void clear(); }
FixedSizeClassPathRepository extends ClassPathRepository { @Override public void clear() { loadedClass.invalidateAll(); } FixedSizeClassPathRepository(ClassPath path); @VisibleForTesting  FixedSizeClassPathRepository(ClassPath path, long maximumSize); @Override void storeClass(JavaClass javaClass); @Override @Nullable JavaClass findClass(String className); @Override JavaClass loadClass(String className); @Override void clear();  }