Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if org.microshed.testing.jaxrs.RESTClient return CompletionStage #213

Open
gkwan-ibm opened this issue Aug 21, 2020 · 0 comments
Open
Labels
is:bug Something isn't working

Comments

@gkwan-ibm
Copy link

gkwan-ibm commented Aug 21, 2020

Describe the bug
A service provides a REST api return CompletionStage<>.
Used MST RESTClient to test it, got following error:

javax.ws.rs.client.ResponseProcessingException: Problem with reading the data, class java.util.concurrent.CompletionStage, ContentType: application/json.

To Reproduce

[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 41.349 s <<< FAILURE! - in it.io.openliberty.guides.inventory.InventoryServiceIT
[ERROR] testGetProperty  Time elapsed: 0.937 s  <<< ERROR!
javax.ws.rs.client.ResponseProcessingException: Problem with reading the data, class java.util.concurrent.CompletionStage, ContentType: application/json.
	at it.io.openliberty.guides.inventory.InventoryServiceIT.testGetProperty(InventoryServiceIT.java:96)
Caused by: javax.json.bind.JsonbException: Internal error: Unexpected char 82 at (line no=1, column no=1, offset=0)
	at it.io.openliberty.guides.inventory.InventoryServiceIT.testGetProperty(InventoryServiceIT.java:96)
Caused by: javax.json.stream.JsonParsingException: Unexpected char 82 at (line no=1, column no=1, offset=0)
	at it.io.openliberty.guides.inventory.InventoryServiceIT.testGetProperty(InventoryServiceIT.java:96)

Expected behavior
No error and test can be passed

System information:

  • OS: Linux, Mac
  • Java Version: 8
  • MicroShed Testing Version: 0.9

Additional context
MicroProfile rest client supports to return CompletionStage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant