You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably shouldn't have this test since it tests nothing.
Actual behavior
///region FUZZER: ERROR SUITE for method demo()/// Actual number of generated tests (4964) exceeds per-method limit (50)/// The limit can be configured in '{HOME_DIR}/.utbot/settings.properties' with 'maxTestsPerMethod' property/** * @utbot.classUnderTest {@link NameController} * @utbot.methodUnderTest {@link NameController#demo()} */@Test@DisplayName("demo: -> throw AccessDeniedException")
publicvoidtestDemoThrowsADE() {
/* This test fails because method [com.laurentiuspilca.ssia.controllers.NameController.demo] produces [org.springframework.security.access.AccessDeniedException: Access is denied] */nameController.demo();
}
/** * @utbot.classUnderTest {@link NameController} * @utbot.methodUnderTest {@link NameController#demo()} */@Test@DisplayName("demo: -> throw AccessDeniedException")
publicvoidtestDemoThrowsADE1() {
/* This test fails because method [com.laurentiuspilca.ssia.controllers.NameController.demo] produces [org.springframework.security.access.AccessDeniedException: Access is denied] */nameController.demo();
}
/** * @utbot.classUnderTest {@link NameController} * @utbot.methodUnderTest {@link NameController#demo()} */@Test@DisplayName("demo: -> throw AccessDeniedException")
publicvoidtestDemoThrowsADE2() {
/* This test fails because method [com.laurentiuspilca.ssia.controllers.NameController.demo] produces [org.springframework.security.access.AccessDeniedException: Access is denied] */nameController.demo();
}
// and so on
The text was updated successfully, but these errors were encountered:
ancavar
changed the title
Controller's method with @PreAuthorize generates infinitely many same tests
Controller's method with @PreAuthorize generates infinitely many same tests.
Dec 19, 2023
To Reproduce
Generate integration tests for controller's method which has
@PreAuthorize
, e.g.Expected behavior
Probably shouldn't have this test since it tests nothing.
Actual behavior
The text was updated successfully, but these errors were encountered: