Skip to content

Commit 8e52082

Browse files
committed
overlay test for BB
1 parent e909ab9 commit 8e52082

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

  • core-tests/e2e-tests/spring/spring-rest-openapi-v3/src/test/kotlin/org/evomaster/e2etests/spring/openapi/v3/overlay

core-tests/e2e-tests/spring/spring-rest-openapi-v3/src/test/kotlin/org/evomaster/e2etests/spring/openapi/v3/overlay/OverlayEMTest.kt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,28 @@ class OverlayEMTest : SpringTestBase(){
6060
}
6161
}
6262

63+
@Test
64+
fun testRunEM_Overlay_Y_BB() {
65+
66+
runTestHandlingFlakyAndCompilation(
67+
"Overlay_Y_BB",
68+
100
69+
) { args: MutableList<String> ->
70+
71+
setOption(args, "overlay", "src/main/resources/overlay/subfolder/y.yaml")
72+
setOption(args, "blackBox", "true")
73+
setOption(args, "bbTargetUrl", baseUrlOfSut)
74+
setOption(args, "bbSwaggerUrl", "$baseUrlOfSut/v3/api-docs")
75+
76+
val solution = initAndRun(args)
77+
78+
Assertions.assertTrue(solution.individuals.size >= 1)
79+
assertNone(solution, HttpVerb.GET, 200, "/api/overlay", X)
80+
assertHasAtLeastOne(solution, HttpVerb.GET, 200, "/api/overlay", Y)
81+
}
82+
}
83+
84+
6385
@Test
6486
fun testRunEM_Overlay_Z_fail() {
6587

0 commit comments

Comments
 (0)