Skip to content

Commit

Permalink
Add Lombok's EHC/ToString to LogConfig (#1374)
Browse files Browse the repository at this point in the history
Fixes #1373
  • Loading branch information
silme committed May 22, 2020
1 parent e4eb048 commit 3674117
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.annotation.CheckForNull;
import java.io.Serializable;
Expand All @@ -18,6 +20,8 @@
* docker will ignore them. In most cases setting the config option to null will suffice. Consult the docker remote API for a more detailed
* and up-to-date explanation of the available types and their options.
*/
@EqualsAndHashCode
@ToString
public class LogConfig implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.github.dockerjava.api.model;

import org.junit.Test;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;

public class HostConfigTest {

@Test
public void testNewObjectsEqual() throws Exception {
assertThat(HostConfig.newHostConfig(),
equalTo(HostConfig.newHostConfig()));
}
}

0 comments on commit 3674117

Please sign in to comment.