fix code smells
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user