Dieser Commit ist enthalten in:
Ursprung
c2795f0f34
Commit
498a638790
@ -22,10 +22,20 @@ package de.steamwar.command;
|
|||||||
import de.steamwar.command.dto.ExecutionIdentifier;
|
import de.steamwar.command.dto.ExecutionIdentifier;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import static de.steamwar.AssertionUtils.assertCMDFramework;
|
import static de.steamwar.AssertionUtils.assertCMDFramework;
|
||||||
|
import static de.steamwar.AssertionUtils.assertTabCompletes;
|
||||||
|
|
||||||
public class StaticValueCommandTest {
|
public class StaticValueCommandTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void tabCompletionTest() {
|
||||||
|
StaticValueCommand cmd = new StaticValueCommand();
|
||||||
|
List<String> strings = cmd.tabComplete("", "", new String[]{""});
|
||||||
|
assertTabCompletes(strings, "hello", "world", "-a", "-b", "-c", "-d", "-e", "-f", "-g", "-h", "-i", "-j", "-k", "-l");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void defaultTest() {
|
public void defaultTest() {
|
||||||
StaticValueCommand cmd = new StaticValueCommand();
|
StaticValueCommand cmd = new StaticValueCommand();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren