MCPcopy Create free account
hub / github.com/demoth/jake2 / testSampleCommand

Method testSampleCommand

qcommon/src/test/java/jake2/qcommon/TestCMD.java:39–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37public class TestCMD {
38
39 @Test
40 public void testSampleCommand() {
41 List<String> result = new ArrayList<>();
42 Cmd.AddCommand("test", (List<String> args) -> {
43 result.add("success");
44 });
45 Cmd.ExecuteString("test");
46 Assert.assertEquals("success", result.get(0));
47 }
48
49 @Test
50 public void testTokenizeString() {

Callers

nothing calls this directly

Calls 4

AddCommandMethod · 0.95
ExecuteStringMethod · 0.95
addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected