v0.0.7
·
261 commits
to master
since this release
0.0.7 - 2020-08-16
Added
- Added execution to maven-javadoc-plugin with the goal to generate a *javadoc.jar file at the end of the build process.
- Added maven-source-plugin
3.2.1in order to generate a *sources.jar file at the end of the build process. - Introduced new @FunctionalInterface
Procedurethat allows the invocation of void methods that may throw an exception. - Included the getSeriesHeaderInformation route also into the
TheTVDBApi.Extendedlayout. - Mapping for the /search/series routes JSONs data.poster property.
- Added sjf4j NOP logger binding maven dependency.
- The amount of actual key/value pairs held by a
QueryParametersobject can now be retrieved via the newsize()method. - Added a bunch of JUnit5 tests. Note: tests will be executed against a build-in netty server and thus do not require an active Internet connection.
- Added maven dependencies for org.mock-server:*
5.11.1and org.assertj:assertj-core3.16.1for JUnit testing. - New class
HttpHeadersholding constants of commonly used HTTP header names. - Included surefire plugin in version
3.0.0-M5. - Added option to dynamically define the remote endpoint to which the api-connector will send its requests to. Can be used for proxying requests. See new
Proxyclass.
Changed
- The connector now throws an
APIPreconditionExceptionwhen trying to invoke any /user route with APIKey-only authentication. - JSON deserialization of series header requests now returns a corresponding
APIResponseobject. HeadRequest.getResponse()now returns the mapped header values in a nested "data" JSON node.- Consider two
QueryParametersobjects to be equal when they have the same key/value pair. Invoking toString() will now return an overview of the actual key/value pairs. - Reduced the visibility of some internal public constructors and String constants.
- Updated several maven plugins and dependencies to latest version:
- org.apache.maven.plugins:maven-compiler-plugin:
3.8.0->3.8.1 - org.apache.maven.plugins:maven-javadoc-plugin:
3.1.0->3.2.0 - com.fasterxml.jackson.core:jackson-databind:
2.9.5->2.11.2 - org.immutables:value:
2.8.2->2.8.8 - org.slf4j:slf4j-api:
1.7.25->1.7.30
- org.apache.maven.plugins:maven-compiler-plugin:
- Replaced JUnit4 with JUnit5 maven dependency.
- Switched to Mockito v.3.
- Enhanced some JavaDoc documentation. Fixed several typos.
Fixed
- Fixed a typo in the
APIResponseString representation. - Fixed a typo in
Series.getArisTime()method name. Parameters.validatePathParam()now properly validates the actual parameter value instead of the (only descriptive) parameter name.- Fixed issue with "Accept" HTTP headers being overwritten in API requests.