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>
Fri, 22 Nov 2019 06:39:44 +0000 (07:39 +0100)
commit29d960306f0bea890cc1f02a4d66943d76013708
tree83be080cc52624d235a40c7d192edf600616a379
parente3b130e04e4e89a08e203185ba9ae7e6c1f350d8
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]