< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 19,40 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package com.oracle.java.testlibrary; /** * Asserts that can be used for verifying assumptions in tests. * * An assertion will throw a {@link RuntimeException} if the assertion isn't * valid. All the asserts can be imported into a test by using a static * import: * * <pre> * {@code ! * import static com.oracle.java.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 --- 19,40 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package jdk.test.lib; /** * Asserts that can be used for verifying assumptions in tests. * * An assertion will throw a {@link RuntimeException} if the assertion isn't * valid. 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 >