Dieser Commit ist enthalten in:
Ursprung
5d53ede5e8
Commit
241117a6a6
@ -44,7 +44,7 @@ public class PartOfCommand {
|
||||
return new TestTypeMapper<Integer>() {
|
||||
@Override
|
||||
public Integer map(String sender, PreviousArguments previousArguments, String s) {
|
||||
return Integer.parseInt(s);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -64,7 +64,7 @@ public class PartOfCommand {
|
||||
|
||||
@Register
|
||||
public void execute(String s, @Mapper("test") int i) {
|
||||
throw new ExecutionIdentifier("SubCommand with int");
|
||||
throw new ExecutionIdentifier("SubCommand with int " + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,8 +36,7 @@ public class PartOfCommandTest {
|
||||
command.execute("test", "", new String[]{"0"});
|
||||
assertThat(true, is(false));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
assertCMDFramework(e, ExecutionIdentifier.class, "SubCommand with int");
|
||||
assertCMDFramework(e, ExecutionIdentifier.class, "SubCommand with int -1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren