Files
spring-boot-demo/testing-no-containers/docs/output/05-truncated-body-wrong-exception.txt

37 lines
2.8 KiB
Plaintext

[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.831 s <<< FAILURE! -- in com.ankurm.testingnc.QuoteClientMockWebServerTest
[ERROR] com.ankurm.testingnc.QuoteClientMockWebServerTest.truncatedBodyIsNotTheSameAsASeveredConnection -- Time elapsed: 1.564 s <<< FAILURE!
java.lang.AssertionError:
Expecting actual throwable to be an instance of:
org.springframework.web.client.ResourceAccessException
but was:
org.springframework.web.client.RestClientException: Error while extracting response for type [com.ankurm.testingnc.Quote] and content type [application/json]
at org.springframework.web.client.DefaultRestClient.readWithMessageConverters(DefaultRestClient.java:274)
at org.springframework.web.client.DefaultRestClient$DefaultResponseSpec.readBody(DefaultRestClient.java:931)
at org.springframework.web.client.DefaultRestClient$DefaultResponseSpec.lambda$body$0(DefaultRestClient.java:833)
...(93 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed)
at com.ankurm.testingnc.QuoteClientMockWebServerTest.truncatedBodyIsNotTheSameAsASeveredConnection(QuoteClientMockWebServerTest.java:55)
[ERROR] Failures:
[ERROR] QuoteClientMockWebServerTest.truncatedBodyIsNotTheSameAsASeveredConnection:55
Expecting actual throwable to be an instance of:
org.springframework.web.client.ResourceAccessException
but was:
org.springframework.web.client.RestClientException: Error while extracting response for type [com.ankurm.testingnc.Quote] and content type [application/json]
at org.springframework.web.client.DefaultRestClient.readWithMessageConverters(DefaultRestClient.java:274)
at org.springframework.web.client.DefaultRestClient$DefaultResponseSpec.readBody(DefaultRestClient.java:931)
at org.springframework.web.client.DefaultRestClient$DefaultResponseSpec.lambda$body$0(DefaultRestClient.java:833)
...(93 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed)
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.6:test (default-test) on project testing-no-containers: There are test failures.
[ERROR]
[ERROR] See /home/claude/spring-boot-demo/testing-no-containers/target/surefire-reports for the individual test results.
[ERROR] See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException