< prev index next >

test/java/lang/ClassLoader/Assert.java

Print this page
rev 12339 : 8075658: Mark intermittently failuring core-svc tests


  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 4290640 4785473
  27  * @build package1.Class1 package2.Class2 package1.package3.Class3 Assert
  28  * @run main/othervm Assert
  29  * @summary Test the assertion facility
  30  * @author Mike McCloskey
  31  * @key randomness
  32  */
  33 
  34 import package1.*;
  35 import package2.*;
  36 import package1.package3.*;
  37 import java.io.*;
  38 import java.util.Random;
  39 
  40 public class Assert {
  41 
  42     private static Class1 testClass1;
  43     private static Class2 testClass2;
  44     private static Class3 testClass3;
  45     private static final  boolean debug = false;
  46     private static Random generator = new Random();
  47 
  48     /**
  49      * The first invocation of this test starts a loop which exhaustively tests
  50      * the object tree with all of its different settings.
  51      * There are 7 test objects in a tree that has 7 different places to set




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 4290640 4785473
  27  * @build package1.Class1 package2.Class2 package1.package3.Class3 Assert
  28  * @run main/othervm Assert
  29  * @summary Test the assertion facility
  30  * @author Mike McCloskey
  31  * @key randomness intermittent
  32  */
  33 
  34 import package1.*;
  35 import package2.*;
  36 import package1.package3.*;
  37 import java.io.*;
  38 import java.util.Random;
  39 
  40 public class Assert {
  41 
  42     private static Class1 testClass1;
  43     private static Class2 testClass2;
  44     private static Class3 testClass3;
  45     private static final  boolean debug = false;
  46     private static Random generator = new Random();
  47 
  48     /**
  49      * The first invocation of this test starts a loop which exhaustively tests
  50      * the object tree with all of its different settings.
  51      * There are 7 test objects in a tree that has 7 different places to set


< prev index next >