Refined the test-cases and fixed a bug in GraphApiErrorResponseErrorHandler
authorKai Moritz <kai@jupl.de>
Wed, 20 Nov 2019 23:47:13 +0000 (00:47 +0100)
committerKai Moritz <kai@jupl.de>
Wed, 20 Nov 2019 23:55:24 +0000 (00:55 +0100)
commit43f4a4cefb9d1b7d4837d2a718f424cd0e3af95d
tree84c19462f7e41d9f2f13f3706323fa55e3ed213d
parentd64c9cc5a367f0934567f8c3915483fe0f64af98
Refined the test-cases and fixed a bug in GraphApiErrorResponseErrorHandler

* Fixed naming of test-case for the GraphApiErrorResponseErrorHandler
* Moved cases, that test GraphApiException into a separate class
* Do not test cases, that are coverd in unit-tests in integration-tests
* Instead, do test cases, that can only happen in the integrated environment
* GraphApiErrorResponseErrorHandler must only handle 4xx-responses
src/main/java/de/juplo/facebook/errors/GraphApiErrorResponseErrorHandler.java
src/test/java/de/juplo/facebook/errors/GraphApiErrorHandlerTest.java [deleted file]
src/test/java/de/juplo/facebook/errors/GraphApiErrorResponseErrorHandlerIntegrationTest.java [new file with mode: 0644]
src/test/java/de/juplo/facebook/errors/GraphApiExceptionTest.java [new file with mode: 0644]