use of toby.managers.CommandManager in project toby-bot by ml404.
the class CommandManagerTest method testCommandManagerFindsAllCommands.
@Test
public void testCommandManagerFindsAllCommands() {
CommandManager commandManager = new CommandManager(configService, brotherService, userService, musicFileService, excuseService, waiter);
List<Class<? extends ICommand>> availableCommands = Arrays.asList(HelpCommand.class, SetConfigCommand.class, KickCommand.class, MoveCommand.class, RollCommand.class, MemeCommand.class, HelloThereCommand.class, BrotherCommand.class, ChCommand.class, ShhCommand.class, TalkCommand.class, PollCommand.class, JoinCommand.class, LeaveCommand.class, PlayCommand.class, NowDigOnThisCommand.class, SetVolumeCommand.class, PauseCommand.class, ResumeCommand.class, LoopCommand.class, StopCommand.class, SkipCommand.class, NowPlayingCommand.class, QueueCommand.class, ShuffleCommand.class, AdjustUserCommand.class, IntroSongCommand.class, EventWaiterCommand.class, UserInfoCommand.class, RandomCommand.class, Kf2RandomMapCommand.class, DbdRandomKillerCommand.class, ExcuseCommand.class, SocialCreditCommand.class);
assertTrue(availableCommands.containsAll(commandManager.getAllCommands().stream().map(ICommand::getClass).collect(Collectors.toList())));
assertEquals(34, commandManager.getAllCommands().size());
}
Aggregations