mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
26 lines
596 B
Java
26 lines
596 B
Java
package net.openhft.chronicle.map;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.Test;
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
/**
|
|
* @author Rob Austin.
|
|
*/
|
|
public class TestBooleanValues {
|
|
|
|
/**
|
|
* see issue http://stackoverflow.com/questions/26219313/strange-npe-from-chronicle-map-toy-code
|
|
*/
|
|
@Test
|
|
public void testTestBooleanValues() throws IOException, InterruptedException {
|
|
ChronicleMap<Integer, Boolean> map =
|
|
ChronicleMapBuilder.of(Integer.class, Boolean.class).create();
|
|
map.put(7, true);
|
|
Assert.assertEquals(true, map.get(7));
|
|
}
|
|
}
|
|
|