40 import java.io.UncheckedIOException;
41 import java.lang.reflect.Method;
42 import java.net.URI;
43 import java.nio.charset.Charset;
44 import java.util.ArrayList;
45 import java.util.HashMap;
46 import java.util.List;
47 import java.util.Locale;
48 import java.util.Map;
49 import java.util.regex.Pattern;
50 import java.util.stream.Collectors;
51 import java.util.stream.IntStream;
52 import java.util.stream.Stream;
53
54 import static java.util.stream.Collectors.joining;
55 import static java.util.stream.Collectors.toMap;
56
57 /*
58 * @test
59 * @bug 8062389
60 * @modules java.compiler
61 * jdk.compiler
62 * jdk.zipfs
63 * @summary Nearly exhaustive test of Class.getMethod() and Class.getMethods()
64 * @run main PublicMethodsTest
65 */
66 public class PublicMethodsTest {
67
68 public static void main(String[] args) {
69 Case c = new Case1();
70
71 int[] diffs = new int[1];
72 try (Stream<Map.Entry<int[], Map<String, String>>>
73 expected = expectedResults(c)) {
74 diffResults(c, expected)
75 .forEach(diff -> {
76 System.out.println(diff);
77 diffs[0]++;
78 });
79 }
80
81 if (diffs[0] > 0) {
|
40 import java.io.UncheckedIOException;
41 import java.lang.reflect.Method;
42 import java.net.URI;
43 import java.nio.charset.Charset;
44 import java.util.ArrayList;
45 import java.util.HashMap;
46 import java.util.List;
47 import java.util.Locale;
48 import java.util.Map;
49 import java.util.regex.Pattern;
50 import java.util.stream.Collectors;
51 import java.util.stream.IntStream;
52 import java.util.stream.Stream;
53
54 import static java.util.stream.Collectors.joining;
55 import static java.util.stream.Collectors.toMap;
56
57 /*
58 * @test
59 * @bug 8062389
60 * @modules jdk.compiler
61 * jdk.zipfs
62 * @summary Nearly exhaustive test of Class.getMethod() and Class.getMethods()
63 * @run main PublicMethodsTest
64 */
65 public class PublicMethodsTest {
66
67 public static void main(String[] args) {
68 Case c = new Case1();
69
70 int[] diffs = new int[1];
71 try (Stream<Map.Entry<int[], Map<String, String>>>
72 expected = expectedResults(c)) {
73 diffResults(c, expected)
74 .forEach(diff -> {
75 System.out.println(diff);
76 diffs[0]++;
77 });
78 }
79
80 if (diffs[0] > 0) {
|