@Test public void testRequestTurnOnInvalid_AmplifierP2P() { assertThat(captureThrowable(() -> requestTurnOn("1", Type.AMPLIFIER_P2P, Source.STEREO_CHANNEL))) .isInstanceOf(IllegalArgumentException.class) .hasMessage("invalid where|type"); assertThat(captureThrowable(() -> requestTurnOn("9", Type.AMPLIFIER_P2P, Source.STEREO_CHANNEL))) .isInstanceOf(IllegalArgumentException.class) .hasMessage("invalid where|type"); assertThat(captureThrowable(() -> requestTurnOn("100", Type.AMPLIFIER_P2P, Source.STEREO_CHANNEL))) .isInstanceOf(IllegalArgumentException.class) .hasMessage("invalid where|type"); assertThat(captureThrowable(() -> requestTurnOn("001", Type.AMPLIFIER_P2P, Source.STEREO_CHANNEL))) .isInstanceOf(IllegalArgumentException.class) .hasMessage("invalid where|type"); }
public static SoundSystem requestTurnOn(String where, Type type, Source source) { return buildRequest(where, type, source, ON_SOURCE_BASE_BAND, ON_SOURCE_STEREO_CHANNEL); }
SoundSystem extends BaseOpenMessage { public static SoundSystem requestTurnOn(String where, Type type, Source source) { return buildRequest(where, type, source, ON_SOURCE_BASE_BAND, ON_SOURCE_STEREO_CHANNEL); } }
SoundSystem extends BaseOpenMessage { public static SoundSystem requestTurnOn(String where, Type type, Source source) { return buildRequest(where, type, source, ON_SOURCE_BASE_BAND, ON_SOURCE_STEREO_CHANNEL); } protected  SoundSystem(String value); }
SoundSystem extends BaseOpenMessage { public static SoundSystem requestTurnOn(String where, Type type, Source source) { return buildRequest(where, type, source, ON_SOURCE_BASE_BAND, ON_SOURCE_STEREO_CHANNEL); } protected  SoundSystem(String value); static SoundSystem requestTurnOn(String where, Type type, Source source); static SoundSystem requestTurnOff(String where, Type type, Source source); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static SoundSystem requestStatus(String where, Type type); static Func1<OpenSession, OpenSession> handleStatus(Action0 onStatus, Action0 offStatus); static SoundSystem requestVolumeUp(String where, Type type); static SoundSystem requestVolumeDown(String where, Type type); static SoundSystem requestStationUp(String where, Type type); static SoundSystem requestStationDown(String where, Type type); }
SoundSystem extends BaseOpenMessage { public static SoundSystem requestTurnOn(String where, Type type, Source source) { return buildRequest(where, type, source, ON_SOURCE_BASE_BAND, ON_SOURCE_STEREO_CHANNEL); } protected  SoundSystem(String value); static SoundSystem requestTurnOn(String where, Type type, Source source); static SoundSystem requestTurnOff(String where, Type type, Source source); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static SoundSystem requestStatus(String where, Type type); static Func1<OpenSession, OpenSession> handleStatus(Action0 onStatus, Action0 offStatus); static SoundSystem requestVolumeUp(String where, Type type); static SoundSystem requestVolumeDown(String where, Type type); static SoundSystem requestStationUp(String where, Type type); static SoundSystem requestStationDown(String where, Type type);  }