File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/test/java/dev/despical/commandframework/test Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3333import org .junit .jupiter .api .BeforeEach ;
3434import org .junit .jupiter .api .Test ;
3535
36- import java .util .Arrays ;
3736import java .util .List ;
3837
3938import 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}
You can’t perform that action at this time.
0 commit comments