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 /* @test
25 * @bug 8058779 8054307
26 * @library /test/lib
27 * @run testng LiteralReplace
28 * @summary Basic tests of String.replace(CharSequence, CharSequence)
29 * @key randomness
30 */
31
32 import java.util.ArrayList;
33 import java.util.Arrays;
34 import java.util.Iterator;
35 import java.util.regex.Matcher;
36 import java.util.regex.Pattern;
37 import java.util.Random;
38
39 import jdk.test.lib.RandomFactory;
40
41 import org.testng.annotations.Test;
42 import org.testng.annotations.DataProvider;
43 import static org.testng.Assert.fail;
44
45 public class LiteralReplace {
46
|
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 /* @test
25 * @bug 8058779 8054307
26 * @library /test/lib
27 * @build jdk.test.lib.RandomFactory
28 * @run testng LiteralReplace
29 * @summary Basic tests of String.replace(CharSequence, CharSequence)
30 * @key randomness
31 */
32
33 import java.util.ArrayList;
34 import java.util.Arrays;
35 import java.util.Iterator;
36 import java.util.regex.Matcher;
37 import java.util.regex.Pattern;
38 import java.util.Random;
39
40 import jdk.test.lib.RandomFactory;
41
42 import org.testng.annotations.Test;
43 import org.testng.annotations.DataProvider;
44 import static org.testng.Assert.fail;
45
46 public class LiteralReplace {
47
|