Stats implements GazeMotionListener { public void incrementNumberOfGoalsToReach() { nbGoalsToReach++; currentRoundStartTime = System.currentTimeMillis(); log.debug("The number of goals is " + nbGoalsToReach + "and the number shots is " + nbGoalsReached); } Stats(final Scene gameContextScene);  Stats(final Scene gameContextScene, final String gameName); ArrayList<TargetAOI> getTargetAOIList(); void setTargetAOIList(final ArrayList<TargetAOI> targetAOIList); void notifyNewRoundReady(); void notifyNextRound(); void startVideoRecording(); void endVideoRecording(); void start(); List<CoordinatesTracker> getMovementHistoryWithTime(); void reset(); void stop(); @Override void gazeMoved(final javafx.geometry.Point2D position); Graphics initGazeMetricsImage(BufferedImage bImage, BufferedImage screenshotImage); SavedStatsInfo saveStats(); long computeRoundsDurationAverageDuration(); long getStartTime(); long computeRoundsDurationMedianDuration(); long getRoundsTotalAdditiveDuration(); long computeTotalElapsedDuration(); double computeRoundsDurationVariance(); double computeRoundsDurationStandardDeviation(); void incrementNumberOfGoalsToReach(); void incrementNumberOfGoalsToReach(int i); void incrementNumberOfGoalsReached(); void addRoundDuration(); int getShotRatio(); List<Long> getSortedDurationsBetweenGoals(); List<Long> getOriginalDurationsBetweenGoals(); String getDirectoryOfVideo(); void takeScreenShot(); final Scene gameContextScene; @Getter
    public int nbGoalsReached; }
@Test void shouldIncrementNumberOfGoalsToReachByOne() { int initial = stats.getNbGoalsToReach(); stats.incrementNumberOfGoalsToReach(); int result = stats.getNbGoalsToReach(); assertEquals(initial + 1, result); }
@Test void shouldIncrementNumberOfGoalsToReachByAmount() { int initial = stats.getNbGoalsToReach(); stats.incrementNumberOfGoalsToReach(5); int result = stats.getNbGoalsToReach(); assertEquals(initial + 5, result); }