Examples of DefaultModelFactory


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

        assertFalse("Attribute set should not be empty", bean.getAttributes().isEmpty());
    }

    public void testDeleteAttribute() {
        String NAME = "My name";
        Attribute a = new DefaultModelFactory().createAttribute();
        // set name
        a.setName(NAME);
        // add
        bean.addAttribute(a);
        // check
View Full Code Here

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

        assertTrue("Attribute set should be empty", bean.getAttributes().isEmpty());
    }

    public void testFindAttributeByName() {
        String NAME = "My name";
        Attribute a = new DefaultModelFactory().createAttribute();
        // set name
        a.setName(NAME);
        // add
        bean.addAttribute(a);
        // check
View Full Code Here

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

        // check
        assertSame("Unable to find attribute", a, bean.findAttributeByName(NAME));
    }

    public void testSetSuperType() {
        UserDefinedType st = new DefaultModelFactory().createUserDefinedType();
        // set
        bean.setSuperType(st);
        // check
        assertSame("Unable to set super type", st, bean.getSuperType());
    }
View Full Code Here

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

    }

    public void testDeleteColumn() {
        String COLUMN_NAME = "My column";
        // create column
        IndexColumn column = new DefaultModelFactory().createIndexColumn();
        // set name
        column.setName(COLUMN_NAME);
        // add column
        bean.addColumn(column);
        // check
View Full Code Here

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

    }

    public void testFindColumnByName() {
        String COLUMN_NAME = "My column";
        // create column
        IndexColumn column = new DefaultModelFactory().createIndexColumn();
        // set name
        column.setName(COLUMN_NAME);
        // add column
        bean.addColumn(column);
        // check
View Full Code Here

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

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

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

        super.tearDown();
    }

    public void testSetOwner() {
        // create table
        Table table = new DefaultModelFactory().createTable();
        // set
        bean.setOwner(table);
        // check
        assertSame("Unable to set owner", table, bean.getOwner());
    }
View Full Code Here

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

    }

    public void testAddPrivilege() {
        String PRIVILEGE_NAME = "SELECT";
        // create
        Privilege privilege = new DefaultModelFactory().createPrivilege();
        // set name
        privilege.setName(PRIVILEGE_NAME);
        // add
        bean.addPrivilege(privilege);
        // check
View Full Code Here

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

    }

    public void testDeletePrivilege() {
        String PRIVILEGE_NAME = "SELECT";
        // create
        Privilege privilege = new DefaultModelFactory().createPrivilege();
        // set name
        privilege.setName(PRIVILEGE_NAME);
        // add
        bean.addPrivilege(privilege);
        // check
View Full Code Here

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

    }

    public void testFindPriviledgeByName() {
        String PRIVILEGE_NAME = "SELECT";
        // create
        Privilege privilege = new DefaultModelFactory().createPrivilege();
        // set name
        privilege.setName(PRIVILEGE_NAME);
        // add
        bean.addPrivilege(privilege);
        // 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.