diff options
Diffstat (limited to 'config-model/src/test/java/com/yahoo/config/model/provision/HostSpecTest.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/config/model/provision/HostSpecTest.java | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/config-model/src/test/java/com/yahoo/config/model/provision/HostSpecTest.java b/config-model/src/test/java/com/yahoo/config/model/provision/HostSpecTest.java index 810e2c643f3..e678aaa673a 100644 --- a/config-model/src/test/java/com/yahoo/config/model/provision/HostSpecTest.java +++ b/config-model/src/test/java/com/yahoo/config/model/provision/HostSpecTest.java @@ -2,15 +2,15 @@ package com.yahoo.config.model.provision; import com.yahoo.config.provision.HostSpec; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Optional; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotEquals; /** * @author Ulf Lilleengen @@ -18,31 +18,31 @@ import static org.junit.Assert.assertTrue; public class HostSpecTest { @Test - public void testEquals() { + void testEquals() { HostSpec h1 = new HostSpec("foo", List.of(), Optional.empty()); HostSpec h2 = new HostSpec("foo", List.of(), Optional.empty()); HostSpec h3 = new HostSpec("foo", List.of("my", "alias"), Optional.empty()); HostSpec h4 = new HostSpec("bar", List.of(), Optional.empty()); - assertTrue(h1.equals(h1)); - assertTrue(h1.equals(h2)); - assertTrue(h1.equals(h3)); - assertFalse(h1.equals(h4)); - - assertTrue(h2.equals(h1)); - assertTrue(h2.equals(h2)); - assertTrue(h2.equals(h3)); - assertFalse(h2.equals(h4)); - - assertTrue(h3.equals(h1)); - assertTrue(h3.equals(h2)); - assertTrue(h3.equals(h3)); - assertFalse(h3.equals(h4)); - - assertFalse(h4.equals(h1)); - assertFalse(h4.equals(h2)); - assertFalse(h4.equals(h3)); - assertTrue(h4.equals(h4)); + assertEquals(h1, h1); + assertEquals(h1, h2); + assertEquals(h1, h3); + assertNotEquals(h1, h4); + + assertEquals(h2, h1); + assertEquals(h2, h2); + assertEquals(h2, h3); + assertNotEquals(h2, h4); + + assertEquals(h3, h1); + assertEquals(h3, h2); + assertEquals(h3, h3); + assertNotEquals(h3, h4); + + assertNotEquals(h4, h1); + assertNotEquals(h4, h2); + assertNotEquals(h4, h3); + assertEquals(h4, h4); } } |