Search in sources :

Example 1 with AdvancedTableCreator

use of org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator in project eclipselink by eclipse-ee4j.

the class AdvancedCompositePKJunitTest method testSetup.

/**
 * The setup is done as a test, both to record its failure, and to allow execution in the server.
 */
public void testSetup() {
    new CompositePKTableCreator().replaceTables(JUnitTestCase.getServerSession());
    new AdvancedTableCreator().replaceTables(JUnitTestCase.getServerSession());
    clearCache();
}
Also used : CompositePKTableCreator(org.eclipse.persistence.testing.models.jpa.advanced.compositepk.CompositePKTableCreator) AdvancedTableCreator(org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator)

Example 2 with AdvancedTableCreator

use of org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator in project eclipselink by eclipse-ee4j.

the class NamedQueryJUnitTest method testSetup.

/**
 * Initial setup is done as first test in collection, both to record its failure, and to allow execution in the server.
 */
public void testSetup() {
    System.out.println("testSetup");
    new AdvancedTableCreator().replaceTables(getServerSession(PUName));
    clearCache(PUName);
}
Also used : AdvancedTableCreator(org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator)

Example 3 with AdvancedTableCreator

use of org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator in project eclipselink by eclipse-ee4j.

the class ReportQueryConstructorExpressionTestSuite method testSetup.

/**
 * The setup is done as a test, both to record its failure, and to allow execution in the server.
 */
public void testSetup() {
    new AdvancedTableCreator().replaceTables(JUnitTestCase.getServerSession());
    // create a new EmployeePopulator
    EmployeePopulator employeePopulator = new EmployeePopulator();
    // Populate the tables
    employeePopulator.buildExamples();
    // Persist the examples in the database
    employeePopulator.persistExample(JUnitTestCase.getServerSession());
    clearCache();
}
Also used : AdvancedTableCreator(org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator) EmployeePopulator(org.eclipse.persistence.testing.models.jpa.advanced.EmployeePopulator)

Example 4 with AdvancedTableCreator

use of org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator in project eclipselink by eclipse-ee4j.

the class SQLResultSetMappingTestSuite method testSetup.

/**
 * The setup is done as a test, both to record its failure, and to allow execution in the server.
 */
public void testSetup() {
    new AdvancedTableCreator().replaceTables(JUnitTestCase.getServerSession());
    EmployeePopulator employeePopulator = new EmployeePopulator();
    employeePopulator.buildExamples();
    // Persist the examples in the database
    employeePopulator.persistExample(getServerSession());
    clearCache();
}
Also used : AdvancedTableCreator(org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator) EmployeePopulator(org.eclipse.persistence.testing.models.jpa.advanced.EmployeePopulator)

Example 5 with AdvancedTableCreator

use of org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator in project eclipselink by eclipse-ee4j.

the class OptimisticLockForceIncrementTestSuite method testSetup.

public void testSetup() {
    new AdvancedTableCreator().replaceTables(JUnitTestCase.getServerSession());
    EmployeePopulator employeePopulator = new EmployeePopulator();
    employeePopulator.buildExamples();
    employeePopulator.persistExample(JUnitTestCase.getServerSession());
    clearCache();
}
Also used : AdvancedTableCreator(org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator) EmployeePopulator(org.eclipse.persistence.testing.models.jpa.advanced.EmployeePopulator)

Aggregations

AdvancedTableCreator (org.eclipse.persistence.testing.models.jpa.advanced.AdvancedTableCreator)36 EmployeePopulator (org.eclipse.persistence.testing.models.jpa.advanced.EmployeePopulator)21 DatabaseSession (org.eclipse.persistence.sessions.DatabaseSession)14 ServerSession (org.eclipse.persistence.sessions.server.ServerSession)5 CompositePKTableCreator (org.eclipse.persistence.testing.models.jpa.advanced.compositepk.CompositePKTableCreator)5 InheritanceTableCreator (org.eclipse.persistence.testing.models.jpa.inheritance.InheritanceTableCreator)5 InheritedTableManager (org.eclipse.persistence.testing.models.jpa.inherited.InheritedTableManager)4 ClassDescriptor (org.eclipse.persistence.descriptors.ClassDescriptor)3 RelationshipsExamples (org.eclipse.persistence.testing.models.jpa.relationships.RelationshipsExamples)3 RelationshipsTableManager (org.eclipse.persistence.testing.models.jpa.relationships.RelationshipsTableManager)3 JUnitDomainObjectComparer (org.eclipse.persistence.testing.tests.jpa.jpql.JUnitDomainObjectComparer)3 InheritancePopulator (org.eclipse.persistence.testing.models.jpa.inheritance.InheritancePopulator)2 SchemaManager (org.eclipse.persistence.tools.schemaframework.SchemaManager)2 EntityManagerFactory (jakarta.persistence.EntityManagerFactory)1 Properties (java.util.Properties)1 EntityManagerProperties (org.eclipse.persistence.config.EntityManagerProperties)1 PersistenceUnitProperties (org.eclipse.persistence.config.PersistenceUnitProperties)1 DatabaseSessionImpl (org.eclipse.persistence.internal.sessions.DatabaseSessionImpl)1 DatabaseLogin (org.eclipse.persistence.sessions.DatabaseLogin)1 PartnerLinkPopulator (org.eclipse.persistence.testing.models.jpa.advanced.PartnerLinkPopulator)1