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());
}
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());
}
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);
}
}
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());
}
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());
}
Aggregations