From 498a638790ba61d9567d0ac76a5b00c71eba7736 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 16 Aug 2022 18:11:10 +0200 Subject: [PATCH] Add one last test --- .../de/steamwar/command/StaticValueCommandTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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();