Commit 4a8126f
committed
Fix: Resolve ApplicationContext failure in integration tests
- Added @MockBean for UserDetailsService to SecurityConfigIntegrationTest.
- This prevents the initial ApplicationContext load failure by providing a
mock dependency for Spring Security, allowing all subsequent integration
tests to run.1 parent 3610fb2 commit 4a8126f
1 file changed
Lines changed: 5 additions & 0 deletions
File tree
- backend/src/test/java/com/example/phoebe/integration/config
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments