Skip to content
Snippets Groups Projects
Unverified Commit ac36fcc8 authored by Luc Everse's avatar Luc Everse :passport_control:
Browse files

Fix style and tests

parent 2caacb0c
No related branches found
No related tags found
2 merge requests!148Release 2.3.0,!140Feature - Private Docker registries
Pipeline #260025 passed with warnings
...@@ -14,7 +14,6 @@ import org.springframework.stereotype.Service; ...@@ -14,7 +14,6 @@ import org.springframework.stereotype.Service;
import java.io.IOException; import java.io.IOException;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.attribute.PosixFilePermission; import java.nio.file.attribute.PosixFilePermission;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.ArrayList; import java.util.ArrayList;
... ...
......
...@@ -6,6 +6,7 @@ import nl.tudelft.ewi.auta.core.authentication.database.DatabaseConnection; ...@@ -6,6 +6,7 @@ import nl.tudelft.ewi.auta.core.authentication.database.DatabaseConnection;
import nl.tudelft.ewi.auta.core.authentication.database.DatabaseConnector; import nl.tudelft.ewi.auta.core.authentication.database.DatabaseConnector;
import nl.tudelft.ewi.auta.core.authentication.PasswordHasher; import nl.tudelft.ewi.auta.core.authentication.PasswordHasher;
import nl.tudelft.ewi.auta.core.settings.GlobalSettings; import nl.tudelft.ewi.auta.core.settings.GlobalSettings;
import nl.tudelft.ewi.auta.core.settings.SettingKey;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
...@@ -40,7 +41,7 @@ public class SecurityAgentTest { ...@@ -40,7 +41,7 @@ public class SecurityAgentTest {
Mockito.when(this.connector.connect()).thenReturn(this.connection); Mockito.when(this.connector.connect()).thenReturn(this.connection);
this.dbPath = Files.createTempFile("auta", "test"); this.dbPath = Files.createTempFile("auta", "test");
this.settings.put("authentication database path", this.dbPath.toString()); this.settings.put(SettingKey.AUTHENTICATION_DATABASE_LOCATION, this.dbPath.toString());
this.agent = new SecurityAgent(this.connector, this.hasher, this.settings); this.agent = new SecurityAgent(this.connector, this.hasher, this.settings);
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment