aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/ClusterTest.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-02-01 00:35:49 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2019-02-01 00:35:49 +0100
commitaee4a604fb2f53acbf2790e75310023c0bf70492 (patch)
tree2090f6ba2d7e2079ab5c83441d97038b4b54f883 /config-model/src/test/java/com/yahoo/vespa/model/content/cluster/ClusterTest.java
parent8b42c48c54c4ba7dc306f46db698bf3cf6deecc2 (diff)
Add a flag to control default dispatch policy per zone.
Diffstat (limited to 'config-model/src/test/java/com/yahoo/vespa/model/content/cluster/ClusterTest.java')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/content/cluster/ClusterTest.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/ClusterTest.java b/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/ClusterTest.java
index 1a2eb93face..44986bc0b69 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/ClusterTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/content/cluster/ClusterTest.java
@@ -28,7 +28,7 @@ import static org.junit.Assert.assertTrue;
public class ClusterTest {
@Test
- public void requireThatContentSearchIsApplied() throws ParseException {
+ public void requireThatContentSearchIsApplied() {
ContentCluster cluster = newContentCluster(joinLines("<search>",
" <query-timeout>1.1</query-timeout>",
" <visibility-delay>2.3</visibility-delay>",
@@ -64,7 +64,7 @@ public class ClusterTest {
}
@Test
- public void requireThatDispatchTuningIsApplied() throws ParseException {
+ public void requireThatDispatchTuningIsApplied() {
ContentCluster cluster = newContentCluster(joinLines("<search>", "</search>"),
joinLines("<tuning>",
"</tuning>"));
@@ -79,7 +79,7 @@ public class ClusterTest {
}
@Test
- public void requireThatVisibilityDelayIsZeroForGlobalDocumentType() throws ParseException {
+ public void requireThatVisibilityDelayIsZeroForGlobalDocumentType() {
ContentCluster cluster = newContentCluster(joinLines("<search>",
" <visibility-delay>2.3</visibility-delay>",
"</search>"), true);
@@ -87,19 +87,19 @@ public class ClusterTest {
assertEquals(0.0, proton.documentdb(0).visibilitydelay(), 1E-6);
}
- private static ContentCluster newContentCluster(String contentSearchXml) throws ParseException {
+ private static ContentCluster newContentCluster(String contentSearchXml) {
return newContentCluster(contentSearchXml, "", false);
}
- private static ContentCluster newContentCluster(String contentSearchXml, String searchNodeTuningXml) throws ParseException {
+ private static ContentCluster newContentCluster(String contentSearchXml, String searchNodeTuningXml) {
return newContentCluster(contentSearchXml, searchNodeTuningXml, false);
}
- private static ContentCluster newContentCluster(String contentSearchXml, boolean globalDocType) throws ParseException {
+ private static ContentCluster newContentCluster(String contentSearchXml, boolean globalDocType) {
return newContentCluster(contentSearchXml, "", globalDocType);
}
- private static ContentCluster newContentCluster(String contentSearchXml, String searchNodeTuningXml, boolean globalDocType) throws ParseException {
+ private static ContentCluster newContentCluster(String contentSearchXml, String searchNodeTuningXml, boolean globalDocType) {
ApplicationPackage app = new MockApplicationPackage.Builder()
.withHosts(joinLines(
"<hosts>",