Skip to content
Snippets Groups Projects
Commit 07f099e8 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#663 - re-initialize IntegrationTestHelper before each test class

parent 14d8eaa9
No related branches found
No related tags found
No related merge requests found
package de.deadlocker8.budgetmaster.integration.helpers;
import de.deadlocker8.budgetmaster.Main;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.openqa.selenium.WebDriver;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -46,6 +47,12 @@ public abstract class SeleniumTestBase
registry.add("spring.datasource.password", postgresDB::getPassword);
}
@BeforeAll
static void beforeAll()
{
isDatabaseAlreadyImported = false;
}
@BeforeEach
public void beforeEach()
{
......
......@@ -3,7 +3,6 @@ package de.deadlocker8.budgetmaster.integration.selenium;
import de.deadlocker8.budgetmaster.authentication.UserService;
import de.deadlocker8.budgetmaster.integration.helpers.IntegrationTestHelper;
import de.deadlocker8.budgetmaster.integration.helpers.SeleniumTestBase;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment