package io.tetrapod.core.kvstore;

import static org.junit.Assert.*;

import java.io.IOException;
import java.nio.file.*;

import org.junit.Test;

public class KeyValueStoreTest {
   
   @Test
   public void basicTest() throws IOException {
      Files.delete(FileSystems.getDefault().getPath("misc.1"));
      KeyValueStore store = new KeyValueStore("misc", ".");
      store.put("test", "apple");
      store.put("test", "oranges");
      store.put("foo", 17);
      store.close();
      store = null;
      
      store = new KeyValueStore("misc", ".");
      int foo = (Integer)store.get("foo");
      assertEquals(17, foo);
   }

}

@@ -61,17 +61,28 @@
 .Assert.
-*
+assertEquals
 ;%0D%0A%0D%0Aimp
@@ -258,16 +258,32 @@
 tion %7B%0D%0A
+      try %7B%0D%0A   
       Fi
@@ -335,24 +335,66 @@
 misc.1%22));%0D%0A
+      %7D catch (NoSuchFileException e) %7B%7D%0D%0A
       KeyVal

fix test