feat: support glassfish shell generate

This commit is contained in:
ReaJason
2024-12-13 01:39:24 +08:00
parent 9c4f48895a
commit 149ce07dab
38 changed files with 1706 additions and 210 deletions
@@ -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"));