Skip to content

Commit 8520545

Browse files
committed
Small changes in the tests
1 parent 7270ff0 commit 8520545

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/dev/despical/commandframework/test/CommandRegistrationTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.junit.jupiter.api.BeforeEach;
3434
import org.junit.jupiter.api.Test;
3535

36-
import java.util.Arrays;
3736
import java.util.List;
3837

3938
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -147,7 +146,7 @@ public void tearDown() {
147146
@NotNull
148147
private CommandFramework createCommandFramework() {
149148
CommandFramework commandFramework = new CommandFrameworkMock(plugin);
150-
commandFramework.addCustomParameter("String", arguments -> arguments.getArgument(0));
149+
commandFramework.addCustomParameter(String.class, arguments -> arguments.getArgument(0));
151150
commandFramework.options().enableOption(FrameworkOption.CUSTOM_COOLDOWN_CHECKER);
152151
commandFramework.registerCommands(new ExampleCommand());
153152
return commandFramework;
@@ -227,7 +226,7 @@ public void optionTest(CommandArguments arguments) {
227226
aliases = {"firstAlias", "secondAlias"}
228227
)
229228
public List<String> exampleCommandCompletion() {
230-
return Arrays.asList("first", "second", "third");
229+
return List.of("first", "second", "third");
231230
}
232231
}
233232
}

0 commit comments

Comments
 (0)