use of org.eclipse.persistence.testing.framework.WriteObjectTest in project eclipselink by eclipse-ee4j.
the class NLSEmployeeBasicTestModel method getUpdateObjectTestSuite.
public static TestSuite getUpdateObjectTestSuite() {
TestSuite suite = new TestSuite();
suite.setName("EmployeeUpdateObjectTestSuite");
suite.setDescription("[NLS_Japanese] This suite tests the updating of each object in the employee demo.");
Class<NLSEmployee> employeeClass = NLSEmployee.class;
Class<LargeProject> largeProjectClass = LargeProject.class;
Class<SmallProject> smallProjectClass = SmallProject.class;
PopulationManager manager = PopulationManager.getDefaultManager();
suite.addTest(new WriteObjectTest(manager.getObject(employeeClass, "0001")));
suite.addTest(new WriteObjectTest(manager.getObject(employeeClass, "0002")));
suite.addTest(new WriteObjectTest(manager.getObject(employeeClass, "0003")));
suite.addTest(new WriteObjectTest(manager.getObject(employeeClass, "0004")));
suite.addTest(new WriteObjectTest(manager.getObject(employeeClass, "0005")));
suite.addTest(new WriteObjectTest(manager.getObject(smallProjectClass, "0001")));
suite.addTest(new WriteObjectTest(manager.getObject(smallProjectClass, "0002")));
suite.addTest(new WriteObjectTest(manager.getObject(smallProjectClass, "0003")));
suite.addTest(new WriteObjectTest(manager.getObject(largeProjectClass, "0001")));
suite.addTest(new WriteObjectTest(manager.getObject(largeProjectClass, "0002")));
suite.addTest(new WriteObjectTest(manager.getObject(largeProjectClass, "0003")));
return suite;
}
use of org.eclipse.persistence.testing.framework.WriteObjectTest in project eclipselink by eclipse-ee4j.
the class AggregateTestModel method getSRGUpdateObjectTestSuite.
// SRG test set is maintained by QA only, do NOT add any new tests into it.
public static TestSuite getSRGUpdateObjectTestSuite() {
TestSuite suite = new TestSuite();
suite.setName("AggregateUpdateObjectTestSuite");
suite.setDescription("This suite tests the updating of each object in the aggregate model.");
Class<Employee1> employee1Class = Employee1.class;
Class<Employee> employeeClass = Employee.class;
Class<Client> clientClass = Client.class;
Class<EvaluationClient> evaluationClientClass = EvaluationClient.class;
PopulationManager manager = PopulationManager.getDefaultManager();
// =================================================================================
suite.addTest(new WriteObjectTest(manager.getObject(employee1Class, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(employee1Class, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(employee1Class, "example2")));
// =================================================================================
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")));
suite.addTest(new WriteObjectTest(manager.getObject(clientClass, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(clientClass, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(clientClass, "example2")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(clientClass, "example3")));
suite.addTest(new WriteObjectTest(manager.getObject(evaluationClientClass, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(evaluationClientClass, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(evaluationClientClass, "example2")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(evaluationClientClass, "example3")));
// update testing on aggregate collection mapping
suite.addTest(new WriteObjectTest(manager.getObject(Agent.class, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(Agent.class, "example1")));
if (useNewAggregateCollection) {
suite.addTest(new WriteObjectTest(manager.getObject(Builder.class, "example1")));
suite.addTest(new UnitOfWorkBasicUpdateObjectTest(manager.getObject(Builder.class, "example1")));
}
return suite;
}
Aggregations