Package org.jboss.dna.common.jdbc.model.api

Examples of org.jboss.dna.common.jdbc.model.api.Column


    }

    public void testAddColumn() {
        String COLUMN_NAME = "My column";
        // create column
        Column column = new DefaultModelFactory().createTableColumn();
        // set name
        column.setName(COLUMN_NAME);
        // add column
        bean.addColumn(column);
        // check
        assertFalse("Column set should not be empty", bean.getColumns().isEmpty());
    }
View Full Code Here


    }

    public void testDeleteColumn() {
        String COLUMN_NAME = "My column";
        // create column
        Column column = new DefaultModelFactory().createTableColumn();
        // set name
        column.setName(COLUMN_NAME);
        // add column
        bean.addColumn(column);
        // check
        assertFalse("Column set should not be empty", bean.getColumns().isEmpty());
View Full Code Here

    }

    public void testFindColumnByName() {
        String COLUMN_NAME = "My column";
        // create column
        Column column = new DefaultModelFactory().createTableColumn();
        // set name
        column.setName(COLUMN_NAME);
        // add column
        bean.addColumn(column);
        // check
        assertSame("Unable to find column", column, bean.findColumnByName(COLUMN_NAME));
    }
View Full Code Here

TOP

Related Classes of org.jboss.dna.common.jdbc.model.api.Column

Copyright © 2018 www.massapicom. 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.