Skip to content

Commit

Permalink
Remove deprecated versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenlagus committed Oct 31, 2020
1 parent 6b18fbb commit 0a58ef7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class CommandRegistryTest {

@Test
void should_create_registry() {
CommandRegistry registry = new CommandRegistry(true, "BotUsername");
CommandRegistry registry = new CommandRegistry(true, () -> "BotUsername");
Assertions.assertNotNull(registry, "CommandRegistry is not created");
NullPointerException exception = Assertions.assertThrows(NullPointerException.class,
() -> new CommandRegistry(true, (String) null));
() -> new CommandRegistry(true, () -> "BotUsername"));
Assertions.assertEquals("Bot username must not be null", exception.getMessage(), "Invalid exception message");
}

Expand Down

0 comments on commit 0a58ef7

Please sign in to comment.