Search in sources :

Example 1 with InsuranceSystem

use of org.eclipse.persistence.testing.models.insurance.InsuranceSystem in project eclipselink by eclipse-ee4j.

the class ComplexUpdateAndUnitOfWorkTestModel method addRequiredSystems.

@Override
public void addRequiredSystems() {
    addRequiredSystem(new OwnershipSystem());
    addRequiredSystem(new IndirectListSystem());
    addRequiredSystem(new EmployeeSystem());
    addRequiredSystem(new InsuranceSystem());
    addRequiredSystem(new org.eclipse.persistence.testing.models.mapping.MappingSystem());
    addRequiredSystem(new org.eclipse.persistence.testing.tests.unitofwork.UOWSystem());
    addRequiredSystem(new InheritanceSystem());
}
Also used : InsuranceSystem(org.eclipse.persistence.testing.models.insurance.InsuranceSystem) InheritanceSystem(org.eclipse.persistence.testing.models.inheritance.InheritanceSystem) IndirectListSystem(org.eclipse.persistence.testing.models.transparentindirection.IndirectListSystem) org.eclipse.persistence.testing.tests.unitofwork(org.eclipse.persistence.testing.tests.unitofwork) EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Example 2 with InsuranceSystem

use of org.eclipse.persistence.testing.models.insurance.InsuranceSystem in project eclipselink by eclipse-ee4j.

the class ClientServerTestModel method addRequiredSystems.

@Override
public void addRequiredSystems() {
    try {
        getSession().getLog().write("WARNING, some JDBC drivers may fail if they are not thread safe." + Helper.cr() + "JDBC-ODBC will not be run for this test." + Helper.cr() + "Oracle OCI may fail." + Helper.cr() + "DB2 IBM JDBC may fail." + Helper.cr());
        getSession().getLog().flush();
    } catch (java.io.IOException e) {
    }
    if (getSession().getLogin().isJDBCODBCBridge()) {
        throw new TestWarningException("JDBC-ODBC cannot support concurrent connections.");
    }
    addRequiredSystem(new EmployeeSystem());
    addRequiredSystem(new InsuranceSystem());
    addRequiredSystem(new ClientServerEmployeeSystem());
    addRequiredSystem(new org.eclipse.persistence.testing.tests.unitofwork.UOWSystem());
}
Also used : InsuranceSystem(org.eclipse.persistence.testing.models.insurance.InsuranceSystem) org.eclipse.persistence.testing.tests.unitofwork(org.eclipse.persistence.testing.tests.unitofwork) EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Example 3 with InsuranceSystem

use of org.eclipse.persistence.testing.models.insurance.InsuranceSystem in project eclipselink by eclipse-ee4j.

the class FeatureTestModel method addRequiredSystems.

@Override
public void addRequiredSystems() {
    addRequiredSystem(new EmployeeSystem());
    addRequiredSystem(new org.eclipse.persistence.testing.models.aggregate.AggregateSystem());
    addRequiredSystem(new InheritanceSystem());
    addRequiredSystem(new InsuranceSystem());
    addRequiredSystem(new OwnershipSystem());
    addRequiredSystem(new LegacySystem());
    addRequiredSystem(new EventHookSystem());
    addRequiredSystem(new ProjectSystem());
    addRequiredSystem(new IdentitySystem());
    addRequiredSystem(new org.eclipse.persistence.testing.models.collections.CollectionsSystem());
    addRequiredSystem(new org.eclipse.persistence.testing.models.mapping.MappingSystem());
    addRequiredSystem(new org.eclipse.persistence.testing.models.sequencing.SequenceTestSystem());
    addRequiredSystem(new org.eclipse.persistence.testing.tests.queries.report.ReportQuerySystem());
    addRequiredSystem(new org.eclipse.persistence.testing.tests.queries.options.QueryOptionSystem());
    addRequiredSystem(new org.eclipse.persistence.testing.models.bigbad.BigBadSystem());
    addRequiredSystem(new org.eclipse.persistence.testing.models.vehicle.VehicleSystem());
    // Force field names to upper case for custom SQL tests on postgres.
    if (getSession().getPlatform().isPostgreSQL()) {
        getSession().getPlatform().setShouldForceFieldNamesToUpperCase(true);
    }
}
Also used : ProjectSystem(org.eclipse.persistence.testing.models.multipletable.ProjectSystem) InheritanceSystem(org.eclipse.persistence.testing.models.inheritance.InheritanceSystem) org.eclipse.persistence.testing.tests.queries.options(org.eclipse.persistence.testing.tests.queries.options) InsuranceSystem(org.eclipse.persistence.testing.models.insurance.InsuranceSystem) EventHookSystem(org.eclipse.persistence.testing.models.events.EventHookSystem) EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Example 4 with InsuranceSystem

