Skip to content

Commit

Permalink
Cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Sep 11, 2023
1 parent 6c5ac60 commit 9866323
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.exasol.extensionmanager.itest;

import static com.exasol.extensionmanager.itest.IntegrationTestCommon.BUILT_EXTENSION_JS;
import static com.exasol.extensionmanager.itest.IntegrationTestCommon.TESTING_EXTENSION_SOURCE_DIR;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;

Expand All @@ -18,8 +19,7 @@ class ExasolMetadataIT {
static void setupExasol() {
exasolTestSetup = IntegrationTestCommon.createExasolTestSetup();
extensionManager = ExtensionManagerSetup.create(exasolTestSetup,
ExtensionBuilder.createDefaultNpmBuilder(TESTING_EXTENSION_SOURCE_DIR,
TESTING_EXTENSION_SOURCE_DIR.resolve("dist").resolve(IntegrationTestCommon.EXTENSION_ID)));
ExtensionBuilder.createDefaultNpmBuilder(TESTING_EXTENSION_SOURCE_DIR, BUILT_EXTENSION_JS));
metadata = extensionManager.exasolMetadata();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.exasol.extensionmanager.itest;

import static com.exasol.extensionmanager.itest.IntegrationTestCommon.EXTENSION_ID;
import static com.exasol.extensionmanager.itest.IntegrationTestCommon.TESTING_EXTENSION_SOURCE_DIR;
import static com.exasol.extensionmanager.itest.IntegrationTestCommon.*;
import static java.util.Collections.emptyList;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
Expand Down Expand Up @@ -37,8 +36,8 @@ static void setup() throws SQLException, IOException {
exasolTestSetup = IntegrationTestCommon.createExasolTestSetup();
connection = exasolTestSetup.createConnection();
createTestConfigFile();
extensionManager = ExtensionManagerSetup.create(exasolTestSetup, ExtensionBuilder.createDefaultNpmBuilder(
TESTING_EXTENSION_SOURCE_DIR, TESTING_EXTENSION_SOURCE_DIR.resolve("dist").resolve(EXTENSION_ID)));
extensionManager = ExtensionManagerSetup.create(exasolTestSetup,
ExtensionBuilder.createDefaultNpmBuilder(TESTING_EXTENSION_SOURCE_DIR, BUILT_EXTENSION_JS));
client = extensionManager.client();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.exasol.extensionmanager.itest;

import static com.exasol.extensionmanager.itest.IntegrationTestCommon.BUILT_EXTENSION_JS;
import static com.exasol.extensionmanager.itest.IntegrationTestCommon.TESTING_EXTENSION_SOURCE_DIR;
import static com.exasol.matcher.ResultSetStructureMatcher.table;
import static org.hamcrest.MatcherAssert.assertThat;
Expand Down Expand Up @@ -35,8 +36,7 @@ static void teardownExasol() throws Exception {
@BeforeEach
void setup() throws SQLException {
extensionManager = ExtensionManagerSetup.create(exasolTestSetup,
ExtensionBuilder.createDefaultNpmBuilder(TESTING_EXTENSION_SOURCE_DIR,
TESTING_EXTENSION_SOURCE_DIR.resolve("dist").resolve(IntegrationTestCommon.EXTENSION_ID)));
ExtensionBuilder.createDefaultNpmBuilder(TESTING_EXTENSION_SOURCE_DIR, BUILT_EXTENSION_JS));
}

@AfterEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class IntegrationTestCommon {
static final Path TESTING_EXTENSION_SOURCE_DIR = Paths.get("testing-extension").toAbsolutePath();
static final Path CONFIG_FILE = Paths.get("extension-test.properties").toAbsolutePath();
static final String EXTENSION_ID = "testing-extension.js";
static final Path BUILT_EXTENSION_JS = TESTING_EXTENSION_SOURCE_DIR.resolve("dist").resolve(EXTENSION_ID);

private IntegrationTestCommon() {
// Not instantiable
Expand Down

0 comments on commit 9866323

Please sign in to comment.