]> git.somenet.org - pub/jan/dst18.git/blob - ass1-jpa/src/test/java/dst/ass1/jpa/ITestData.java
Add template for assignment 1
[pub/jan/dst18.git] / ass1-jpa / src / test / java / dst / ass1 / jpa / ITestData.java
1 package dst.ass1.jpa;
2
3 import javax.persistence.EntityManager;
4
5 import dst.ass1.jpa.model.IModelFactory;
6
7 // DO NOT MODIFY THIS CLASS.
8
9 /**
10  * The ITestData interface is used by the {@link ORMService} to insert test data before each test run. You can pass
11  * custom implementation of {@link ITestData} to the constructor of {@link ORMService} to create your own test fixture.
12  */
13 public interface ITestData {
14     /**
15      * Creates test data using the model factory and inserts them into the entity manager.
16      *
17      * @param modelFactory the model factory
18      * @param em the entity manager
19      */
20     void insert(IModelFactory modelFactory, EntityManager em);
21 }