@Test public void testGetResponses() throws IOException { MultiStatusResponse response = fromJson(FILE_FAILURE_RESPONSE); Map<String, Integer> responses = response.getResponses(); assertThat(responses).hasSize(3); assertThat(responses.get("res-err-1")).isEqualTo(400); assertThat(responses.get("res-success")).isEqualTo(200); }
public Map<String, Integer> getResponses() { return responses; }
MultiStatusResponse { public Map<String, Integer> getResponses() { return responses; } }
MultiStatusResponse { public Map<String, Integer> getResponses() { return responses; } MultiStatusResponse(Map<String, Integer> responses); }
MultiStatusResponse { public Map<String, Integer> getResponses() { return responses; } MultiStatusResponse(Map<String, Integer> responses); static MultiStatusResponse fromJson(ObjectMapper mapper, InputStream stream); Map<String, Integer> getResponses(); int responseCount(); boolean isAllSuccess(); boolean hasResourceId(String resId); int getStatus(String resId); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
MultiStatusResponse { public Map<String, Integer> getResponses() { return responses; } MultiStatusResponse(Map<String, Integer> responses); static MultiStatusResponse fromJson(ObjectMapper mapper, InputStream stream); Map<String, Integer> getResponses(); int responseCount(); boolean isAllSuccess(); boolean hasResourceId(String resId); int getStatus(String resId); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }