Skip to content

Latest commit

 

History

History

instancio-models-sample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Instancio Models - Sample Maven Project

This sample demonstrates how Instancio Models can help

  • simplify data set up unit tests
  • significantly reduce boilerplate code
  • provide flexibility in manipulating data for different test cases

The sample code is a service that maps a domain object to an Avro object. In order to run the tests, Avro classes must be generated first. This can be done by running:

mvn package

The code in this sample is described in the following article:

https://www.instancio.org/articles/creating-object-templates-using-models/