@Test public void testIsAllSuccessEmpty() { MultiStatusResponse multiResponse = new MultiStatusResponse(Collections.emptyMap()); assertThat(multiResponse.isAllSuccess()).isTrue(); }
public boolean isAllSuccess() { return responses.values().stream() .allMatch(HttpUtils::isSuccessStatus); }
MultiStatusResponse { public boolean isAllSuccess() { return responses.values().stream() .allMatch(HttpUtils::isSuccessStatus); } }
MultiStatusResponse { public boolean isAllSuccess() { return responses.values().stream() .allMatch(HttpUtils::isSuccessStatus); } MultiStatusResponse(Map<String, Integer> responses); }
MultiStatusResponse { public boolean isAllSuccess() { return responses.values().stream() .allMatch(HttpUtils::isSuccessStatus); } 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 boolean isAllSuccess() { return responses.values().stream() .allMatch(HttpUtils::isSuccessStatus); } 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();  }