Skip to content

Commit

Permalink
Rename to ModuleAccessTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlatemp committed Jun 12, 2021
1 parent 9a98b8c commit b09501d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit b09501d

Please sign in to comment.