Skip to content

Commit d8f39ff

Browse files
committed
Fix test
1 parent 99cf283 commit d8f39ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloudTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.junit.Assert.assertEquals;
44
import static org.junit.Assert.assertNull;
5+
import static org.junit.Assert.assertTrue;
56
import static org.junit.Assert.fail;
67

78
import java.util.ArrayList;
@@ -24,6 +25,7 @@
2425
import org.apache.commons.beanutils.PropertyUtils;
2526
import org.apache.commons.lang3.RandomStringUtils;
2627
import org.apache.commons.lang3.RandomUtils;
28+
import org.apache.commons.lang3.builder.EqualsBuilder;
2729
import org.csanchez.jenkins.plugins.kubernetes.pod.retention.Always;
2830
import org.csanchez.jenkins.plugins.kubernetes.pod.retention.PodRetention;
2931
import org.csanchez.jenkins.plugins.kubernetes.volumes.EmptyDirVolume;
@@ -244,7 +246,7 @@ public void copyConstructor() throws Exception {
244246

245247
KubernetesCloud copy = new KubernetesCloud("copy", cloud);
246248
assertEquals("copy", copy.name);
247-
assertEquals("Expected cloud from copy constructor to be equal to the source except for name", cloud, copy);
249+
assertTrue("Expected cloud from copy constructor to be equal to the source except for name", EqualsBuilder.reflectionEquals(cloud, copy, true, KubernetesCloud.class, "name"));
248250
}
249251

250252
@Test

0 commit comments

Comments
 (0)