jdk/test/java/math/BigInteger/PrimeTest.java
changeset 45288 58be10a068c2
parent 30436 17827057ef5a
child 45466 faf1c55d2046
equal deleted inserted replaced
45287:e0bb5f83e17a 45288:58be10a068c2
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 /*
    26 /*
    27  * @test
    27  * @test
    28  * @library /lib/testlibrary/
    28  * @library /test/lib
    29  * @build jdk.testlibrary.*
       
    30  * @run main PrimeTest
    29  * @run main PrimeTest
    31  * @bug 8026236 8074460 8078672
    30  * @bug 8026236 8074460 8078672
    32  * @summary test primality verification methods in BigInteger (use -Dseed=X to set PRNG seed)
    31  * @summary test primality verification methods in BigInteger (use -Dseed=X to set PRNG seed)
    33  * @author bpb
    32  * @author bpb
    34  * @key randomness
    33  * @key randomness
    38 import java.util.List;
    37 import java.util.List;
    39 import java.util.NavigableSet;
    38 import java.util.NavigableSet;
    40 import java.util.Set;
    39 import java.util.Set;
    41 import java.util.SplittableRandom;
    40 import java.util.SplittableRandom;
    42 import java.util.TreeSet;
    41 import java.util.TreeSet;
    43 import jdk.testlibrary.RandomFactory;
    42 import jdk.test.lib.RandomFactory;
    44 import static java.util.stream.Collectors.toCollection;
    43 import static java.util.stream.Collectors.toCollection;
    45 import static java.util.stream.Collectors.toList;
    44 import static java.util.stream.Collectors.toList;
    46 
    45 
    47 public class PrimeTest {
    46 public class PrimeTest {
    48 
    47