Package net.sf.jdistunit.platform.core

Examples of net.sf.jdistunit.platform.core.TestActionStatus


    public long getPerformanceAverage() {
        long resultCount = 0;
        long totalDuration = 0;
        for (ITestActionResult result : retrieveTestResultList()) {
            final long duration = result.getActionDuration();
            final TestActionStatus status = result.getActionStatus();
            if (TestActionStatus.FINISHED == status && -1 != duration) {
                resultCount++;
                totalDuration += duration;
            }
        }
View Full Code Here


    @Override
    public long getPerformanceMaximum() {
        long maxDuration = Long.MIN_VALUE;
        for (ITestActionResult result : retrieveTestResultList()) {
            final long duration = result.getActionDuration();
            final TestActionStatus status = result.getActionStatus();
            if (TestActionStatus.FINISHED == status && -1 != duration) {
                maxDuration = Math.max(maxDuration, duration);
            }
        }
        return maxDuration;
View Full Code Here

    @Override
    public long getPerformanceMinimum() {
        long minDuration = Long.MAX_VALUE;
        for (ITestActionResult result : retrieveTestResultList()) {
            final long duration = result.getActionDuration();
            final TestActionStatus status = result.getActionStatus();
            if (TestActionStatus.FINISHED == status && -1 != duration) {
                minDuration = Math.min(minDuration, duration);
            }
        }
        return minDuration;
View Full Code Here

TOP

Related Classes of net.sf.jdistunit.platform.core.TestActionStatus

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.