49 BITNESS("is32bit", "is64bit"), |
49 BITNESS("is32bit", "is64bit"), |
50 OS("isAix", "isLinux", "isOSX", "isSolaris", "isWindows"), |
50 OS("isAix", "isLinux", "isOSX", "isSolaris", "isWindows"), |
51 VM_TYPE("isClient", "isServer", "isGraal", "isMinimal", "isZero", "isEmbedded"), |
51 VM_TYPE("isClient", "isServer", "isGraal", "isMinimal", "isZero", "isEmbedded"), |
52 MODE("isInt", "isMixed", "isComp"), |
52 MODE("isInt", "isMixed", "isComp"), |
53 IGNORED("isEmulatedClient", "isDebugBuild", "isFastDebugBuild", "isSlowDebugBuild", |
53 IGNORED("isEmulatedClient", "isDebugBuild", "isFastDebugBuild", "isSlowDebugBuild", |
54 "shouldSAAttach", "isTieredSupported"); |
54 "shouldSAAttach", "isTieredSupported", "areCustomLoadersSupportedForCDS"); |
55 |
55 |
56 public final List<String> methodNames; |
56 public final List<String> methodNames; |
57 |
57 |
58 private MethodGroup(String... methodNames) { |
58 private MethodGroup(String... methodNames) { |
59 this.methodNames = Collections.unmodifiableList( |
59 this.methodNames = Collections.unmodifiableList( |
104 for (Method m : Platform.class.getMethods()) { |
104 for (Method m : Platform.class.getMethods()) { |
105 if (m.getParameterCount() == 0 |
105 if (m.getParameterCount() == 0 |
106 && m.getReturnType() == boolean.class) { |
106 && m.getReturnType() == boolean.class) { |
107 Asserts.assertTrue(allMethods.contains(m.getName()), |
107 Asserts.assertTrue(allMethods.contains(m.getName()), |
108 "All Platform's methods with signature '():Z' should " |
108 "All Platform's methods with signature '():Z' should " |
109 + "be tested "); |
109 + "be tested. Missing: " + m.getName()); |
110 } |
110 } |
111 } |
111 } |
112 } |
112 } |
113 |
113 |
114 /** |
114 /** |