Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Aug 28, 2023
1 parent 33a07c7 commit d2b6948
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,23 @@ void runWhenDisabled(boolean runsWhenDisabled) {
assertEquals(runsWhenDisabled, command.runsWhenDisabled());
}

@SuppressWarnings("unused")
@Test
void commandInOtherCompositionTest() {
var command = new InstantCommand();
var composition = new WrapperCommand(command) {};
assertThrows(IllegalArgumentException.class, () -> composeSingle(command));
}

@SuppressWarnings("unused")
@Test
void commandInMultipleCompositionsTest() {
var command = new InstantCommand();
var composition = composeSingle(command);
assertThrows(IllegalArgumentException.class, () -> composeSingle(command));
}

@SuppressWarnings("unused")
@Test
void composeThenScheduleTest() {
var command = new InstantCommand();
Expand Down

0 comments on commit d2b6948

Please sign in to comment.