mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-23 15:31:53 +08:00
refactor: dynamic add getFieldValue method for Listener
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
package com.reajason.javaweb.memshell.generator;
|
||||
|
||||
import com.reajason.javaweb.memshell.server.TomcatShell;
|
||||
import com.reajason.javaweb.memshell.shelltool.command.CommandListener;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
|
||||
/**
|
||||
* @author ReaJason
|
||||
* @since 2025/4/27
|
||||
*/
|
||||
class ListenerGeneratorTest {
|
||||
|
||||
@Test
|
||||
void testCommonListener() {
|
||||
Class<?> clazz = ListenerGenerator.generateListenerShellClass(TomcatShell.ListenerInterceptor.class, CommandListener.class);
|
||||
assertNotNull(clazz);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user