Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b6132d9

Browse files
committed
Fix the test for update not found:
- pass a non-existent id to the service method to test not found error.
1 parent 08bfc5f commit b6132d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/test/java/com/nihat/springwebfluxdemo/services/ProductServiceImplTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void testUpdateNotFound() {
9898

9999
// When
100100
Mono<ProductDTO> resultMono = testMono
101-
.flatMap(dto -> productService.updateProduct(dto.getId(), dto));
101+
.flatMap(dto -> productService.updateProduct("XXX", dto));
102102

103103
// Then
104104
StepVerifier.create(resultMono)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /