A collection of executable examples for DeepSampler 2.1.0
If you are using the previous version
- 2.0.0 see DeepSampler 2.0.0 examples
- 1.1.0 see DeepSampler 1.1.0 examples
- Basic setup: The following examples demonstrate how to set up the basics for JUnit-tests with deepsampler.
They also show, how methods can be stubbed using the
Sample
-API. - Recording & Loading samples: The following examples demonstrate, how test data (samples) can be recorded at
runtime, and how persistent samples can be loaded in tests.
- Saving and loading samples with default configuration
- Tweaking filenames and paths
- Adding custom
JsonSerializer
s andJsonDeserializer
s to persist data, that cannot be persisted by DeepSampler out of the box - Adding custom
PersistenBeanExtension
s to persist data, that cannot be persisted by DeepSampler out of the box - Using custom matchers for persistent samplers
- Using the low-level-api without annotations: DeepSampler provides a low-level-api in case it is used without JUnit, or special configurations are necessary.
DeepSampler and deep-sampler-examples are made available under the terms of the MIT License (see LICENSE.md).
Copyright 2022 PPI AG (Hamburg, Germany)