simplified the test cases for the preconditions and add them to the API docs; also added requireNotNull() and checkNotNull() helper methods for converting nullables to non-nullables easily in code with optional exception messages
This commit is contained in:
@@ -40,8 +40,7 @@ class ExceptionTest {
|
||||
t.printStackTrace(stream)
|
||||
}
|
||||
|
||||
assertNotNull(byteBuffer.toByteArray()) { bytes ->
|
||||
assertTrue(bytes.size > 10)
|
||||
}
|
||||
val bytes = assertNotNull(byteBuffer.toByteArray())
|
||||
assertTrue(bytes.size > 10)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user