@Test public void testPutFind() { cache.put(status("p1", 0)); assertEquals(status("p1", 0), cache.findByProjectName("p1")); assertNull(cache.findByProjectName("unknown")); }
@Test public void testPutGetAll() { cache.putAll(Arrays.asList(status("p1", 0), status("p2", 0))); assertEquals(Arrays.asList(status("p1", 0), status("p2", 0)), cache.getAll()); assertNull(cache.findByProjectName("unknown")); }