Fix tests
This commit is contained in:
parent
caefc8a2d3
commit
e7a201aab3
@ -162,11 +162,29 @@ abstract class EmbeddedDBTest {
|
||||
Assertions.assertThrows(RocksDBException.class, () -> db.put(arena, 0, colId, key, toMemorySegmentSimple(arena, 123), RequestType.delta()));
|
||||
} else {
|
||||
Assertions.assertThrows(RocksDBException.class, () -> db.put(arena, 0, colId, key, MemorySegment.NULL, RequestType.delta()));
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> db.put(arena, 0, colId, key, null, RequestType.delta()));
|
||||
Assertions.assertThrows(RocksDBException.class, () -> {
|
||||
try {
|
||||
db.put(arena, 0, colId, key, null, RequestType.delta());
|
||||
} catch (IllegalArgumentException ex) {
|
||||
throw RocksDBException.of(RocksDBException.RocksDBErrorType.UNEXPECTED_NULL_VALUE, ex);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> db.put(arena, 0, colId, null, value1, RequestType.delta()));
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> db.put(arena, 0, colId, null, null, RequestType.delta()));
|
||||
Assertions.assertThrows(RocksDBException.class, () -> {
|
||||
try {
|
||||
db.put(arena, 0, colId, null, value1, RequestType.delta());
|
||||
} catch (IllegalArgumentException ex) {
|
||||
throw RocksDBException.of(RocksDBException.RocksDBErrorType.UNEXPECTED_NULL_VALUE, ex);
|
||||
}
|
||||
});
|
||||
Assertions.assertThrows(RocksDBException.class, () -> {
|
||||
try {
|
||||
db.put(arena, 0, colId, null, null, RequestType.delta());
|
||||
} catch (IllegalArgumentException ex) {
|
||||
throw RocksDBException.of(RocksDBException.RocksDBErrorType.UNEXPECTED_NULL_VALUE, ex);
|
||||
}
|
||||
});
|
||||
Assertions.assertThrows(RocksDBException.class, () -> db.put(arena, 0, colId, key, value1, null));
|
||||
Assertions.assertThrows(RocksDBException.class, () -> db.put(arena, 1, colId, key, value1, RequestType.delta()));
|
||||
Assertions.assertThrows(RocksDBException.class, () -> db.put(arena, 0, 21203, key, value1, RequestType.delta()));
|
||||
|
Loading…
Reference in New Issue
Block a user