use of org.spongepowered.api.command.args.CommandArgs in project Nucleus by NucleusPowered.
the class PlayerConsoleArgumentTest method testWhenTwoPlayersWithTheSameNameAreInTheUserDatabaseWithNoExactMatchReturnsBothIfTheyOtherwiseMatch.
@Test
public void testWhenTwoPlayersWithTheSameNameAreInTheUserDatabaseWithNoExactMatchReturnsBothIfTheyOtherwiseMatch() throws ArgumentParseException {
List<?> list = getParser().parseInternal("tes", mockSource(), new CommandArgs("", new ArrayList<>()));
Assert.assertEquals(2, list.size());
}
Aggregations