Skip to content

Commit

Permalink
better than nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Oct 18, 2024
1 parent 247e989 commit ec7d3e0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/integrationTest/java/integration/tests/SpecialValuesTest.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package integration.tests;

import integration.IntegrationTest;
import lombok.CustomLog;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.TestInfo;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;

Expand All @@ -16,22 +16,27 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

@CustomLog
public class SpecialValuesTest extends IntegrationTest {
private Connection systemConnection;
private Connection userConnection;

@BeforeAll
void beforeAll(TestInfo testInfo) throws SQLException {
if (testInfo.getTags().contains("v2")) {
void beforeAll() throws SQLException {
try {
systemConnection = createConnection(getSystemEngineName());
} catch (Exception e) {
log.warn("Could not create system engine connection", e);
}
userConnection = createConnection();
}

@AfterAll
void afterAll(TestInfo testInfo) throws SQLException {
if (testInfo.getTags().contains("v2")) {
void afterAll() throws SQLException {
try {
systemConnection.close();
} catch (Exception e) {
log.warn("Could not create system engine connection", e);
}
userConnection.close();
}
Expand Down

0 comments on commit ec7d3e0

Please sign in to comment.