Skip to content

Commit

Permalink
hopefully fixed EnvironmentManager
Browse files Browse the repository at this point in the history
  • Loading branch information
alexradzin committed Apr 3, 2024
1 parent 67fc2c9 commit e7a5858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integrationTest/java/integration/EnvironmentManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.Properties;

public class EnvironmentManager {
private final String name = "instegration_testing_" + System.currentTimeMillis();
private final String name = "integration_testing__" + System.currentTimeMillis();
private Connection connection;

enum Action {
Expand Down Expand Up @@ -49,7 +49,7 @@ private Connection createDbConnection() throws SQLException, ClassNotFoundExcept
}

private void perform(Properties props, Entity entity, String entityName, Action ... actions) throws SQLException {
if (System.getProperty(entity.property) == null) {
if (System.getProperty(entity.property, "").isBlank()) {
for (Action action : actions) {
executeSql(String.format("%s %s %s", action, entity, entityName));
if (Action.CREATE.equals(action)) {
Expand Down

0 comments on commit e7a5858

Please sign in to comment.