@Test public void testDelete() { System.out.println("delete"); InfinispanSessionDataStorage instance = new InfinispanSessionDataStorage(cacheManager); SessionData sessionData = instance.create(); String sessionId = sessionData.getId(); sessionData.put(KEY, VALUE); instance.save(sessionData); instance.delete(sessionId); SessionData deleted = instance.get(sessionId); assertNull(deleted); }
@Override public void delete(String sessionId) { this.sessions.remove(sessionId); }
InfinispanSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.remove(sessionId); } }
InfinispanSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.remove(sessionId); } InfinispanSessionDataStorage(EmbeddedCacheManager cacheManager);  InfinispanSessionDataStorage(EmbeddedCacheManager cacheManager, String cacheName);  InfinispanSessionDataStorage(Cache<String, SessionData> cache); }
InfinispanSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.remove(sessionId); } InfinispanSessionDataStorage(EmbeddedCacheManager cacheManager);  InfinispanSessionDataStorage(EmbeddedCacheManager cacheManager, String cacheName);  InfinispanSessionDataStorage(Cache<String, SessionData> cache); @Override SessionData create(); @Override void save(SessionData sessionData); @Override SessionData get(String sessionId); @Override void delete(String sessionId); }
InfinispanSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.remove(sessionId); } InfinispanSessionDataStorage(EmbeddedCacheManager cacheManager);  InfinispanSessionDataStorage(EmbeddedCacheManager cacheManager, String cacheName);  InfinispanSessionDataStorage(Cache<String, SessionData> cache); @Override SessionData create(); @Override void save(SessionData sessionData); @Override SessionData get(String sessionId); @Override void delete(String sessionId);  }