RpcResponse implements Serializable { public String[] toLines() { if (lines == null) lines = response.split(LINE_DELIMITER); return lines; } RpcResponse(String response);  RpcResponse(String securitySegment, String applicationSegment, String response); String getRequestUri(); void setRequestUri(String uri); String getApplicationSegment(); String getSecuritySegment(); long getElapsedMillis(); long getElapsedMillis(RpcPhase phase); void setElapsedMillis(RpcPhase phase, long elapsedMillis); String getVistaId(); void setVistaId(String vistaId); String getDUZ(); void setDUZ(String DUZ); String getDivision(); void setDivision(String division); String getDivisionName(); void setDivisionName(String divisionName); @JsonProperty("body") String toString(); int length(); String[] toLines(); List<String> toLinesList(); static final String LINE_DELIMITER; }
@Test public void toLines() { RpcResponse r = new RpcResponse("sec", "app", "foo\r\nbar\r\nbaz\r\n"); assertArrayEquals(new String[]{"foo", "bar", "baz"}, r.toLines()); }