Package org.encuestame.utils.web

Examples of org.encuestame.utils.web.GadgetBean


    /**
     * Test {@link GadgetBean}.
     */
    @Test
    public void testGadgetBean(){
        final GadgetBean myGadgetBean = new GadgetBean();
        myGadgetBean.setGadgetId(1L);
        myGadgetBean.setStatus(Boolean.TRUE);
        myGadgetBean.setGadgetPosition(2);
        myGadgetBean.setGadgetName("Activity gadget");
        myGadgetBean.setGadgetColumn(2);
        myGadgetBean.setGadgetColor("#FFFF");
        myGadgetBean.getDashboard().add(this.myDashboardBean);
        assertNotNull(myGadgetBean);
        assertNotNull(myGadgetBean.getGadgetColor());
        assertNotNull(myGadgetBean.getGadgetName());
        assertNotNull(myGadgetBean.getDashboard());
        assertNotNull(myGadgetBean.getGadgetColumn());
        assertNotNull(myGadgetBean.getGadgetId());
        assertNotNull(myGadgetBean.getGadgetPosition());
        assertNotNull(myGadgetBean.getStatus());
    }
View Full Code Here


     *
     * @param gadget
     * @return
     */
    public static final GadgetBean convertGadgetDomaintoBean(final Gadget gadget) {
        final GadgetBean gadgetBean = new GadgetBean();
        gadgetBean.setGadgetId(gadget.getGadgetId());
        gadgetBean.setGadgetName(gadget.getGadgetName());
        gadgetBean.setGadgetColor(gadget.getGadgetColor());
        gadgetBean.setGadgetColumn(gadget.getGadgetColumn());
        gadgetBean.setGadgetPosition(gadget.getGadgetPosition());
        gadgetBean.setStatus(gadget.getStatus());
        return gadgetBean;
    }
View Full Code Here

TOP

Related Classes of org.encuestame.utils.web.GadgetBean

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.