Search in sources :

Example 1 with ProjectDeleteTest

use of org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest in project eclipselink by eclipse-ee4j.

the class EmployeeChangeFlagBasicTestModel method getDeleteObjectTestSuite.

public static TestSuite getDeleteObjectTestSuite() {
    TestSuite suite = new TestSuite();
    suite.setName("EmployeeDeleteObjectTestSuite");
    suite.setDescription("This suite tests the deletion of each object in the employee demo.");
    Class<Employee> employeeClass = org.eclipse.persistence.testing.models.employee.domain.Employee.class;
    Class<LargeProject> largeProjectClass = org.eclipse.persistence.testing.models.employee.domain.LargeProject.class;
    Class<SmallProject> smallProjectClass = org.eclipse.persistence.testing.models.employee.domain.SmallProject.class;
    PopulationManager manager = PopulationManager.getDefaultManager();
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0001")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0002")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0003")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0004")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0005")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(smallProjectClass, "0001")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(smallProjectClass, "0002")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(smallProjectClass, "0003")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(largeProjectClass, "0001")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(largeProjectClass, "0002")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(largeProjectClass, "0003")));
    return suite;
}
Also used : SmallProject(org.eclipse.persistence.testing.models.employee.domain.SmallProject) EmployeeDeleteTest(org.eclipse.persistence.testing.tests.employee.EmployeeDeleteTest) ProjectDeleteTest(org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest) Employee(org.eclipse.persistence.testing.models.employee.domain.Employee) TestSuite(org.eclipse.persistence.testing.framework.TestSuite) PopulationManager(org.eclipse.persistence.tools.schemaframework.PopulationManager) LargeProject(org.eclipse.persistence.testing.models.employee.domain.LargeProject)

Example 2 with ProjectDeleteTest

use of org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest in project eclipselink by eclipse-ee4j.

the class BrokerTestModel method getDeleteObjectTestSuite.

public static TestSuite getDeleteObjectTestSuite() {
    TestSuite suite = new TestSuite();
    suite.setName("BrokerDeleteObjectTestSuite");
    suite.setDescription("This suite tests delete SQL.");
    PopulationManager manager = PopulationManager.getDefaultManager();
    suite.addTest(new EmployeeDeleteTest(manager.getObject(Employee.class, "0001")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(Employee.class, "0002")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(LargeProject.class, "0001")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(SmallProject.class, "0002")));
    return suite;
}
Also used : ProjectDeleteTest(org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest) TestSuite(org.eclipse.persistence.testing.framework.TestSuite) EmployeeDeleteTest(org.eclipse.persistence.testing.tests.employee.EmployeeDeleteTest) PopulationManager(org.eclipse.persistence.tools.schemaframework.PopulationManager)

Example 3 with ProjectDeleteTest

use of org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest in project eclipselink by eclipse-ee4j.

the class SessionsXMLBasicTestModel method getSRGDeleteObjectTestSuite.

// SRG test set is maintained by QA only, do NOT add any new tests into it.
public static TestSuite getSRGDeleteObjectTestSuite() {
    TestSuite suite = new TestSuite();
    suite.setName("EmployeeDeleteObjectTestSuite");
    suite.setDescription("This suite tests the deletion of each object in the employee demo.");
    Class<Employee> employeeClass = Employee.class;
    Class<LargeProject> largeProjectClass = LargeProject.class;
    Class<SmallProject> smallProjectClass = SmallProject.class;
    PopulationManager manager = PopulationManager.getDefaultManager();
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0001")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0002")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0003")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0004")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0005")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(smallProjectClass, "0001")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(smallProjectClass, "0002")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(smallProjectClass, "0003")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(largeProjectClass, "0001")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(largeProjectClass, "0002")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(largeProjectClass, "0003")));
    return suite;
}
Also used : SmallProject(org.eclipse.persistence.testing.models.employee.domain.SmallProject) ProjectDeleteTest(org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest) Employee(org.eclipse.persistence.testing.models.employee.domain.Employee) TestSuite(org.eclipse.persistence.testing.framework.TestSuite) EmployeeDeleteTest(org.eclipse.persistence.testing.tests.employee.EmployeeDeleteTest) PopulationManager(org.eclipse.persistence.tools.schemaframework.PopulationManager) LargeProject(org.eclipse.persistence.testing.models.employee.domain.LargeProject)

Example 4 with ProjectDeleteTest

use of org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest in project eclipselink by eclipse-ee4j.

the class CustomSQLTestModel method getDeleteObjectTestSuite.

public static TestSuite getDeleteObjectTestSuite() {
    TestSuite suite = new TestSuite();
    suite.setName("CustomSQLDeleteObjectTestSuite");
    suite.setDescription("This suite tests delete SQL.");
    Class<Employee> employeeClass = Employee.class;
    PopulationManager manager = PopulationManager.getDefaultManager();
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0001")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0002")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(SmallProject.class, "0003")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(LargeProject.class, "0001")));
    return suite;
}
Also used : ProjectDeleteTest(org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest) EmployeeDeleteTest(org.eclipse.persistence.testing.tests.employee.EmployeeDeleteTest)

Example 5 with ProjectDeleteTest

use of org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest in project eclipselink by eclipse-ee4j.

the class SessionsXMLBasicTestModel method getDeleteObjectTestSuite.

public static TestSuite getDeleteObjectTestSuite() {
    TestSuite suite = new TestSuite();
    suite.setName("EmployeeDeleteObjectTestSuite");
    suite.setDescription("This suite tests the deletion of each object in the employee demo.");
    Class<Employee> employeeClass = Employee.class;
    Class<LargeProject> largeProjectClass = LargeProject.class;
    Class<SmallProject> smallProjectClass = SmallProject.class;
    PopulationManager manager = PopulationManager.getDefaultManager();
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0001")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0002")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0003")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0004")));
    suite.addTest(new EmployeeDeleteTest(manager.getObject(employeeClass, "0005")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(smallProjectClass, "0001")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(smallProjectClass, "0002")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(smallProjectClass, "0003")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(largeProjectClass, "0001")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(largeProjectClass, "0002")));
    suite.addTest(new ProjectDeleteTest(manager.getObject(largeProjectClass, "0003")));
    return suite;
}
Also used : SmallProject(org.eclipse.persistence.testing.models.employee.domain.SmallProject) ProjectDeleteTest(org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest) Employee(org.eclipse.persistence.testing.models.employee.domain.Employee) TestSuite(org.eclipse.persistence.testing.framework.TestSuite) EmployeeDeleteTest(org.eclipse.persistence.testing.tests.employee.EmployeeDeleteTest) PopulationManager(org.eclipse.persistence.tools.schemaframework.PopulationManager) LargeProject(org.eclipse.persistence.testing.models.employee.domain.LargeProject)

Aggregations

EmployeeDeleteTest (org.eclipse.persistence.testing.tests.employee.EmployeeDeleteTest)5 ProjectDeleteTest (org.eclipse.persistence.testing.tests.employee.ProjectDeleteTest)5 TestSuite (org.eclipse.persistence.testing.framework.TestSuite)4 PopulationManager (org.eclipse.persistence.tools.schemaframework.PopulationManager)4 Employee (org.eclipse.persistence.testing.models.employee.domain.Employee)3 LargeProject (org.eclipse.persistence.testing.models.employee.domain.LargeProject)3 SmallProject (org.eclipse.persistence.testing.models.employee.domain.SmallProject)3