checking in a failing test so that roman can take a look at it.

This commit is contained in:
Rob Austin
2014-11-14 09:48:37 +00:00
parent 014a5fd154
commit b7033da88c
@@ -1487,8 +1487,31 @@ public class ChronicleMapTest {
}
}
@Test
public void testOnheapAcquireUsingLockedStringBuilder() throws IOException {
try (final ChronicleMap<CharSequence, StringBuilder> map = ChronicleMapBuilder
.of(CharSequence.class, StringBuilder.class)
.entries(1000)
.defaultValue(new StringBuilder())
.entrySize(40).create()) {
StringBuilder value = new StringBuilder();
try (WriteContext<?, StringBuilder> context = map.acquireUsingLocked("one", value)) {
value.append("Hello World");
}
assertEquals("Hello World", value.toString());
}
}
@Test
public void testOnheapAcquireUsingLocked() throws IOException {
ChronicleMapBuilder<CharSequence, LongValue> builder = ChronicleMapBuilder