@Test void copyReturnsNewInstanceWithSameContent() { final ArrayBodyContent copy = underTest.copy(); assertThat(copy).isNotSameAs(underTest); assertThat(copy).isEqualTo(underTest); }
@Override public ArrayBodyContent copy() { return new ArrayBodyContent(new ArrayList<>(content)); }
ArrayBodyContent extends BodyContent<List<Object>> { @Override public ArrayBodyContent copy() { return new ArrayBodyContent(new ArrayList<>(content)); } }
ArrayBodyContent extends BodyContent<List<Object>> { @Override public ArrayBodyContent copy() { return new ArrayBodyContent(new ArrayList<>(content)); } ArrayBodyContent(List<?> content); }
ArrayBodyContent extends BodyContent<List<Object>> { @Override public ArrayBodyContent copy() { return new ArrayBodyContent(new ArrayList<>(content)); } ArrayBodyContent(List<?> content); @Override boolean matches(Body<?> other); @Override ArrayBodyContent copy(); @Override List<Object> getContent(); @Override BodyContentType getType(); static ArrayBodyContent arrayBody(List<?> content); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
ArrayBodyContent extends BodyContent<List<Object>> { @Override public ArrayBodyContent copy() { return new ArrayBodyContent(new ArrayList<>(content)); } ArrayBodyContent(List<?> content); @Override boolean matches(Body<?> other); @Override ArrayBodyContent copy(); @Override List<Object> getContent(); @Override BodyContentType getType(); static ArrayBodyContent arrayBody(List<?> content); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }