@Test public void testRealCodeRequest() { Request request = new Request(Code.POST); request.setToken(token); request.setMID(mid); request.setType(type); request.setPayload(payload); request.setSourceContext(sourceContext); request.setDestinationContext(destinationContext); OptionSet options = new OptionSet(); options.setAccept(accept); request.setOptions(options); Code realCode = Code.PUT; Request realed = OptionJuggle.setRealCodeRequest(request, realCode); OptionSet realOptions = realed.getOptions(); assertEquals(realCode, realed.getCode()); assertEquals(token, realed.getToken()); assertEquals(mid, realed.getMID()); assertEquals(type, realed.getType()); assertEquals(payload, realed.getPayload()); assertEquals(sourceContext, realed.getSourceContext()); assertEquals(destinationContext, realed.getDestinationContext()); assertEquals(accept, realOptions.getAccept()); }
public static Request setRealCodeRequest(Request request, Code realCode) { return requestWithNewCode(request, realCode); }
OptionJuggle { public static Request setRealCodeRequest(Request request, Code realCode) { return requestWithNewCode(request, realCode); } }
OptionJuggle { public static Request setRealCodeRequest(Request request, Code realCode) { return requestWithNewCode(request, realCode); }  }
OptionJuggle { public static Request setRealCodeRequest(Request request, Code realCode) { return requestWithNewCode(request, realCode); }  static OptionSet prepareUoptions(OptionSet options); static OptionSet prepareEoptions(OptionSet options); static OptionSet discardEOptions(OptionSet optionSet); static Request setFakeCodeRequest(Request request); static Request setRealCodeRequest(Request request, Code realCode); static Response setFakeCodeResponse(Response response); static Response setRealCodeResponse(Response response, ResponseCode realCode); static OptionSet merge(OptionSet eOptions, OptionSet uOptions); }
OptionJuggle { public static Request setRealCodeRequest(Request request, Code realCode) { return requestWithNewCode(request, realCode); }  static OptionSet prepareUoptions(OptionSet options); static OptionSet prepareEoptions(OptionSet options); static OptionSet discardEOptions(OptionSet optionSet); static Request setFakeCodeRequest(Request request); static Request setRealCodeRequest(Request request, Code realCode); static Response setFakeCodeResponse(Response response); static Response setRealCodeResponse(Response response, ResponseCode realCode); static OptionSet merge(OptionSet eOptions, OptionSet uOptions);  }