diff --git a/testsrc/de/steamwar/command/StaticValueCommandTest.java b/testsrc/de/steamwar/command/StaticValueCommandTest.java index 055b8e2..665250a 100644 --- a/testsrc/de/steamwar/command/StaticValueCommandTest.java +++ b/testsrc/de/steamwar/command/StaticValueCommandTest.java @@ -22,10 +22,20 @@ package de.steamwar.command; import de.steamwar.command.dto.ExecutionIdentifier; import org.junit.Test; +import java.util.List; + import static de.steamwar.AssertionUtils.assertCMDFramework; +import static de.steamwar.AssertionUtils.assertTabCompletes; public class StaticValueCommandTest { + @Test + public void tabCompletionTest() { + StaticValueCommand cmd = new StaticValueCommand(); + List strings = cmd.tabComplete("", "", new String[]{""}); + assertTabCompletes(strings, "hello", "world", "-a", "-b", "-c", "-d", "-e", "-f", "-g", "-h", "-i", "-j", "-k", "-l"); + } + @Test public void defaultTest() { StaticValueCommand cmd = new StaticValueCommand();