Skip to content

v2.1.0

Latest
Compare
Choose a tag to compare
@JanSchankin JanSchankin released this 11 May 15:03
· 11 commits to dev since this release
12150ae

Highlights

  • Some bugs have been fixed
  • Module refactoring: JSON, as the standard persistence for the recorder, was tied closely to the JUnit-annotations. This was not only a theoretical design flaw (a violation of the separation-of-concern principle), it also prevented the usage of other persistence plugins together with annotation based configuration of JUnit-tests. To solve this, we introduced the new module deepsampler-junit-json. All json-specific annotations have been moved from deepsampler-junit to this new module. (See new dependencies)
  • Custom annotations for loading and recording with custom persistence: The new meta annotations @UseSourceManagerForSaving and @UseSourceManagerForLoading can now be used to create custom annotations for loading and recording samples using custom persistence plugins. See Authoring custom persistence extensions
  • BeanConverterExtension for Optional: Optionals can now be recorded without writing a custom BeanConverterExtension. See OptionalExtension
  • Charset configuration: The new annotation @UseCharset allows to define the charset, that is used during recording and loading of samples

Migration from older versions

New Module

Due to the module refactoring, a new additional dependency must be added:

<dependency>
   <groupId>de.ppi</groupId>
   <artifactId>deepsampler-junit-json</artifactId>
   <version>2.1.0</version>
   <scope>test</scope>
</dependency>

Package refactoring

Also, as a result of the module refactoring, some annotations have been moved to a new package:

  • de.ppi.deepsampler.junit.LoadSamples has been moved to de.ppi.deepsampler.junit.json
  • de.ppi.deepsampler.junit.SaveSamples has been moved to de.ppi.deepsampler.junit.json
  • de.ppi.deepsampler.junit.UseJsonDeserializer has been moved to de.ppi.deepsampler.junit.json
  • de.ppi.deepsampler.junit.UseJsonDeserializers has been moved to de.ppi.deepsampler.junit.json
  • de.ppi.deepsampler.junit.UseJsonSerializer has been moved to de.ppi.deepsampler.junit.json
  • de.ppi.deepsampler.junit.UseJsonSerializers has been moved to de.ppi.deepsampler.junit.json

Details

Update of dependencies

New Contributors

Full Changelog: v1.1.0...v2.1.0