In unit testing we test functions or methods in classes. out.println("error: peek() should be null"); ... See JUnit docs for "Parameterized Tests".
Some JUnit features that we saw in the demo Parameterized tests for sharing code among different inputs ... if any list elements are null.
@ParameterizedTest Denotes that a method is a parameterized test. it can be useful to have null and empty values supplied to our parameterized tests.
@ParameterizedTest Denotes that a method is a parameterized test. Such methods are inherited entirely empty value is interpreted as a null reference.
@ParameterizedTest Denotes that a method is a parameterized test. serve as sources of null and empty values for parameterized tests that accept.
5 oct. 2018 src/test/resources/junit-platform.properties: ... Data Classes for Parameterized Tests ... TestData(input = null expected = null).
@ParameterizedTest Denotes that a method is a parameterized test. it can be useful to have null and empty values supplied to our parameterized tests.
@ParameterizedTest Denotes that a method is a parameterized test. it can be useful to have null and empty values supplied to our parameterized tests.
input it can be useful to have null and empty values supplied to our parameterized tests. The following annotations serve as sources of null and empty
@ParameterizedTest Denotes that a method is a parameterized test. serve as sources of null and empty values for parameterized tests that accept.