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