Examples of DefaultModelFactory


Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

        assertSame("Unable to find column", column, bean.findColumnByName(COLUMN_NAME));
    }

    public void testSetSourceTable() {
        // create
        Table sourceTable = new DefaultModelFactory().createTable();
        // set
        bean.setSourceTable(sourceTable);
        // check
        assertSame("Unable to set source table", sourceTable, bean.getSourceTable());
    }
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

        assertSame("Unable to set source table", sourceTable, bean.getSourceTable());
    }

    public void testSetSourcePrimaryKey() {
        // create
        PrimaryKey primaryKey = new DefaultModelFactory().createPrimaryKey();
        // set
        bean.setSourcePrimaryKey(primaryKey);
        // check
        assertSame("Unable to set source primary key", primaryKey, bean.getSourcePrimaryKey());
    }
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

        // check
        assertSame("Unable to set column pseudo type", ColumnPseudoType.NOT_PSEUDO, bean.getPseudoType());
    }

    public void testSetReference() {
        Reference reference = new DefaultModelFactory().createReference();
        // set
        bean.setReference(reference);
        // check
        assertSame("Unable to set reference", reference, bean.getReference());
    }
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        // create
        bean = new DatabaseBean();
        factory = new DefaultModelFactory();
    }
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

        assertTrue(set.isEmpty());
    }

    public void testAddSqlTypeConversionPair() {
        // create
        SqlTypeConversionPair object = new DefaultModelFactory().createSqlTypeConversionPair();
        // set
        object.setSrcType(SqlType.INTEGER);
        object.setDestType(SqlType.VARCHAR);

        // add
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

        assertFalse(bean.getSupportedConversions().isEmpty());
    }

    public void testDeleteSqlTypeConversionPair() {
        // create
        SqlTypeConversionPair object = new DefaultModelFactory().createSqlTypeConversionPair();
        // set
        object.setSrcType(SqlType.INTEGER);
        object.setDestType(SqlType.VARCHAR);

        // add
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

        assertTrue(bean.getSupportedConversions().isEmpty());
    }

    public void testFindSqlTypeConversionPair() {
        // create
        SqlTypeConversionPair object = new DefaultModelFactory().createSqlTypeConversionPair();
        // set
        object.setSrcType(SqlType.INTEGER);
        object.setDestType(SqlType.VARCHAR);

        // add
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

    }

    public void testAddStoredProcedure() {
        String NAME = "My Name";
        // create
        StoredProcedure object = new DefaultModelFactory().createStoredProcedure();
        // set
        object.setName(NAME);
        // add
        bean.addStoredProcedure(object);
        // check
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

    }

    public void testDeleteStoredProcedure() {
        String NAME = "My Name";
        // create
        StoredProcedure object = new DefaultModelFactory().createStoredProcedure();
        // set
        object.setName(NAME);
        // add
        bean.addStoredProcedure(object);
        // check
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.DefaultModelFactory

    }

    public void testFindStoredProcedureByName() {
        String NAME = "My Name";
        // create
        StoredProcedure object = new DefaultModelFactory().createStoredProcedure();
        // set
        object.setName(NAME);
        // add
        bean.addStoredProcedure(object);
        // check
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.