Examples of SqlIntegrationTestFixtures


Examples of org.apache.isis.objectstore.sql.common.SqlIntegrationTestFixtures

     * The Isis framework will be again be re-created in the next test unless the
     * object store is "in-memory" (this is required since "in-memory" has to be
     * left alone for created data to still be present in the next test).
     */
    public void test2SetupDataWithDatabaseConnection() throws Exception {
        final SqlIntegrationTestFixtures sqlIntegrationTestFixtures = getSqlIntegrationTestFixtures();
        sqlIntegrationTestFixtures.dropTable("ISIS_SELFREFERENCINGENTITY");
        sqlIntegrationTestFixtures.dropTable("ISIS_STRINGABLEENTITYWITHOWNPROPERTY");
        sqlIntegrationTestFixtures.dropTable("ISIS_STRINGABLEENTITYWITHOWNPROPERTIES");
        sqlIntegrationTestFixtures.dropTable("ISIS_STRINGBASEENTITYSUB");
        sqlIntegrationTestFixtures.dropTable("ISIS_STRINGBASEENTITYSUBTWO");
        sqlIntegrationTestFixtures.dropTable("ISIS_STRINGBASEENTITYSUBTHREE");
        sqlIntegrationTestFixtures.dropTable("ISIS_REFERENCINGPOLYTYPESENTITY");
        sqlIntegrationTestFixtures.dropTable("ISIS_STRINGBASEENTITY");
        sqlIntegrationTestFixtures.dropTable("ISIS_STRINGABLE");

        final ReferencingPolyTypesEntity referencingPolyTypesEntity = factory.newPolyTestClass();
        referencingPolyTypesEntity.setString("polyTestClassString");

        // Setup self-referencing collection
View Full Code Here

Examples of org.apache.isis.objectstore.sql.common.SqlIntegrationTestFixtures

        Files.deleteFilesWithPrefix("hsql-db", "tests", Recursion.DONT_RECURSE);
    }

    @Override
    protected void testCreate() throws Exception {
        final SqlIntegrationTestFixtures sqlIntegrationTestFixtures = getSqlIntegrationTestFixtures();
        for (final String tableName : Data.getTableNames()) {
            sqlIntegrationTestFixtures.dropTable(tableName);
        }
        super.testCreate();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.