mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 23:11:52 +08:00
feat: support glassfish shell generate
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ class GodzillaTest {
|
||||
.className(className)
|
||||
.clazz(clazz)
|
||||
.build();
|
||||
byte[] bytes = GodzillaGenerator.generate(config, shellConfig);
|
||||
byte[] bytes = new GodzillaGenerator(config, shellConfig).getBytes();
|
||||
Object obj = ClassUtils.newInstance(bytes);
|
||||
assertEquals(shellConfig.getClassName(), obj.getClass().getName());
|
||||
assertEquals(shellConfig.getPass(), ClassUtils.getFieldValue(obj, "pass"));
|
||||
|
||||
Reference in New Issue
Block a user