Skip to content

Commit 54c0348

Browse files
committed
Fixed minor compile issues in tests
1 parent d5e7745 commit 54c0348

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

application/src/test/java/org/togetherjava/tjbot/commands/SlashCommandAdapterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void generateComponentId() {
6666
// Test that the adapter uses the given generator
6767
SlashCommandAdapter adapter = createAdapter();
6868
adapter.acceptComponentIdGenerator((componentId, lifespan) -> "%s;%s;%s"
69-
.formatted(componentId.commandName(), componentId.elements().size(), lifespan));
69+
.formatted(componentId.userInteractorName(), componentId.elements().size(), lifespan));
7070

7171
// No lifespan given
7272
String[] elements = {"foo", "bar", "baz"};

application/src/test/java/org/togetherjava/tjbot/commands/system/ComponentIdTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99

1010
final class ComponentIdTest {
1111
@Test
12-
void getCommandName() {
13-
String commandName = "foo";
14-
assertEquals(commandName, new ComponentId(commandName, List.of()).commandName());
12+
void getUserInteractorName() {
13+
String userInteractorName = "foo";
14+
assertEquals(userInteractorName,
15+
new ComponentId(userInteractorName, List.of()).userInteractorName());
1516
}
1617

1718
@Test

0 commit comments

Comments
 (0)