use of org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem in project eclipselink by eclipse-ee4j.
the class SimultaneousTestsModel method addRequiredSystems.
@Override
public void addRequiredSystems() {
addRequiredSystem(new EmployeeSystem());
addRequiredSystem(new EventHookSystem());
addRequiredSystem(new UOWSystem());
}
use of org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem in project eclipselink by eclipse-ee4j.
the class DbChangeNotificationInternalTestModel method addRequiredSystems.
@Override
public void addRequiredSystems() {
setupUser();
addRequiredSystem(new TestSystemAdapted(new EmployeeSystem(), new DbChangeNotificationAdapter(queueName, queueTableName, useMultipleConsumers)));
}
use of org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem in project eclipselink by eclipse-ee4j.
the class UnitOfWorkTransactionIsolationTestModel method addRequiredSystems.
@Override
public void addRequiredSystems() {
addRequiredSystem(new EmployeeSystem());
addRequiredSystem(new InsuranceSystem());
}
use of org.eclipse.persistence.testing.models.employee.relational.EmployeeSystem 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.employee.relational.EmployeeSystem 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