@Test public void testResponseBodyBuilder() { ResponseBodyBuilder responseBodyBuilder = new ResponseBodyBuilder("55L", "Message"); responseBodyBuilder.put("Key1", "Value"); responseBodyBuilder.put("Key2", 22); responseBodyBuilder.put("Key3", false); assertEquals("{\"id\":\"55L\",\"message\":\"Message\",\"Key1\":\"Value\",\"Key2\":22,\"Key3\":false}", responseBodyBuilder.build()); }
public ResponseBodyBuilder() { map = new JsonObject(); }
ResponseBodyBuilder { public ResponseBodyBuilder() { map = new JsonObject(); } }
ResponseBodyBuilder { public ResponseBodyBuilder() { map = new JsonObject(); } ResponseBodyBuilder();  ResponseBodyBuilder(String id, String message);  ResponseBodyBuilder(String message); }
ResponseBodyBuilder { public ResponseBodyBuilder() { map = new JsonObject(); } ResponseBodyBuilder();  ResponseBodyBuilder(String id, String message);  ResponseBodyBuilder(String message); ResponseBodyBuilder put(String key, Boolean value); ResponseBodyBuilder put(String key, Number value); ResponseBodyBuilder put(String key, String value); ResponseBodyBuilder putErrors(List<AlertFieldStatus> errors); String build(); @Override String toString(); }
ResponseBodyBuilder { public ResponseBodyBuilder() { map = new JsonObject(); } ResponseBodyBuilder();  ResponseBodyBuilder(String id, String message);  ResponseBodyBuilder(String message); ResponseBodyBuilder put(String key, Boolean value); ResponseBodyBuilder put(String key, Number value); ResponseBodyBuilder put(String key, String value); ResponseBodyBuilder putErrors(List<AlertFieldStatus> errors); String build(); @Override String toString();  }