mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
checking in a failing test so that roman can take a look at it.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user