@@ -0,0 +1,1759 @@
+/*%0A * Copyright (c) 2015-2022, Antonio Gabriel Mu%C3%B1oz Conejo %3Cantoniogmc at gmail dot com%3E%0A * Distributed under the terms of the MIT License%0A */%0Apackage com.github.tonivade.claudb.data;%0A%0Aimport static com.github.tonivade.claudb.data.DatabaseKey.safeKey;%0Aimport static com.github.tonivade.claudb.data.DatabaseValue.string;%0Aimport static com.github.tonivade.resp.protocol.SafeString.safeString;%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0Aimport java.io.IOException;%0A%0Aimport org.junit.Test;%0A%0Aimport com.github.tonivade.purefun.Tuple2;%0Aimport com.github.tonivade.purefun.data.Sequence;%0A%0Apublic class OffHeapMVDatabaseTest %7B%0A%0A  @Test%0A  public void testDatabase() throws IOException %7B%0A    Database database = new OffHeapMVDatabaseFactory().create(%22db1%22);%0A%0A    database.put(safeKey(%22a%22), string(%22value%22));%0A%0A    assertThat(database.get(safeKey(%22a%22)).getString(), is(safeString(%22value%22)));%0A    assertThat(database.containsKey(safeKey(%22a%22)), is(true));%0A    assertThat(database.containsKey(safeKey(%22b%22)), is(false));%0A    assertThat(database.isEmpty(), is(false));%0A    assertThat(database.size(), is(1));%0A%0A    Sequence%3CDatabaseValue%3E values = database.values();%0A%0A    assertThat(values.size(), is(1));%0A    assertThat(values.contains(string(%22value%22)), is(true));%0A%0A    Sequence%3CDatabaseKey%3E keySet = database.keySet();%0A%0A    assertThat(keySet.size(), is(1));%0A    assertThat(keySet.contains(safeKey(%22a%22)), is(true));%0A%0A    Sequence%3CTuple2%3CDatabaseKey, DatabaseValue%3E%3E entrySet = database.entrySet();%0A%0A    assertThat(entrySet.size(), is(1));%0A%0A    Tuple2%3CDatabaseKey, DatabaseValue%3E entry = entrySet.iterator().next();%0A%0A    assertThat(entry.get1(), is(safeKey(%22a%22)));%0A    assertThat(entry.get2(), is(string(%22value%22)));%0A  %7D%0A%7D%0A

add missing file