aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/DomContentApplicationBuilderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/test/java/com/yahoo/vespa/model/content/cluster/DomContentApplicationBuilderTest.java')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/content/cluster/DomContentApplicationBuilderTest.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/DomContentApplicationBuilderTest.java b/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/DomContentApplicationBuilderTest.java
index 11aeea5f90d..d73b7f78391 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/DomContentApplicationBuilderTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/DomContentApplicationBuilderTest.java
@@ -3,14 +3,14 @@ package com.yahoo.vespa.model.content.cluster;
import com.yahoo.vespa.model.content.ContentSearch;
import com.yahoo.vespa.model.builder.xml.dom.ModelElement;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.ByteArrayInputStream;
import java.nio.charset.StandardCharsets;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
/**
* @author Simon Thoresen Hult
@@ -18,7 +18,7 @@ import static org.junit.Assert.assertNull;
public class DomContentApplicationBuilderTest {
@Test
- public void requireThatDefaultsAreNull() throws Exception {
+ void requireThatDefaultsAreNull() throws Exception {
ContentSearch search = newContentSearch(
"<content/>");
assertNull(search.getVisibilityDelay());
@@ -26,24 +26,24 @@ public class DomContentApplicationBuilderTest {
}
@Test
- public void requireThatEmptySearchIsSafe() throws Exception {
+ void requireThatEmptySearchIsSafe() throws Exception {
ContentSearch search = newContentSearch(
"<content>" +
- " <search/>" +
- "</content>");
+ " <search/>" +
+ "</content>");
assertNull(search.getVisibilityDelay());
assertNull(search.getQueryTimeout());
}
@Test
- public void requireThatContentSearchCanBeBuilt() throws Exception {
+ void requireThatContentSearchCanBeBuilt() throws Exception {
ContentSearch search = newContentSearch(
"<content>" +
- " <search>" +
- " <query-timeout>1.1</query-timeout>" +
- " <visibility-delay>2.3</visibility-delay>" +
- " </search>" +
- "</content>");
+ " <search>" +
+ " <query-timeout>1.1</query-timeout>" +
+ " <visibility-delay>2.3</visibility-delay>" +
+ " </search>" +
+ "</content>");
assertEquals(1.1, search.getQueryTimeout(), 1E-6);
assertEquals(2.3, search.getVisibilityDelay(), 1E-6);
}