Package net.sourceforge.align.calculator

Examples of net.sourceforge.align.calculator.Calculator.calculateScore()


  @Test
  public void calculate() {
    List<Calculator> calculatorList = Arrays.asList(new Calculator[] {
        new CalculatorMock(0.5f), new CalculatorMock(0.25f)});
    Calculator calculator = new CompositeCalculator(calculatorList);
    assertEquals(0.75f, calculator.calculateScore(null, null), 0.75f);
  }
 
}
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.