Package com.arcmind.jsfquickstart.model

Examples of com.arcmind.jsfquickstart.model.Calculator


    assertEquals("mathError", outcome);
  }

  @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

Related Classes of com.arcmind.jsfquickstart.model.Calculator

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.