Skip to content

Commit ff6e82d

Browse files
committed
embedded driver
1 parent 717c12a commit ff6e82d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

jdk_17_gradle/em/embedded/rest/bibliothek/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ val EVOMASTER_VERSION = "1.6.2-SNAPSHOT"
2626

2727
dependencies{
2828
implementation("org.evomaster:evomaster-client-java-controller:$EVOMASTER_VERSION")
29-
implementation("org.evomaster:evomaster-client-java-dependencies:$EVOMASTER_VERSION")
29+
implementation("org.evomaster:evomaster-client-java-dependencies:$EVOMASTER_VERSION"){
30+
exclude("com.github.tomakehurst")
31+
}
3032

3133
api(project(":cs:rest:bibliothek"))
3234

jdk_17_gradle/em/embedded/rest/bibliothek/src/main/java/em/embedded/bibliothek/EmbeddedEvoMasterController.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public static void main(String[] args) {
4444

4545
//https://www.mongodb.com/docs/drivers/java/sync/current/compatibility/
4646

47-
private static final String MONGODB_VERSION = "6.1";
47+
private static final String MONGODB_VERSION = "6.0";
4848

49-
private static final String MONGODB_DATABASE_NAME = "Reservations";
49+
private static final String MONGODB_DATABASE_NAME = "library";
5050

5151
private static final GenericContainer mongodbContainer = new GenericContainer("mongo:" + MONGODB_VERSION)
5252
.withExposedPorts(MONGODB_PORT);
@@ -77,7 +77,8 @@ public String startSut() {
7777
new String[]{"--server.port=0",
7878
"--databaseUrl="+mongoDbUrl,
7979
"--spring.data.mongodb.uri="+mongoDbUrl,
80-
"--spring.cache.type=NONE"
80+
"--spring.cache.type=NONE",
81+
"--app.storagePath=./tmp/bibliothek"
8182
});
8283

8384
return "http://localhost:" + getSutPort();
@@ -131,7 +132,7 @@ public List<AuthenticationDto> getInfoForAuthentication() {
131132
@Override
132133
public ProblemInfo getProblemInfo() {
133134
return new RestProblem(
134-
"http://localhost:" + getSutPort() + "/v3/api-docs",
135+
"http://localhost:" + getSutPort() + "/openapi",
135136
null
136137
);
137138
}

0 commit comments

Comments
 (0)