Package com.arcmind.jsfquickstart.model

Examples of com.arcmind.jsfquickstart.model.Calculator.divide()


  @Test()
  public void testRandomException() {
    Calculator mockCalc = EasyMock.createMock(Calculator.class);
   
    EasyMock.expect(mockCalc.divide(10, 10)).andThrow(new RuntimeException("random error"));
    EasyMock.replay(mockCalc);
    calcController.setCalculator(mockCalc);
   

    calcController.setFirstNumber(10);
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.