Add better int and long handling for StaticValue annotation #12

Zusammengeführt
YoyoNow hat 3 Commits von CMDAPIOptimizeISEForNumber nach master 2022-08-16 18:14:19 +02:00 zusammengeführt
Nur Änderungen aus Commit 498a638790 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -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<String> 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();