File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
docker-java-api/src/main/java/com/github/dockerjava/api/model
docker-java/src/test/java/com/github/dockerjava/api/model Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 44import com .fasterxml .jackson .annotation .JsonIgnore ;
55import com .fasterxml .jackson .annotation .JsonProperty ;
66import com .fasterxml .jackson .annotation .JsonValue ;
7+ import lombok .EqualsAndHashCode ;
8+ import lombok .ToString ;
79
810import javax .annotation .CheckForNull ;
911import java .io .Serializable ;
1820 * docker will ignore them. In most cases setting the config option to null will suffice. Consult the docker remote API for a more detailed
1921 * and up-to-date explanation of the available types and their options.
2022 */
23+ @ EqualsAndHashCode
24+ @ ToString
2125public class LogConfig implements Serializable {
2226 private static final long serialVersionUID = 1L ;
2327
Original file line number Diff line number Diff line change 1+ package com .github .dockerjava .api .model ;
2+
3+ import org .junit .Test ;
4+
5+ import static org .hamcrest .MatcherAssert .assertThat ;
6+ import static org .hamcrest .Matchers .equalTo ;
7+
8+ public class HostConfigTest {
9+
10+ @ Test
11+ public void testNewObjectsEqual () throws Exception {
12+ assertThat (HostConfig .newHostConfig (),
13+ equalTo (HostConfig .newHostConfig ()));
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments