Package net.gouline.riskybusiness

Examples of net.gouline.riskybusiness.RiskEvaluator.evaluate()


    RiskEvaluator riskEvaluator = new RiskEvaluator();

    InputStreamReader settleReader = new InputStreamReader(getClass().getResourceAsStream("/Settled.csv"));
    InputStreamReader unsettledReader = new InputStreamReader(getClass().getResourceAsStream("/Unsettled.csv"));

    List<UnsettledBet> unsettledBets = riskEvaluator.evaluate(settleReader, unsettledReader);

    assertTrue(unsettledBets.get(0).getRisks().containsKey(RiskEvaluator.RiskType.SUCCESS_RATE));

    assertTrue(unsettledBets.get(2).getRisks().containsKey(RiskEvaluator.RiskType.STAKE_AMOUNT));
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.