< prev index next >

test/lib/jdk/test/lib/Asserts.java

Print this page
rev 51789 : [mq]: asserts

*** 31,41 **** * An assertion will throw a {@link RuntimeException} if the assertion isn't true. * All the asserts can be imported into a test by using a static import: * * <pre> * {@code ! * import static jdk.testlibrary.Asserts.*; * } * * Always provide a message describing the assumption if the line number of the * failing assertion isn't enough to understand why the assumption failed. For * example, if the assertion is in a loop or in a method that is called --- 31,41 ---- * An assertion will throw a {@link RuntimeException} if the assertion isn't true. * All the asserts can be imported into a test by using a static import: * * <pre> * {@code ! * import static jdk.test.lib.Asserts.*; * } * * Always provide a message describing the assumption if the line number of the * failing assertion isn't enough to understand why the assumption failed. For * example, if the assertion is in a loop or in a method that is called
< prev index next >