Merge remote-tracking branch 'origin/master'

This commit is contained in:
Peter Lawrey
2014-12-27 14:54:05 +00:00
28 changed files with 355 additions and 173 deletions
@@ -1613,7 +1613,7 @@ public class ChronicleMapTest {
}
@Test(expected = IllegalStateException.class)
@Test
public void testPutLongValue() throws IOException {
final ChronicleMapBuilder<CharSequence, LongValue> builder = ChronicleMapBuilder
.of(CharSequence.class, LongValue.class)
@@ -1623,7 +1623,14 @@ public class ChronicleMapTest {
final ChronicleMap<CharSequence, LongValue> map = builder.create();
LongValue value = nativeLongValue();
map.put("x", value);
try {
map.put("x", value);
} catch (IllegalStateException | NullPointerException e) {
// ok
return;
}
throw new AssertionError("Should throw either IllegalStateException or " +
"NullPointerException, but succeed");
}
@Test