This repository has been archived by the owner on Jun 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWARM-806: JPA+JAX-RS+CDI+JTA examples have wrong assertions (#103)
Motivation ---------- Both the JPA+JAX-RS+CDI+JTA examples have the following exceptions in the log: Could not find MessageBodyWriter for response object of type: java.lang.Integer of media type: text/html yet the tests don't fail. This is because the FEST Assert API is used wrongly and no assertions are actually made. Modifications ------------- Fix usage of the FEST Assert API so that asserts are actually made. This itself makes the tests fail, but that is easy to fix: just make the int-returning JAX-RS methods @produces("text/plain"), so that java.lang.Integer marshaller is found. Result ------ More test coverage, less exceptions in the log, tests still pass.
- Loading branch information
1 parent
e6f1680
commit d6b7337
Showing
4 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
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
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