3 import javax.persistence.EntityManager;
5 import dst.ass1.jpa.model.IModelFactory;
7 // DO NOT MODIFY THIS CLASS.
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.
13 public interface ITestData {
15 * Creates test data using the model factory and inserts them into the entity manager.
17 * @param modelFactory the model factory
18 * @param em the entity manager
20 void insert(IModelFactory modelFactory, EntityManager em);