mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-21 22:50:46 +08:00
switched test to multiarg
This commit is contained in:
@@ -38,8 +38,8 @@ public class TestHarnessTest {
|
||||
PayloadsTest.testPayload(ExecMockPayload.class, new Class[] { ExecMockSerializable.class });
|
||||
}
|
||||
|
||||
public static class ExecMockPayload implements ObjectPayload<ExecMockSerializable> {
|
||||
public ExecMockSerializable getObject(String command) throws Exception {
|
||||
public static class ExecMockPayload extends ExtendedObjectPayload<ExecMockSerializable> {
|
||||
public ExecMockSerializable getObject(String[] command) throws Exception {
|
||||
return new ExecMockSerializable(command);
|
||||
}
|
||||
}
|
||||
@@ -52,8 +52,8 @@ public class TestHarnessTest {
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static class ExecMockSerializable implements Serializable {
|
||||
private final String cmd;
|
||||
public ExecMockSerializable(String cmd) { this.cmd = cmd; }
|
||||
private final String[] cmd;
|
||||
public ExecMockSerializable(String[] cmd) { this.cmd = cmd; }
|
||||
|
||||
private void readObject(final ObjectInputStream ois) throws IOException, ClassNotFoundException {
|
||||
ois.defaultReadObject();
|
||||
|
||||
Reference in New Issue
Block a user