Package com.vst.model

Examples of com.vst.model.Strength


    public void setStrengthDao(StrengthDao dao) {
        this.dao = dao;
    }

    public void testAddStrength() throws Exception {
        Strength strength = new Strength();

        // set required fields

        dao.saveStrength(strength);

        // verify a primary key was assigned
        assertNotNull(strength.getPointId());

        // verify set fields are same after save
    }
View Full Code Here


        // verify set fields are same after save
    }

    public void testGetStrength() throws Exception {
        Strength strength = dao.getStrength(strengthId);
        assertNotNull(strength);
    }
View Full Code Here

        Strength strength = dao.getStrength(strengthId);
        assertNotNull(strength);
    }

    public void testGetStrengths() throws Exception {
        Strength strength = new Strength();

        List results = dao.getStrengths(strength);
        assertTrue(results.size() > 0);
    }
View Full Code Here

        List results = dao.getStrengths(strength);
        assertTrue(results.size() > 0);
    }

    public void testSaveStrength() throws Exception {
        Strength strength = dao.getStrength(strengthId);

        // update required fields

        dao.saveStrength(strength);
View Full Code Here

    /**
     * @see com.vst.dao.StrengthDao#removeStrength(Integer pointId)
     */
    public void removeStrength(final Integer pointId) {
        Strength strength=getStrength(pointId);
        removeEntity(strength);
        super.getSession().createQuery("update Strength set pointPosition=pointPosition-1 where exampleId=? AND pointPosition>?").setString(0,String.valueOf(strength.getExampleId())).setString(1,String.valueOf(strength.getPointPosition())).executeUpdate();
    }
View Full Code Here

TOP

Related Classes of com.vst.model.Strength

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.