Package it.hotel.controller.pricelist.validation

Examples of it.hotel.controller.pricelist.validation.PriceListValidator


 
  public void testValidate(){
   
    Errors errors = createMock(Errors.class);
     
         PriceListValidator priceListValidator = new PriceListValidator();
        
         expect(errors.getFieldValue("date")).andReturn("35/15/70");
         expect(errors.getFieldValue("price")).andReturn("noPrice");
         expectLastCall().anyTimes();
   
         errors.reject("errors.dateAsStirng.noCorrectFormat","errors.dateAsStirng.noCorrectFormat");
         errors.reject("errors.price.notCorrect","errors.price.notCorrect");
         errors.reject("errors.dateAsStirng.noCorrectFormat","errors.dateAsStirng.noCorrectFormat");
        
        
    replay(errors);
   
    priceListValidator.validate(priceListDTO, errors);
   
    verify(errors);
   
     
  }
View Full Code Here

TOP

Related Classes of it.hotel.controller.pricelist.validation.PriceListValidator

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.