Skip to content

Commit

Permalink
Merge pull request #2 from Knerio/fix/tests
Browse files Browse the repository at this point in the history
fix mongo test
  • Loading branch information
Knerio authored Jan 10, 2025
2 parents 4ee9aa5 + 8580c87 commit b6ca25c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions mongo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ dependencies {

api("org.mongodb:mongodb-driver-sync:5.2.1")
testImplementation("org.mongodb:mongodb-driver-sync:5.2.1")
}

tasks {
compileJava {
dependsOn(project(":api").tasks.shadowJar)
}
}
4 changes: 2 additions & 2 deletions mongo/src/test/java/de/derioo/multidb/test/GeneralTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
public class GeneralTest {

public static TestRepo repo() {
// DatabaseManager manager = new MongoManager(new MongoCredentials("mongodb://localhost:27017/testdb", "testdb"));
DatabaseManager manager = new MongoManager(new MongoCredentials().readFromFile());
DatabaseManager manager = new MongoManager(new MongoCredentials("mongodb://localhost:27017/testdb", "testdb"));
// DatabaseManager manager = new MongoManager(new MongoCredentials().readFromFile());
return manager.create(TestRepo.class);
}

Expand Down
6 changes: 6 additions & 0 deletions sql/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ dependencies {
implementation("org.xerial:sqlite-jdbc:3.47.1.0")
testImplementation("org.xerial:sqlite-jdbc:3.47.1.0")

}

tasks {
compileJava {
dependsOn(project(":api").tasks.shadowJar)
}
}

0 comments on commit b6ca25c

Please sign in to comment.