@Test public void deleteFromNonExistingNamespace() { assertEquals(0, store.countNamespaces()); assertEquals(0, store.sizeOfNamespace(NAMESPACE1)); store.delete(NAMESPACE1, KEY1); assertEquals(0, store.countNamespaces()); assertEquals(0, store.sizeOfNamespace(NAMESPACE1)); }
@Test public void deleteExistingKey() { Serializable value = "value"; store.put(NAMESPACE1, KEY1, value); assertEquals(1, store.sizeOfNamespace(NAMESPACE1)); store.delete(NAMESPACE1, KEY1); assertEquals(0, store.sizeOfNamespace(NAMESPACE1)); }