-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mbc 41 task fix bug swagger and verify bill services by test cases (#24)
* fix: bug login, swagger https * test: 50% bill + projection showtime * test: 100% bill service unit testing * refactor: add projection for rooms * fix: application not loaded integration testing * test: add test crash controller refactor: separate error info ( use for swagger later) * add chore file * test: add integration test for creating bill success * test: 100% coverage bills * hotfix: fix reference and error information of swagger * hotfix: fix security tickets --------- Co-authored-by: Tiền Minh Vy <[email protected]>
- Loading branch information
1 parent
ccd59c8
commit 91be72f
Showing
56 changed files
with
3,742 additions
and
407 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/com/tech_symfony/movie_booking/api/CrashController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
package com.tech_symfony.movie_booking.api; | ||
|
||
import com.tech_symfony.movie_booking.system.exception.ErrorInfo; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.media.Content; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
/** | ||
* Controller used to showcase what happens when an exception is thrown | ||
*/ | ||
@RestController | ||
class CrashController { | ||
|
||
@Operation( | ||
summary = "Kiểm thử khả năng xử lý lỗi của ứng dụng" | ||
) | ||
|
||
@GetMapping("/oups") | ||
public ResponseEntity<String> triggerException() { | ||
throw new RuntimeException( | ||
"Expected: controller used to showcase what " + "happens when an exception is thrown"); | ||
} | ||
|
||
} |
16 changes: 5 additions & 11 deletions
16
src/main/java/com/tech_symfony/movie_booking/api/RootController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 10 additions & 11 deletions
21
src/main/java/com/tech_symfony/movie_booking/api/bill/BillModelAssembler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.