fix code smells

This commit is contained in:
verboomp
2026-01-21 09:40:43 +01:00
parent 2c14caa6ca
commit 47ee7c3c25
5 changed files with 12 additions and 29 deletions

View File

@@ -41,8 +41,7 @@ public abstract class AbstractRestTest extends AbstractTest {
protected String getAuthorization(String user, String pass) {
String auth = user + ":" + pass;
String encoded = Base64.getEncoder().encodeToString(auth.getBytes());
String authorization = "Basic " + encoded;
return authorization;
return "Basic " + encoded;
}
protected String getBearerToken(String authorization) {

View File

@@ -31,7 +31,7 @@ import org.skyscreamer.jsonassert.JSONAssert;
* created: 13 Nov 2024
*/
public class AbstractTest {
public abstract class AbstractTest {
private static final Log LOG = LogFactory.getLog(AbstractTest.class);
public String deploymentURL = "http://localhost:8180/";
@@ -179,11 +179,4 @@ public class AbstractTest {
throw new RuntimeException(e);
}
}
/*
public static void main(String[] args) throws SQLException {
try (var connection = DriverManager.getConnection("jdbc:postgresql://localhost:5432/skillmatrix", "skillmatrix", "skillmatrix")) {
initDb(connection, "dataset.xml");
}
}*/
}