@Test public void testRequestStop() { assertEquals("invalid message", "*17*2*0##", requestStop("0").getValue()); assertEquals("invalid message", "*17*2*0##", requestStop("0", Scenario.Version.MH200N).getValue()); assertEquals("invalid message", "*17*2*0##", requestStop("0", Scenario.Version.MH202).getValue()); assertEquals("invalid message", "*17*2*9999##", requestStop("9999").getValue()); assertEquals("invalid message", "*17*2*300##", requestStop("300", Scenario.Version.MH200N).getValue()); assertEquals("invalid message", "*17*2*9999##", requestStop("9999", Scenario.Version.MH202).getValue()); }
public static Scenario requestStop(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Scenario(format(FORMAT_REQUEST, WHO, STOP, where)); }
Scenario extends BaseOpenMessage { public static Scenario requestStop(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Scenario(format(FORMAT_REQUEST, WHO, STOP, where)); } }
Scenario extends BaseOpenMessage { public static Scenario requestStop(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Scenario(format(FORMAT_REQUEST, WHO, STOP, where)); } private  Scenario(String value); }
Scenario extends BaseOpenMessage { public static Scenario requestStop(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Scenario(format(FORMAT_REQUEST, WHO, STOP, where)); } private  Scenario(String value); static Scenario requestStart(String where); static Scenario requestStart(String where, Version version); static Scenario requestStop(String where); static Scenario requestStop(String where, Version version); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static Scenario requestStatus(String where); static Scenario requestStatus(String where, Version version); static Func1<OpenSession, OpenSession> handleStatus(
            Action0 startStatus, Action0 stopStatus, Action0 enableStatus, Action0 disableStatus); }
Scenario extends BaseOpenMessage { public static Scenario requestStop(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Scenario(format(FORMAT_REQUEST, WHO, STOP, where)); } private  Scenario(String value); static Scenario requestStart(String where); static Scenario requestStart(String where, Version version); static Scenario requestStop(String where); static Scenario requestStop(String where, Version version); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static Scenario requestStatus(String where); static Scenario requestStatus(String where, Version version); static Func1<OpenSession, OpenSession> handleStatus(
            Action0 startStatus, Action0 stopStatus, Action0 enableStatus, Action0 disableStatus);  }