Files
Chronicle-Map/src/test/java/net/openhft/chronicle/map/TestBooleanValues.java
T

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));
}
}