aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/vespa/model/content/GenericConfigTest.java
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2019-07-25 07:01:31 +0200
committerHarald Musum <musum@verizonmedia.com>2019-07-25 07:01:31 +0200
commit68527431b484fa1888d527ae2abab5f3f5b51fb5 (patch)
treeff5ef15e5e9cdfe0fdadedf83baf4480694d1a82 /config-model/src/test/java/com/yahoo/vespa/model/content/GenericConfigTest.java
parent29a0aa78101c9bb16dd2386438721e8128362f06 (diff)
Cleanup config model, part 1
Remove unused code, optimize imports, fix method signatures. No functional changes
Diffstat (limited to 'config-model/src/test/java/com/yahoo/vespa/model/content/GenericConfigTest.java')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/content/GenericConfigTest.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/content/GenericConfigTest.java b/config-model/src/test/java/com/yahoo/vespa/model/content/GenericConfigTest.java
index a65c4e50521..992edf6b1bb 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/content/GenericConfigTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/content/GenericConfigTest.java
@@ -2,7 +2,6 @@
package com.yahoo.vespa.model.content;
import com.yahoo.vespa.config.content.StorFilestorConfig;
-import com.yahoo.searchdefinition.parser.ParseException;
import com.yahoo.vespa.model.VespaModel;
import com.yahoo.vespa.model.content.cluster.ContentCluster;
import com.yahoo.vespa.model.content.storagecluster.StorageCluster;
@@ -10,9 +9,6 @@ import com.yahoo.vespa.model.test.utils.ApplicationPackageUtils;
import com.yahoo.vespa.model.test.utils.VespaModelCreatorWithMockPkg;
import org.junit.Before;
import org.junit.Test;
-import org.xml.sax.SAXException;
-
-import java.io.IOException;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
@@ -53,12 +49,12 @@ public class GenericConfigTest {
}
@Before
- public void getVespaModel() throws IOException, SAXException, ParseException {
+ public void getVespaModel() {
model = (new VespaModelCreatorWithMockPkg(ContentBaseTest.getHosts(), servicesXml(), ApplicationPackageUtils.generateSearchDefinitions("type1"))).create();
}
@Test
- public void config_override_on_root_is_visible_on_storage_cluster() throws Exception {
+ public void config_override_on_root_is_visible_on_storage_cluster() {
StorageCluster cluster = model.getContentClusters().get("storage").getStorageNodes();
StorFilestorConfig config = model.getConfig(StorFilestorConfig.class, cluster.getConfigId());
@@ -66,7 +62,7 @@ public class GenericConfigTest {
}
@Test
- public void config_override_on_root_is_visible_on_content_cluster() throws Exception {
+ public void config_override_on_root_is_visible_on_content_cluster() {
ContentCluster cluster = model.getContentClusters().get("storage");
StorFilestorConfig config = model.getConfig(StorFilestorConfig.class, cluster.getConfigId());