test/java/lang/ClassLoader/Assert.java

Print this page
rev 9282 : 8037013: [TESTBUG] Fix test/java/lang/ClassLoader/Assert.sh on AIX
Reviewed-by: mchung


   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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  * @run shell/timeout=300 Assert.sh

  28  * @summary Test the assertion facility
  29  * @author Mike McCloskey
  30  */
  31 
  32 import package1.*;
  33 import package2.*;
  34 import package1.package3.*;
  35 import java.io.*;
  36 import java.util.Random;
  37 
  38 public class Assert {
  39 
  40     private static Class1 testClass1;
  41     private static Class2 testClass2;
  42     private static Class3 testClass3;
  43     private static final  boolean debug = false;
  44     private static Random generator = new Random();
  45 
  46     /**
  47      * The first invocation of this test starts a loop which exhaustively tests




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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  */
  32 
  33 import package1.*;
  34 import package2.*;
  35 import package1.package3.*;
  36 import java.io.*;
  37 import java.util.Random;
  38 
  39 public class Assert {
  40 
  41     private static Class1 testClass1;
  42     private static Class2 testClass2;
  43     private static Class3 testClass3;
  44     private static final  boolean debug = false;
  45     private static Random generator = new Random();
  46 
  47     /**
  48      * The first invocation of this test starts a loop which exhaustively tests