diff --git a/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java b/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java index 66b275ba759677482b61a52863a7a18425c47e8a..420ffcd88d285930b88e59534c09833a83bdd1e8 100644 --- a/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java +++ b/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java @@ -8,6 +8,9 @@ import org.openqa.selenium.support.ui.WebDriverWait; import java.io.File; import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; @@ -91,6 +94,15 @@ public class IntegrationTestHelper path = path.substring(1); } + try + { + path = URLDecoder.decode(path, StandardCharsets.UTF_8.toString()); + } + catch(UnsupportedEncodingException ex) + { + throw new RuntimeException(ex.getCause()); + } + driver.get(url + "/settings/database/requestImport"); // upload database