target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test void throwsExceptionWhenSc2ApiResponseDoesNotHaveStartReplay() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseStartReplay.from(nothing())) .withMessage("provided argument doesn't have start replay response"); assertThatExceptionOfType(IllegalArgumentException.class) .isThrow...
public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc2ApiResponse.getStatus(), sc2ApiRespons...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
@Test void convertsSc2ApiResponseStartReplayToResponseStartReplay() { ResponseStartReplay responseStartReplay = ResponseStartReplay.from(sc2ApiResponseWithStartReplay()); assertThatResponseDoesNotHaveError(responseStartReplay); assertThatResponseIsInValidState(responseStartReplay); }
public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc2ApiResponse.getStatus(), sc2ApiRespons...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
@Test void throwsExceptionWhenResponseStartReplayErrorIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseStartReplay.Error.from(nothing())) .withMessage("sc2api response start replay error is required"); }
public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc2ApiResponse.getStatus(), sc2ApiRespons...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
ResponseStartReplay extends Response { public static ResponseStartReplay from(Sc2Api.Response sc2ApiResponse) { if (!hasStartReplayResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have start replay response"); } return new ResponseStartReplay( sc2ApiResponse.getStartReplay(), sc...
@Test void throwsNullPointerExceptionForNullArgument() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> new ResponseConverter().apply(nothing())) .withMessage("sc2api response is required"); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void throwsAssertionErrorForUnknownSc2ApiResponse() { assertThatExceptionOfType(AssertionError.class) .isThrownBy(() -> new ResponseConverter().apply(emptySc2ApiResponse())) .withMessage("unknown response"); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseErrorWhenSc2ApiResponseHasErrorMessages() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithError())).isInstanceOf(ResponseError.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponsePingWhenSc2ApiResponseHasPing() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithPing())) .as("creates ResponsePing instance from sc2api response") .isInstanceOf(ResponsePing.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void convertsAllFieldsFromSc2ApiUnit() { assertThatAllFieldsAreConverted(BuffData.from(sc2ApiBuffData())); }
public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); }
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } }
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } private BuffData(Data.BuffData sc2ApiBuffData); }
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } private BuffData(Data.BuffData sc2ApiBuffData); static BuffData from(Data.BuffData sc2ApiBuffData); Buff getBuff(); String getName(); @Overr...
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } private BuffData(Data.BuffData sc2ApiBuffData); static BuffData from(Data.BuffData sc2ApiBuffData); Buff getBuff(); String getName(); @Overr...
@Test void createsResponseAvailableMapsWhenSc2ApiResponseHasAvailableMaps() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithAvailableMaps())) .as("creates ResponseAvailableMaps instance from sc2api response") .isInstanceOf(ResponseAvailableMaps.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseCreateGameWhenSc2ApiResponseHasCreateGame() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithCreateGame())) .as("creates ResponseCreateGame instance from sc2api response") .isInstanceOf(ResponseCreateGame.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseJoinGameWhenSc2ApiResponseHasJoinGame() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithJoinGame())) .as("creates ResponseJoinGame instance from sc2api response") .isInstanceOf(ResponseJoinGame.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseLeaveGameWhenSc2ApiResponseHasLeaveGame() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithLeaveGame())) .as("creates ResponseLeaveGame instance from sc2api response") .isInstanceOf(ResponseLeaveGame.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseRestartGameWhenSc2ApiResponseHasRestartGame() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithRestartGame())) .as("creates ResponseRestartGame instance from sc2api response") .isInstanceOf(ResponseRestartGame.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseQuitGameWhenSc2ApiResponseHasQuit() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithQuit())) .as("creates ResponseQuitGame instance from sc2api response") .isInstanceOf(ResponseQuitGame.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseStartReplayWhenSc2ApiResponseHasStartReplay() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithStartReplay())) .as("creates ResponseStartReplay instance from sc2api response") .isInstanceOf(ResponseStartReplay.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseReplayInfoWhenSc2ApiResponseHasReplayInfo() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithReplayInfo())) .as("creates ResponseReplayInfo instance from sc2api response") .isInstanceOf(ResponseReplayInfo.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseObservationWhenSc2ApiResponseHasResponseObservation() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithObservation())) .as("creates ResponseObservation instance from sc2api response") .isInstanceOf(ResponseObservation.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseStepWhenSc2ApiResponseHasResponseStep() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithStep())) .as("creates ResponseStep instance from sc2api response") .isInstanceOf(ResponseStep.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void throwsExceptionWhenBuffIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> BuffData.from(without( () -> sc2ApiBuffData().toBuilder(), Data.BuffData.Builder::clearBuffId).build())) .withMessage("buff is required"); }
public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); }
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } }
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } private BuffData(Data.BuffData sc2ApiBuffData); }
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } private BuffData(Data.BuffData sc2ApiBuffData); static BuffData from(Data.BuffData sc2ApiBuffData); Buff getBuff(); String getName(); @Overr...
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } private BuffData(Data.BuffData sc2ApiBuffData); static BuffData from(Data.BuffData sc2ApiBuffData); Buff getBuff(); String getName(); @Overr...
@Test void managesConfigurationOfManyGameInstances() throws IOException { asWindows(); initStarcraft2Executable(WIN_USER_DIR); Config instance01 = starcraft2Game().getGameConfiguration(); Config instance02 = starcraft2Game().getGameConfiguration(); Config instance03 = starcraft2Game().getGameConfiguration(); Config ins...
public static Builder starcraft2Game() { return new Builder(); }
S2Controller extends DefaultSubscriber<Response> { public static Builder starcraft2Game() { return new Builder(); } }
S2Controller extends DefaultSubscriber<Response> { public static Builder starcraft2Game() { return new Builder(); } private S2Controller(Config config); }
S2Controller extends DefaultSubscriber<Response> { public static Builder starcraft2Game() { return new Builder(); } private S2Controller(Config config); static Builder starcraft2Game(); S2Controller untilReady(); void stop(); boolean stopAndWait(); boolean stopAndWait(long timeoutInMillis); void isInState(GameStatus e...
S2Controller extends DefaultSubscriber<Response> { public static Builder starcraft2Game() { return new Builder(); } private S2Controller(Config config); static Builder starcraft2Game(); S2Controller untilReady(); void stop(); boolean stopAndWait(); boolean stopAndWait(long timeoutInMillis); void isInState(GameStatus e...
@Test void createsResponseActionWhenSc2ApiResponseHasResponseAction() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithAction())) .as("creates ResponseAction instance from sc2api response") .isInstanceOf(ResponseAction.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseQuickSaveWhenSc2ApiResponseHasResponseQuickSave() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithQuickSave())) .as("creates ResponseQuickSave instance from sc2api response") .isInstanceOf(ResponseQuickSave.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseQuickLoadWhenSc2ApiResponseHasResponseQuickLoad() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithQuickLoad())) .as("creates ResponseQuickLoad instance from sc2api response") .isInstanceOf(ResponseQuickLoad.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseSaveMapWhenSc2ApiResponseHasResponseSaveMap() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithSaveMap())) .as("creates ResponseSaveMap instance from sc2api response") .isInstanceOf(ResponseSaveMap.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseSaveReplayWhenSc2ApiResponseHasResponseSaveReplay() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithSaveReplay())) .as("creates ResponseSaveReplay instance from sc2api response") .isInstanceOf(ResponseSaveReplay.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseDebugWhenSc2ApiResponseHasResponseDebug() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithDebug())) .as("creates ResponseDebug instance from sc2api response") .isInstanceOf(ResponseDebug.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseGameInfoWhenSc2ApiResponseHasResponseGameInfo() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithGameInfo())) .as("creates ResponseGameInfo instance from sc2api response") .isInstanceOf(ResponseGameInfo.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseQueryWhenSc2ApiResponseHasResponseQuery() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithQuery())) .as("creates ResponseQuery instance from sc2api response") .isInstanceOf(ResponseQuery.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseDataWhenSc2ApiResponseHasResponseData() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithData())) .as("creates ResponseData instance from sc2api response") .isInstanceOf(ResponseData.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void createsResponseObserverActionWhenSc2ApiResponseHasResponseObserverAction() { assertThat(new ResponseConverter().apply(sc2ApiResponseWithObserverAction())) .as("creates ResponseObserverAction instance from sc2api response") .isInstanceOf(ResponseObserverAction.class); }
@Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from(sc2ApiResponse); } if (sc2ApiResponse.hasAvailableMaps()) { return...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
ResponseConverter implements Function<Sc2Api.Response, Response> { @Override public Response apply(Sc2Api.Response sc2ApiResponse) { require("sc2api response", sc2ApiResponse); if (sc2ApiResponse.getErrorCount() > 0) { return ResponseError.from(sc2ApiResponse); } if (sc2ApiResponse.hasPing()) { return ResponsePing.from...
@Test void throwsExceptionWhenNameIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> BuffData.from(without( () -> sc2ApiBuffData().toBuilder(), Data.BuffData.Builder::clearName).build())) .withMessage("name is required"); }
public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); }
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } }
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } private BuffData(Data.BuffData sc2ApiBuffData); }
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } private BuffData(Data.BuffData sc2ApiBuffData); static BuffData from(Data.BuffData sc2ApiBuffData); Buff getBuff(); String getName(); @Overr...
BuffData implements Serializable { public static BuffData from(Data.BuffData sc2ApiBuffData) { require("sc2api buff data", sc2ApiBuffData); return new BuffData(sc2ApiBuffData); } private BuffData(Data.BuffData sc2ApiBuffData); static BuffData from(Data.BuffData sc2ApiBuffData); Buff getBuff(); String getName(); @Overr...
@Test void throwsExceptionWhenSc2ApiResponseDoesNotHaveLeaveGame() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseLeaveGame.from(nothing())) .withMessage("provided argument doesn't have leave game response"); assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(()...
public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseLeaveGame extends Response { public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseLeaveGame extends Response { public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseLeaveGame extends Response { public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseLeaveGame extends Response { public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
@Test void convertsSc2ApiResponseLeaveGameToResponseLeaveGame() { ResponseLeaveGame responseLeaveGame = ResponseLeaveGame.from(sc2ApiResponseWithLeaveGame()); assertThat(responseLeaveGame).as("converted response leave game").isNotNull(); assertThat(responseLeaveGame.getType()).as("type of leave game response").isEqualT...
public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseLeaveGame extends Response { public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseLeaveGame extends Response { public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseLeaveGame extends Response { public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseLeaveGame extends Response { public static ResponseLeaveGame from(Sc2Api.Response sc2ApiResponse) { if (!hasLeaveGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have leave game response"); } return new ResponseLeaveGame(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
@Test void throwsExceptionWhenSc2ApiResponseDoesNotHaveJoinGame() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseJoinGame.from(nothing())) .withMessage("provided argument doesn't have join game response"); assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() ->...
public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
@Test void convertsSc2ApiResponseJoinGameToResponseJoinGame() { assertThatResponseJoinGameDoesNotHaveError(ResponseJoinGame.from(sc2ApiResponseWithJoinGame())); }
public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
@Test void throwsExceptionWhenResponseJoinGameErrorIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseJoinGame.Error.from(nothing())) .withMessage("sc2api response join game error is required"); }
public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
@Test void convertsSc2ApiResponseJoinGameWithErrorToResponseJoinGame() { ResponseJoinGame responseJoinGame = ResponseJoinGame.from(sc2ApiResponseWithJoinGameWithError()); assertThatResponseIsInValidState(responseJoinGame); assertThatErrorsAreMapped(responseJoinGame); }
public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
ResponseJoinGame extends Response { public static ResponseJoinGame from(Sc2Api.Response sc2ApiResponse) { if (!hasJoinGameResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have join game response"); } return new ResponseJoinGame(sc2ApiResponse.getJoinGame(), sc2ApiResponse.getSta...
@Test void throwsExceptionWhenSc2ApiResponseDoesNotHaveStep() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseStep.from(nothing())) .withMessage("provided argument doesn't have step response"); assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseStep...
public static ResponseStep from(Sc2Api.Response sc2ApiResponse) { if (!hasStepResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have step response"); } return new ResponseStep(sc2ApiResponse.getStep(), sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseStep extends Response { public static ResponseStep from(Sc2Api.Response sc2ApiResponse) { if (!hasStepResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have step response"); } return new ResponseStep(sc2ApiResponse.getStep(), sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseStep extends Response { public static ResponseStep from(Sc2Api.Response sc2ApiResponse) { if (!hasStepResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have step response"); } return new ResponseStep(sc2ApiResponse.getStep(), sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseStep extends Response { public static ResponseStep from(Sc2Api.Response sc2ApiResponse) { if (!hasStepResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have step response"); } return new ResponseStep(sc2ApiResponse.getStep(), sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseStep extends Response { public static ResponseStep from(Sc2Api.Response sc2ApiResponse) { if (!hasStepResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have step response"); } return new ResponseStep(sc2ApiResponse.getStep(), sc2ApiResponse.getStatus(), sc2ApiResponse.get...
@Test void throwsExceptionWhenSc2ApiResponseDoesNotHaveReplayInfo() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseReplayInfo.from(nothing())) .withMessage("provided argument doesn't have replay info response"); assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy...
public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
@Test void convertsSc2ApiResponseReplayInfoToResponseReplayInfo() { ResponseReplayInfo responseReplayInfo = ResponseReplayInfo.from(sc2ApiResponseWithReplayInfo()); assertThatResponseDoesNotHaveError(responseReplayInfo); assertThatResponseIsInValidState(responseReplayInfo); }
public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
@Test void throwsExceptionWhenMapInfoIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseReplayInfo.from(sc2ApiResponseReplayInfoWithoutMap())) .withMessage("map info (local or battlenet) is required"); }
public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
@Test void throwsExceptionWhenUnitTagSetIsEmpty() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ((DebugKillUnit.Builder) killUnit()).build()) .withMessage("unit tag set is required"); }
public static DebugKillUnitSyntax killUnit() { return new Builder(); }
DebugKillUnit implements Sc2ApiSerializable<Debug.DebugKillUnit> { public static DebugKillUnitSyntax killUnit() { return new Builder(); } }
DebugKillUnit implements Sc2ApiSerializable<Debug.DebugKillUnit> { public static DebugKillUnitSyntax killUnit() { return new Builder(); } private DebugKillUnit(Builder builder); }
DebugKillUnit implements Sc2ApiSerializable<Debug.DebugKillUnit> { public static DebugKillUnitSyntax killUnit() { return new Builder(); } private DebugKillUnit(Builder builder); static DebugKillUnitSyntax killUnit(); @Override Debug.DebugKillUnit toSc2Api(); Set<Tag> getUnitTags(); @Override boolean equals(Object o); ...
DebugKillUnit implements Sc2ApiSerializable<Debug.DebugKillUnit> { public static DebugKillUnitSyntax killUnit() { return new Builder(); } private DebugKillUnit(Builder builder); static DebugKillUnitSyntax killUnit(); @Override Debug.DebugKillUnit toSc2Api(); Set<Tag> getUnitTags(); @Override boolean equals(Object o); ...
@Test void throwsExceptionWhenResponseReplayInfoErrorIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseReplayInfo.Error.from(nothing())) .withMessage("sc2api response replay info error is required"); }
public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
@Test void convertsSc2ApiResponseReplayInfoWithErrorToResponseReplayInfo() { ResponseReplayInfo responseReplayInfo = ResponseReplayInfo.from(sc2ApiResponseWithReplayInfoWithError()); assertThatResponseIsInValidState(responseReplayInfo); assertThatErrorsAreMapped(responseReplayInfo); }
public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
ResponseReplayInfo extends Response { public static ResponseReplayInfo from(Sc2Api.Response sc2ApiResponse) { if (!hasReplayInfoResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have replay info response"); } return new ResponseReplayInfo( sc2ApiResponse.getReplayInfo(), sc2ApiRe...
@Test void throwsExceptionWhenSc2ApiResponseDoesNotHaveObservation() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseObservation.from(nothing())) .withMessage("provided argument doesn't have observation response"); assertThatExceptionOfType(IllegalArgumentException.class) .isThrown...
public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2ApiResponse.getStatus(), sc2ApiResponse...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
@Test void convertsSc2ApiResponseObservationToResponseObservation() { ResponseObservation responseObservation = ResponseObservation.from(sc2ApiResponseWithObservation()); assertThatResponseIsInValidState(responseObservation); assertThatAllFieldsAreConverted(responseObservation); }
public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2ApiResponse.getStatus(), sc2ApiResponse...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
@Test void throwsExceptionWhenObservationDoesNotExist() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseObservation.from(emptySc2ApiResponseObservation())) .withMessage("observation is required"); }
public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2ApiResponse.getStatus(), sc2ApiResponse...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
@Test void fulfillsEqualsContract() throws UnsupportedEncodingException { EqualsVerifier.forClass(ResponseObservation.class) .withIgnoredFields("nanoTime") .withNonnullFields("type", "status", "actions", "actionErrors", "observation", "playerResults", "chat") .withRedefinedSuperclass() .withPrefabValues(UnitInfo.class,...
public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2ApiResponse.getStatus(), sc2ApiResponse...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
ResponseObservation extends Response { public static ResponseObservation from(Sc2Api.Response sc2ApiResponse) { if (!hasObservationResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have observation response"); } return new ResponseObservation( sc2ApiResponse.getObservation(), sc2...
@Test void throwsExceptionWhenSc2ApiResponseDoesNotHaveAction() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseAction.from(nothing())) .withMessage("provided argument doesn't have action response"); assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Respon...
public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseAction extends Response { public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2Api...
ResponseAction extends Response { public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2Api...
ResponseAction extends Response { public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2Api...
ResponseAction extends Response { public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2Api...
@Test void convertsSc2ApiResponseActionToResponseAction() { assertThatAllFieldsAreProperlyConverted(ResponseAction.from(sc2ApiResponseWithAction())); }
public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseAction extends Response { public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2Api...
ResponseAction extends Response { public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2Api...
ResponseAction extends Response { public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2Api...
ResponseAction extends Response { public static ResponseAction from(Sc2Api.Response sc2ApiResponse) { if (!hasActionResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have action response"); } return new ResponseAction(sc2ApiResponse.getAction(), sc2ApiResponse.getStatus(), sc2Api...
@Test void throwsExceptionWhenSc2ApiResponseDoesNotHaveQuickLoad() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> ResponseQuickLoad.from(nothing())) .withMessage("provided argument doesn't have quick load response"); assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(()...
public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseQuickLoad extends Response { public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseQuickLoad extends Response { public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseQuickLoad extends Response { public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseQuickLoad extends Response { public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
@Test void convertsSc2ApiResponseQuickLoadToResponseQuickLoad() { ResponseQuickLoad responseQuickLoad = ResponseQuickLoad.from(sc2ApiResponseWithQuickLoad()); assertThat(responseQuickLoad).as("converted response quick load").isNotNull(); assertThat(responseQuickLoad.getType()).as("type of quick load response").isEqualT...
public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.getId()); }
ResponseQuickLoad extends Response { public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseQuickLoad extends Response { public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseQuickLoad extends Response { public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
ResponseQuickLoad extends Response { public static ResponseQuickLoad from(Sc2Api.Response sc2ApiResponse) { if (!hasQuickLoadResponse(sc2ApiResponse)) { throw new IllegalArgumentException("provided argument doesn't have quick load response"); } return new ResponseQuickLoad(sc2ApiResponse.getStatus(), sc2ApiResponse.get...
@Test void throwsExceptionWhenColorIsNotSet() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> fullAccessTo(line().of(P0, P1).withColor(nothing())).build()) .withMessage("color is required"); }
public static DebugLineSyntax line() { return new Builder(); }
DebugLine implements Sc2ApiSerializable<Debug.DebugLine> { public static DebugLineSyntax line() { return new Builder(); } }
DebugLine implements Sc2ApiSerializable<Debug.DebugLine> { public static DebugLineSyntax line() { return new Builder(); } private DebugLine(Builder builder); }
DebugLine implements Sc2ApiSerializable<Debug.DebugLine> { public static DebugLineSyntax line() { return new Builder(); } private DebugLine(Builder builder); static DebugLineSyntax line(); @Override Debug.DebugLine toSc2Api(); Color getColor(); Line getLine(); @Override boolean equals(Object o); @Override int hashCode...
DebugLine implements Sc2ApiSerializable<Debug.DebugLine> { public static DebugLineSyntax line() { return new Builder(); } private DebugLine(Builder builder); static DebugLineSyntax line(); @Override Debug.DebugLine toSc2Api(); Color getColor(); Line getLine(); @Override boolean equals(Object o); @Override int hashCode...
@Test void throwsExceptionWhenSc2ApiUnitInfoIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> UnitInfo.from(nothing())) .withMessage("sc2api unit info is required"); }
public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo); UnitType getUnitType(); Optional<Alliance> get...
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo); UnitType getUnitType(); Optional<Alliance> get...
@Test void convertsAllFieldsFromSc2ApiUnitInfo() { assertThatAllFieldsAreConverted(UnitInfo.from(sc2ApiUnitInfo())); }
public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo); UnitType getUnitType(); Optional<Alliance> get...
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo); UnitType getUnitType(); Optional<Alliance> get...
@Test void throwsExceptionWhenUnitTypeIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> UnitInfo.from( without(() -> sc2ApiUnitInfo().toBuilder(), Ui.UnitInfo.Builder::clearUnitType).build())) .withMessage("unit type is required"); }
public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo); UnitType getUnitType(); Optional<Alliance> get...
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo); UnitType getUnitType(); Optional<Alliance> get...
@Test void fulfillsEqualsContract() { EqualsVerifier .forClass(UnitInfo.class) .withNonnullFields("unitType") .withPrefabValues(UnitInfo.class, UnitInfo.from(sc2ApiUnitInfoAddOn()), UnitInfo.from(sc2ApiUnitInfo())) .verify(); }
public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); }
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo); UnitType getUnitType(); Optional<Alliance> get...
UnitInfo implements Serializable { public static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo) { require("sc2api unit info", sc2ApiUnitInfo); return new UnitInfo(sc2ApiUnitInfo); } private UnitInfo(Ui.UnitInfo sc2ApiUnitInfo); static UnitInfo from(Ui.UnitInfo sc2ApiUnitInfo); UnitType getUnitType(); Optional<Alliance> get...
@Test void throwsExceptionWhenSc2ApiPassengerUnitIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> PassengerUnit.from(nothing())) .withMessage("sc2api passenger unit is required"); }
public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
@Test void convertsAllFieldsFromSc2ApiPassengerUnit() { assertThatAllFieldsAreConverted(PassengerUnit.from(sc2ApiPassengerUnit())); }
public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
@Test void throwsExceptionWhenTagIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> PassengerUnit.from( without(() -> sc2ApiPassengerUnit().toBuilder(), Raw.PassengerUnit.Builder::clearTag).build())) .withMessage("tag is required"); }
public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
@Test void throwsExceptionWhenHealthIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> PassengerUnit.from( without(() -> sc2ApiPassengerUnit().toBuilder(), Raw.PassengerUnit.Builder::clearHealth) .build())) .withMessage("health is required"); }
public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
@Test void throwsExceptionWhenHealthMaxIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> PassengerUnit.from( without(() -> sc2ApiPassengerUnit().toBuilder(), Raw.PassengerUnit.Builder::clearHealthMax) .build())) .withMessage("health max is required"); }
public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
@Test void throwsExceptionWhenTypeIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> PassengerUnit.from( without(() -> sc2ApiPassengerUnit().toBuilder(), Raw.PassengerUnit.Builder::clearUnitType) .build())) .withMessage("unit type is required"); }
public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); }
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
PassengerUnit implements Serializable { public static PassengerUnit from(Raw.PassengerUnit sc2ApiPassengerUnit) { require("sc2api passenger unit", sc2ApiPassengerUnit); return new PassengerUnit(sc2ApiPassengerUnit); } private PassengerUnit(Raw.PassengerUnit sc2ApiPassengerUnit); static PassengerUnit from(Raw.Passenger...
@Test void throwsExceptionWhenLineIsNotSet() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> fullAccessTo(line()).withColor(SAMPLE_COLOR).build()) .withMessage("line is required"); }
public static DebugLineSyntax line() { return new Builder(); }
DebugLine implements Sc2ApiSerializable<Debug.DebugLine> { public static DebugLineSyntax line() { return new Builder(); } }
DebugLine implements Sc2ApiSerializable<Debug.DebugLine> { public static DebugLineSyntax line() { return new Builder(); } private DebugLine(Builder builder); }
DebugLine implements Sc2ApiSerializable<Debug.DebugLine> { public static DebugLineSyntax line() { return new Builder(); } private DebugLine(Builder builder); static DebugLineSyntax line(); @Override Debug.DebugLine toSc2Api(); Color getColor(); Line getLine(); @Override boolean equals(Object o); @Override int hashCode...
DebugLine implements Sc2ApiSerializable<Debug.DebugLine> { public static DebugLineSyntax line() { return new Builder(); } private DebugLine(Builder builder); static DebugLineSyntax line(); @Override Debug.DebugLine toSc2Api(); Color getColor(); Line getLine(); @Override boolean equals(Object o); @Override int hashCode...
@Test void throwsExceptionWhenSc2ApiUnitIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Unit.from(nothing())) .withMessage("sc2api unit is required"); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void convertsAllFieldsFromSc2ApiUnit() { assertThatAllFieldsAreConverted(Unit.from(sc2ApiUnit())); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void throwsExceptionWhenDisplayTypeIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Unit.from( without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearDisplayType).build())) .withMessage("display type is required"); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void throwsExceptionWhenAllianceIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Unit.from( without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearAlliance).build())) .withMessage("alliance is required"); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void throwsExceptionWhenTagIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Unit.from( without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearTag).build())) .withMessage("tag is required"); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void throwsExceptionWhenTypeIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Unit.from( without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearUnitType).build())) .withMessage("unit type is required"); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void throwsExceptionWhenPositionIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Unit.from( without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearPos).build())) .withMessage("position is required"); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void hasDefaultValueForOnScreenFieldIfNotProvided() { Unit unit = Unit.from(without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearIsOnScreen).build()); assertThat(unit.isOnScreen()).as("unit: default on screen").isFalse(); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void hasDefaultValueForBlipFieldIfNotProvided() { Unit unit = Unit.from(without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearIsBlip).build()); assertThat(unit.isBlip()).as("unit: default blip").isFalse(); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void hasEmptyListOfOrdersWhenNotProvided() { assertThat(Unit.from( without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearOrders).build() ).getOrders()).as("unit: empty orders list").isEmpty(); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void throwsExceptionWhenColorIsNotSet() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> fullAccessTo(text().of(DEBUG_TEXT)).withColor(nothing()).build()) .withMessage("color is required"); }
public static DebugTextSyntax text() { return new Builder(); }
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } }
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } private DebugText(Builder builder); }
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } private DebugText(Builder builder); static DebugTextSyntax text(); @Override Debug.DebugText toSc2Api(); Color getColor(); Optional<Integer> getSize(); String getText(); Optional<Point> getPoint3d(...
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } private DebugText(Builder builder); static DebugTextSyntax text(); @Override Debug.DebugText toSc2Api(); Color getColor(); Optional<Integer> getSize(); String getText(); Optional<Point> getPoint3d(...
@Test void hasEmptyListOfPassengersWhenNotProvided() { assertThat(Unit.from( without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearPassengers).build() ).getPassengers()).as("unit: empty passengers list").isEmpty(); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void hasEmptySetOfBuffsWhenNotProvided() { assertThat(Unit.from( without(() -> sc2ApiUnit().toBuilder(), Raw.Unit.Builder::clearBuffIds).build() ).getBuffs()).as("unit: empty buff set").isEmpty(); }
public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); }
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
Unit extends UnitSnapshot { public static Unit from(Raw.Unit sc2ApiUnit) { require("sc2api unit", sc2ApiUnit); return new Unit(sc2ApiUnit); } private Unit(Raw.Unit sc2ApiUnit); private Unit(Unit original, UnaryOperator<Ability> generalize); static Unit from(Raw.Unit sc2ApiUnit); Tag getTag(); UnitType getType(); int ...
@Test void throwsExceptionWhenSc2ApiUnitTagIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Tag.from(nothing())) .withMessage("sc2api unit tag is required"); }
public static Tag from(Long sc2apiTag) { require("sc2api unit tag", sc2apiTag); return new Tag(sc2apiTag); }
Tag implements Sc2ApiSerializable<Long> { public static Tag from(Long sc2apiTag) { require("sc2api unit tag", sc2apiTag); return new Tag(sc2apiTag); } }
Tag implements Sc2ApiSerializable<Long> { public static Tag from(Long sc2apiTag) { require("sc2api unit tag", sc2apiTag); return new Tag(sc2apiTag); } private Tag(Long sc2apiTag); }
Tag implements Sc2ApiSerializable<Long> { public static Tag from(Long sc2apiTag) { require("sc2api unit tag", sc2apiTag); return new Tag(sc2apiTag); } private Tag(Long sc2apiTag); static Tag from(Long sc2apiTag); static Tag of(Long sc2apiTag); static Tag tag(Long sc2apiTag); @Override Long toSc2Api(); @JsonValue Long ...
Tag implements Sc2ApiSerializable<Long> { public static Tag from(Long sc2apiTag) { require("sc2api unit tag", sc2apiTag); return new Tag(sc2apiTag); } private Tag(Long sc2apiTag); static Tag from(Long sc2apiTag); static Tag of(Long sc2apiTag); static Tag tag(Long sc2apiTag); @Override Long toSc2Api(); @JsonValue Long ...
@Test void throwsExceptionWhenSc2ApiUnitOrderIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> UnitOrder.from(nothing())) .withMessage("sc2api unit order is required"); }
public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); }
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } }
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } private UnitOrder(Raw.UnitOrder sc2ApiUnitOrder); private UnitOrder(Ability ability, Tag targetedUn...
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } private UnitOrder(Raw.UnitOrder sc2ApiUnitOrder); private UnitOrder(Ability ability, Tag targetedUn...
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } private UnitOrder(Raw.UnitOrder sc2ApiUnitOrder); private UnitOrder(Ability ability, Tag targetedUn...
@Test void convertsAllFieldsFromSc2ApiUnitOrder() { assertThatAllFieldsAreConverted(UnitOrder.from(sc2ApiUnitOrder())); assertThatWorldSpacePositionInConvertedIfProvided( UnitOrder.from(sc2ApiUnitOrderWithTargetedWorldSpacePosition())); }
public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); }
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } }
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } private UnitOrder(Raw.UnitOrder sc2ApiUnitOrder); private UnitOrder(Ability ability, Tag targetedUn...
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } private UnitOrder(Raw.UnitOrder sc2ApiUnitOrder); private UnitOrder(Ability ability, Tag targetedUn...
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } private UnitOrder(Raw.UnitOrder sc2ApiUnitOrder); private UnitOrder(Ability ability, Tag targetedUn...
@Test void throwsExceptionWhenAbilityIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> UnitOrder.from( without(() -> sc2ApiUnitOrder().toBuilder(), Raw.UnitOrder.Builder::clearAbilityId).build())) .withMessage("ability is required"); }
public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); }
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } }
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } private UnitOrder(Raw.UnitOrder sc2ApiUnitOrder); private UnitOrder(Ability ability, Tag targetedUn...
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } private UnitOrder(Raw.UnitOrder sc2ApiUnitOrder); private UnitOrder(Ability ability, Tag targetedUn...
UnitOrder implements Serializable, GeneralizableAbility<UnitOrder> { public static UnitOrder from(Raw.UnitOrder sc2ApiUnitOrder) { require("sc2api unit order", sc2ApiUnitOrder); return new UnitOrder(sc2ApiUnitOrder); } private UnitOrder(Raw.UnitOrder sc2ApiUnitOrder); private UnitOrder(Ability ability, Tag targetedUn...
@Test void throwsExceptionWhenSc2ApiScoreIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Score.from(nothing())) .withMessage("sc2api score is required"); }
public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
@Test void convertsAllFieldsFromSc2ApiScore() { assertThatAllFieldsAreConverted(Score.from(sc2ApiScore())); }
public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
@Test void throwsExceptionWhenTypeIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Score.from(without( () -> sc2ApiScore().toBuilder(), ScoreOuterClass.Score.Builder::clearScoreType).build())) .withMessage("type is required"); }
public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
@Test void throwsExceptionWhenScoreIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Score.from(without( () -> sc2ApiScore().toBuilder(), ScoreOuterClass.Score.Builder::clearScore).build())) .withMessage("score is required"); }
public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
@Test void throwsExceptionWhenTextIsNotSet() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> fullAccessTo(text()).withColor(SAMPLE_COLOR).build()) .withMessage("text is required"); }
public static DebugTextSyntax text() { return new Builder(); }
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } }
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } private DebugText(Builder builder); }
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } private DebugText(Builder builder); static DebugTextSyntax text(); @Override Debug.DebugText toSc2Api(); Color getColor(); Optional<Integer> getSize(); String getText(); Optional<Point> getPoint3d(...
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } private DebugText(Builder builder); static DebugTextSyntax text(); @Override Debug.DebugText toSc2Api(); Color getColor(); Optional<Integer> getSize(); String getText(); Optional<Point> getPoint3d(...
@Test void throwsExceptionWhenDetailsAreNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Score.from(without( () -> sc2ApiScore().toBuilder(), ScoreOuterClass.Score.Builder::clearScoreDetails).build())) .withMessage("details is required"); }
public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
@Test void throwsExceptionWhenSc2ApiScoreTypeIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> Score.Type.from(nothing())) .withMessage("sc2api score type is required"); }
public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); }
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
Score implements Serializable { public static Score from(ScoreOuterClass.Score sc2ApiScore) { require("sc2api score", sc2ApiScore); return new Score(sc2ApiScore); } private Score(ScoreOuterClass.Score sc2ApiScore); static Score from(ScoreOuterClass.Score sc2ApiScore); Type getType(); int getScore(); ScoreDetails getDe...
@Test void throwsExceptionWhenSc2ApiVitalScoreDetailsIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> VitalScoreDetails.from(nothing())) .withMessage("sc2api vital score details is required"); }
public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
@Test void convertsAllFieldsFromSc2ApiVitalScoreDetails() { assertThatAllFieldsAreConverted(VitalScoreDetails.from(sc2ApiVitalScoreDetails())); }
public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
@Test void throwsExceptionWhenLifeIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> VitalScoreDetails.from(without( () -> sc2ApiVitalScoreDetails().toBuilder(), ScoreOuterClass.VitalScoreDetails.Builder::clearLife).build())) .withMessage("life is required"); }
public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
@Test void throwsExceptionWhenShieldsIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> VitalScoreDetails.from(without( () -> sc2ApiVitalScoreDetails().toBuilder(), ScoreOuterClass.VitalScoreDetails.Builder::clearShields).build())) .withMessage("shields is required"); }
public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
@Test void throwsExceptionWhenEnergyIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> VitalScoreDetails.from(without( () -> sc2ApiVitalScoreDetails().toBuilder(), ScoreOuterClass.VitalScoreDetails.Builder::clearEnergy).build())) .withMessage("energy is required"); }
public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } }
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
VitalScoreDetails implements Serializable { public static VitalScoreDetails from(ScoreOuterClass.VitalScoreDetails sc2ApiVitalScoreDetails) { require("sc2api vital score details", sc2ApiVitalScoreDetails); return new VitalScoreDetails(sc2ApiVitalScoreDetails); } private VitalScoreDetails(ScoreOuterClass.VitalScoreDeta...
@Test void throwsExceptionWhenSc2ApiCategoryScoreDetailsIsNull() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> CategoryScoreDetails.from(nothing())) .withMessage("sc2api category score details is required"); }
public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
@Test void convertsAllFieldsFromSc2ApiCategoryScoreDetails() { assertThatAllFieldsAreConverted(CategoryScoreDetails.from(sc2ApiCategoryScoreDetails())); }
public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
@Test void throwsExceptionWhenNoneIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> CategoryScoreDetails.from(without( () -> sc2ApiCategoryScoreDetails().toBuilder(), ScoreOuterClass.CategoryScoreDetails.Builder::clearNone).build())) .withMessage("none is required"); }
public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
@Test void throwsExceptionWhenPointIsNotInValidRange() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> text().of(DEBUG_TEXT).on(Point.of(-1, 1)).build()) .withMessage("virtualized point 2d [x] has value -1.0 and is lower than 0.0"); assertThatExceptionOfType(IllegalArgumentException.class)...
public static DebugTextSyntax text() { return new Builder(); }
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } }
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } private DebugText(Builder builder); }
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } private DebugText(Builder builder); static DebugTextSyntax text(); @Override Debug.DebugText toSc2Api(); Color getColor(); Optional<Integer> getSize(); String getText(); Optional<Point> getPoint3d(...
DebugText implements Sc2ApiSerializable<Debug.DebugText> { public static DebugTextSyntax text() { return new Builder(); } private DebugText(Builder builder); static DebugTextSyntax text(); @Override Debug.DebugText toSc2Api(); Color getColor(); Optional<Integer> getSize(); String getText(); Optional<Point> getPoint3d(...
@Test void throwsExceptionWhenArmyIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> CategoryScoreDetails.from(without( () -> sc2ApiCategoryScoreDetails().toBuilder(), ScoreOuterClass.CategoryScoreDetails.Builder::clearArmy).build())) .withMessage("army is required"); }
public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
@Test void throwsExceptionWhenEconomyIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> CategoryScoreDetails.from(without( () -> sc2ApiCategoryScoreDetails().toBuilder(), ScoreOuterClass.CategoryScoreDetails.Builder::clearEconomy).build())) .withMessage("economy is required");...
public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
@Test void throwsExceptionWhenTechnologyIsNotProvided() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> CategoryScoreDetails.from(without( () -> sc2ApiCategoryScoreDetails().toBuilder(), ScoreOuterClass.CategoryScoreDetails.Builder::clearTechnology).build())) .withMessage("technology is re...
public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } }
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...
CategoryScoreDetails implements Serializable { public static CategoryScoreDetails from(ScoreOuterClass.CategoryScoreDetails sc2ApiCategoryScoreDetails) { require("sc2api category score details", sc2ApiCategoryScoreDetails); return new CategoryScoreDetails(sc2ApiCategoryScoreDetails); } private CategoryScoreDetails(Sco...