use of org.eclipse.persistence.testing.models.legacy.Employee in project eclipselink by eclipse-ee4j.
the class LegacyTestModel method getReadObjectTestSuite.
public static TestSuite getReadObjectTestSuite() {
TestSuite suite = new TestSuite();
suite.setName("LegacyReadObjectTestSuite");
suite.setDescription("This suite test the reading of each object in the mapping model.");
Class<Employee> employeeClass = Employee.class;
PopulationManager manager = PopulationManager.getDefaultManager();
suite.addTest(new ReadObjectTest(manager.getObject(employeeClass, "example1")));
suite.addTest(new ReadObjectTest(manager.getObject(employeeClass, "example2")));
suite.addTest(new ReadObjectTest(manager.getObject(employeeClass, "example3")));
return suite;
}
use of org.eclipse.persistence.testing.models.legacy.Employee in project eclipselink by eclipse-ee4j.
the class LegacyTestModel method getDeleteObjectTestSuite.
public static TestSuite getDeleteObjectTestSuite() {
TestSuite suite = new TestSuite();
suite.setName("LegacyDeleteObjectTestSuite");
suite.setDescription("This suite tests the deletion of each object in the mapping model.");
Class<Employee> employeeClass = Employee.class;
PopulationManager manager = PopulationManager.getDefaultManager();
suite.addTest(new DeleteObjectTest(manager.getObject(employeeClass, "example1")));
suite.addTest(new DeleteObjectTest(manager.getObject(employeeClass, "example2")));
suite.addTest(new DeleteObjectTest(manager.getObject(employeeClass, "example3")));
return suite;
}
use of org.eclipse.persistence.testing.models.legacy.Employee in project eclipselink by eclipse-ee4j.
the class LegacyTestModel method getUpdateObjectTestSuite.
public static TestSuite getUpdateObjectTestSuite() {
TestSuite suite = new TestSuite();
suite.setName("LegacyUpdateObjectTestSuite");
suite.setDescription("This suite tests the updating of each object in the mapping model.");
Class<Employee> employeeClass = Employee.class;
PopulationManager manager = PopulationManager.getDefaultManager();
suite.addTest(new WriteObjectTest(manager.getObject(employeeClass, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(employeeClass, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(employeeClass, "example2")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(employeeClass, "example3")));
return suite;
}
Aggregations