From b09501ddfd7a9b301413b38cb3f4f473aae99ffb Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Sat, 12 Jun 2021 15:26:21 +0800 Subject: [PATCH] Rename to ModuleAccessTest --- .../jdk9/java/runtest/{MAT.java => ModuleAccessTest.java} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename impl/testunit/src/jdk9/java/runtest/{MAT.java => ModuleAccessTest.java} (88%) diff --git a/impl/testunit/src/jdk9/java/runtest/MAT.java b/impl/testunit/src/jdk9/java/runtest/ModuleAccessTest.java similarity index 88% rename from impl/testunit/src/jdk9/java/runtest/MAT.java rename to impl/testunit/src/jdk9/java/runtest/ModuleAccessTest.java index 8cfecf1..c10af8a 100644 --- a/impl/testunit/src/jdk9/java/runtest/MAT.java +++ b/impl/testunit/src/jdk9/java/runtest/ModuleAccessTest.java @@ -11,7 +11,7 @@ import java.util.Set; import java.util.UUID; -public class MAT { +public class ModuleAccessTest { @TestTask public static void run() { ModuleAccess access = Root.getModuleAccess(); @@ -20,8 +20,8 @@ public static void run() { Assertions.assertTrue(access.isSupport()); Assertions.assertNotNull(access.getModule(ModuleAccess.class)); - Assertions.assertNotNull(access.getModule(MAT.class)); - ClassLoader cl = MAT.class.getClassLoader(); + Assertions.assertNotNull(access.getModule(ModuleAccessTest.class)); + ClassLoader cl = ModuleAccessTest.class.getClassLoader(); { String ppk = "io.kjg.ppkv." + UUID.randomUUID(); @@ -33,7 +33,7 @@ public static void run() { Object unnamedModule = access.defineModule(cl, moduleBuilder.build(), null); System.out.println("UN: " + unnamedModule); - Assertions.assertNotSame(unnamedModule, access.getModule(MAT.class)); + Assertions.assertNotSame(unnamedModule, access.getModule(ModuleAccessTest.class)); ClassWriter cw = new ClassWriter(0); cw.visit(Opcodes.V1_8, 0, (ppk + ".RX").replace('.', '/'), null, "java/lang/Object", null); byte[] b = cw.toByteArray();