Search in sources :

Example 1 with Employee

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;
}
Also used : Employee(org.eclipse.persistence.testing.models.legacy.Employee) ReadObjectTest(org.eclipse.persistence.testing.framework.ReadObjectTest)

Example 2 with Employee

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;
}
Also used : Employee(org.eclipse.persistence.testing.models.legacy.Employee) DeleteObjectTest(org.eclipse.persistence.testing.framework.DeleteObjectTest)

Example 3 with Employee

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;
}
Also used : Employee(org.eclipse.persistence.testing.models.legacy.Employee) WriteObjectTest(org.eclipse.persistence.testing.framework.WriteObjectTest)

Aggregations

Employee (org.eclipse.persistence.testing.models.legacy.Employee)3 DeleteObjectTest (org.eclipse.persistence.testing.framework.DeleteObjectTest)1 ReadObjectTest (org.eclipse.persistence.testing.framework.ReadObjectTest)1 WriteObjectTest (org.eclipse.persistence.testing.framework.WriteObjectTest)1