Skip to content

Commit 1264e50

Browse files
committed
fixing a test
1 parent 5d04b47 commit 1264e50

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

marklogic-data-hub/src/test/java/com/marklogic/hub/DataHubInstallTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
public class DataHubInstallTest extends HubTestBase {
2020

21-
private static DataHub dataHub;
2221
@BeforeClass
2322
public static void setup() throws IOException {
2423
XMLUnit.setIgnoreWhitespace(true);
@@ -32,24 +31,23 @@ public static void setup() throws IOException {
3231

3332
@Test
3433
public void testInstallHubModules() throws IOException {
35-
assertTrue(dataHub.isInstalled().isInstalled());
34+
assertTrue(getDataHub().isInstalled().isInstalled());
3635

3736
assertTrue(getModulesFile("/com.marklogic.hub/lib/config.xqy").startsWith(getResource("data-hub-test/core-modules/config.xqy")));
3837
}
3938

4039
@Test
4140
public void getHubModulesVersion() throws IOException {
4241
String version = getHubConfig().getJarVersion();
43-
assertEquals(version, dataHub.getHubVersion());
42+
assertEquals(version, getDataHub().getHubVersion());
4443
}
4544

4645
@Test
4746
public void testInstallUserModules() throws IOException, ParserConfigurationException, SAXException, URISyntaxException {
4847
URL url = DataHubInstallTest.class.getClassLoader().getResource("data-hub-test");
4948
String path = Paths.get(url.toURI()).toFile().getAbsolutePath();
5049

51-
dataHub = new DataHub(getHubConfig(path));
52-
dataHub.installUserModules(true);
50+
getDataHub().installUserModules(true);
5351

5452
assertEquals(
5553
getResource("data-hub-test/plugins/entities/test-entity/harmonize/final/collector/collector.xqy"),

0 commit comments

Comments
 (0)