Examples of AwardTypeVo


Examples of org.sete.vo.project.AwardTypeVo

                       
            //execute the code to be tested
            ata.createAwardType(am, catf, req, res);
           
            //and check the execution result
            final AwardTypeVo atVo = ata.getSavedAwardTypeVo();
            assertTrue( "AwardType_Type".equals( atVo.getType() ) );
            assertTrue( "AwardType_Description".equals( atVo.getDescription() ) );
        }
       
        //execute the failure test!!!
        {   //prepare the form data with invalid type
            final CreateAwardTypeForm catf = new CreateAwardTypeForm();
View Full Code Here

Examples of org.sete.vo.project.AwardTypeVo

                       
            //execute the code to be tested
            ata.editAwardType(am, catf, req, res);
           
            //and check the execution result
            final AwardTypeVo atVo = ata.getSavedAwardTypeVo();
            assertTrue( "AwardType_Type".equals( atVo.getType() ) );
            assertTrue( "AwardType_Description".equals( atVo.getDescription() ) );
        }
    }
View Full Code Here

Examples of org.sete.vo.project.AwardTypeVo

                       
            //execute the code to be tested
            ata.deleteAwardType(am, catf, req, res);
           
            //and check the execution result
            final AwardTypeVo atVo = ata.getSavedAwardTypeVo();
            assertTrue( "AwardType_Type".equals( atVo.getType() ) );
        }
       
        //execute the failure delete!!!
        EasyMock.reset( req );
        EasyMock.expect( req.getSession() ).andReturn( ses ).anyTimes();
View Full Code Here

Examples of org.sete.vo.project.AwardTypeVo

            if( null == awardType || awardType.length() <= 0 )
            {
                throw new IllegalArgumentException();
            }
           
            savedAwardTypeVo = new AwardTypeVo();
            savedAwardTypeVo.setType( awardType );
        }       
View Full Code Here

Examples of org.sete.vo.project.AwardTypeVo

                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
       
        checkAuthorization(userHasPrivilege(request.getSession(), vo));
       
        //prepare the data for saving
        final AwardTypeVo atVo = new AwardTypeVo();
        {
            atVo.setType( ((CreateAwardTypeForm)form).getType() );
            atVo.setDescription( ((CreateAwardTypeForm)form).getDescription() );
        }
       
        //and save it
        try
        {
            saveNewAwardType(atVo);
        }
        catch(final Exception excp)
        {
            final BusinessRuleException bre = new BusinessRuleException();
            bre.addCodedMessage("awardType.createError", new String[]{atVo.getType()});
           
            throw bre;
        }
       
        return mapping.findForward(WebConstants.FORWARD_VIEW);
View Full Code Here

Examples of org.sete.vo.project.AwardTypeVo

                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
       
        checkAuthorization(userHasPrivilege(request.getSession(), vo));
       
        //prepare the vo object
        final AwardTypeVo atVo = new AwardTypeVo();
        atVo.setType( ((CreateAwardTypeForm)form).getType() );
        atVo.setDescription( ((CreateAwardTypeForm)form).getDescription() );
       
        //and save it
        saveModifiedAwardType(atVo);
       
        return mapping.findForward(WebConstants.FORWARD_VIEW);
View Full Code Here

Examples of org.sete.vo.project.AwardTypeVo

                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
       
        checkAuthorization(userHasPrivilege(request.getSession(), vo));
       
        //prepare the data for saving
        final AwardTypeVo atVo = new AwardTypeVo();
        {
            atVo.setType( ((CreateAwardTypeForm)form).getType() );
            atVo.setDescription( ((CreateAwardTypeForm)form).getDescription() );
        }
       
        //and save it
        try
        {
            saveNewAwardType(atVo);
        }
        catch(final Exception excp)
        {
            final BusinessRuleException bre = new BusinessRuleException();
            bre.addCodedMessage("awardType.createError", new String[]{atVo.getType()});
           
            throw bre;
        }
       
        return mapping.findForward("view");
View Full Code Here

Examples of org.sete.vo.project.AwardTypeVo

                                         PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
       
        checkAuthorization(userHasPrivilege(request.getSession(), vo));
       
        //prepare the vo object
        final AwardTypeVo atVo = new AwardTypeVo();
        atVo.setType( ((CreateAwardTypeForm)form).getType() );
        atVo.setDescription( ((CreateAwardTypeForm)form).getDescription() );
       
        //and save it
        saveModifiedAwardType(atVo);
       
        return mapping.findForward("view");
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.