refactor: simplify CommandProbe

This commit is contained in:
ReaJason
2025-08-31 17:39:57 +08:00
parent 0761c64b2a
commit b9907c4f7d
3 changed files with 27 additions and 7 deletions
@@ -0,0 +1,24 @@
package com.reajason.javaweb.probe.payload;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.anyOf;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* @author ReaJason
* @since 2025/8/26
*/
class CommandProbeTest {
@Test
@Disabled
void test() {
String result = new CommandProbe("hello").toString();
assertThat(result, anyOf(
containsString("not found")
));
}
}