use of org.eclipse.persistence.testing.models.insurance.InsuranceSystem in project eclipselink by eclipse-ee4j.

the class CommitOrderTest method test.

@Override
public void test() {
    getSession().getProject().setDescriptors(new HashMap<>());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new EmployeeSystem().addDescriptors(getDatabaseSession());
    orderAResults = getCommitOrderListAsString(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getProject().setDescriptors(new HashMap<>());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new InsuranceSystem().addDescriptors(getDatabaseSession());
    orderBResults = getCommitOrderListAsString(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getProject().setDescriptors(new HashMap<>());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new OwnershipSystem().addDescriptors(getDatabaseSession());
    orderCResults = getCommitOrderListAsString(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getProject().setDescriptors(new HashMap<>());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new InheritanceSystem().addDescriptors(getDatabaseSession());
    orderDResults = getCommitOrderListAsString(getAbstractSession().getCommitManager().getCommitOrder());
}
Also used : InsuranceSystem(org.eclipse.persistence.testing.models.insurance.InsuranceSystem) OwnershipSystem(org.eclipse.persistence.testing.models.ownership.OwnershipSystem) DatabaseSession(org.eclipse.persistence.sessions.DatabaseSession) InheritanceSystem(org.eclipse.persistence.testing.models.inheritance.InheritanceSystem) EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Example 5 with InsuranceSystem

use of org.eclipse.persistence.testing.models.insurance.InsuranceSystem in project eclipselink by eclipse-ee4j.

the class CommitOrderTest method test.

@Override
public void test() {
    getSession().setLogLevel(SessionLog.FINE);
    getSession().getIdentityMapAccessor().initializeIdentityMaps();
    getSession().getProject().setDescriptors(new Hashtable());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new EmployeeSystem().addDescriptors(getDatabaseSession());
    printClasses(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getIdentityMapAccessor().initializeIdentityMaps();
    getSession().getProject().setDescriptors(new Hashtable());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new InsuranceSystem().addDescriptors(getDatabaseSession());
    printClasses(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getIdentityMapAccessor().initializeIdentityMaps();
    getSession().getProject().setDescriptors(new Hashtable());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new org.eclipse.persistence.testing.models.ownership.OwnershipSystem().addDescriptors(getDatabaseSession());
    printClasses(getAbstractSession().getCommitManager().getCommitOrder());
    getSession().getIdentityMapAccessor().initializeIdentityMaps();
    getSession().getProject().setDescriptors(new Hashtable());
    ((DatabaseSession) getSession()).logout();
    ((DatabaseSession) getSession()).login();
    new InheritanceSystem().addDescriptors(getDatabaseSession());
    printClasses(getAbstractSession().getCommitManager().getCommitOrder());
}
Also used : InsuranceSystem(org.eclipse.persistence.testing.models.insurance.InsuranceSystem) InheritanceSystem(org.eclipse.persistence.testing.models.inheritance.InheritanceSystem) EmployeeSystem(org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)

Aggregations

EmployeeSystem (org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem)7 InsuranceSystem (org.eclipse.persistence.testing.models.insurance.InsuranceSystem)7 InheritanceSystem (org.eclipse.persistence.testing.models.inheritance.InheritanceSystem)6 OwnershipSystem (org.eclipse.persistence.testing.models.ownership.OwnershipSystem)2 IndirectListSystem (org.eclipse.persistence.testing.models.transparentindirection.IndirectListSystem)2 org.eclipse.persistence.testing.tests.unitofwork (org.eclipse.persistence.testing.tests.unitofwork)2 DatabaseSession (org.eclipse.persistence.sessions.DatabaseSession)1 TestWarningException (org.eclipse.persistence.testing.framework.TestWarningException)1 EventHookSystem (org.eclipse.persistence.testing.models.events.EventHookSystem)1 MappingSystem (org.eclipse.persistence.testing.models.mapping.MappingSystem)1 ProjectSystem (org.eclipse.persistence.testing.models.multipletable.ProjectSystem)1 ReadOnlySystem (org.eclipse.persistence.testing.models.readonly.ReadOnlySystem)1 org.eclipse.persistence.testing.tests.queries.options (org.eclipse.persistence.testing.tests.queries.options)1