Skip to content

Commit b006444

Browse files
Improve TODO comment with more details about test issue
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 82a6827 commit b006444

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

samples/xapi-server/src/test/java/dev/learning/xapi/samples/xapiserver/StatementsControllerTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ void whenGettingStatementsWithMoreTokenThenStatusIsOk() throws Exception {
104104
.andExpect(status().isOk());
105105
}
106106

107-
// TODO: Fix this test - mock isn't throwing exception as expected
107+
// TODO: Fix this test - @MockitoBean with @WebMvcTest isn't throwing exception as expected
108+
// The mock returns 200 OK instead of throwing IllegalArgumentException. This may be related to
109+
// Spring Boot 3.4+ bean override mechanism changes. Try: @MockBean, explicit mock configuration,
110+
// or integration test approach instead of slice test.
108111
// @Test
109112
// void whenGettingStatementsWithInvalidMoreTokenThenStatusIsBadRequest() throws Exception {
110113
//

0 commit comments

Comments
 (0)