Skip to content

Commit

Permalink
Release: 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
coilgner committed Oct 23, 2023
1 parent 59ae9b1 commit 6995115
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
*.iws
*.iml
*.ipr
.idea
.idea
db.properties
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>de.goldendeveloper</groupId>
<artifactId>MYSQL-Api</artifactId>
<version>5.3</version>
<version>5.4</version>
<packaging>jar</packaging>

<name>MYSQL-Api | JMA</name>
Expand Down Expand Up @@ -118,6 +118,11 @@
<version>3.4.2</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
<version>4.8.0</version>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
Expand Down
17 changes: 16 additions & 1 deletion src/test/java/de/goldendeveloper/mysql/MYSQLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,29 @@

import org.junit.jupiter.api.Test;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import static org.junit.jupiter.api.Assertions.*;

class MYSQLTest {

private MYSQL setupTest() {
return new MYSQL("localhost", "root", "", 3306);
try {
Properties properties = new Properties();
properties.load(new FileInputStream("db.properties"));
String host = properties.getProperty("db.host");
String user = properties.getProperty("db.user");
String password = properties.getProperty("db.password");
int port = Integer.parseInt(properties.getProperty("db.port"));
return new MYSQL(host, user, password, port);
} catch (IOException e) {
throw new RuntimeException(e);
}
}


@Test
void setPassword() {
setupTest().setPassword("password");
Expand Down

0 comments on commit 6995115

Please sign in to comment.