com.atlassian.confluence.testbatching
Interface TestWeightCalculator

All Known Implementing Classes:
JUnitTestTimeWeightCalculator, TestWeightCalculator.TestCounter

public interface TestWeightCalculator

An interface for calculating the "weight" of a test class.


Nested Class Summary
static class TestWeightCalculator.TestCounter
          A simple TestWeightCalculator implementation which uses the number of individual tests in the test class as the weight.
 
Method Summary
 long calculateTestWeight(java.lang.Class<?> testClass)
           
 

Method Detail

calculateTestWeight

long calculateTestWeight(java.lang.Class<?> testClass)
Returns:
the calculated "weight" of the given test class. This is a unit-less quantity, and results can only be compared if they were generated by the same instance of the calculator.


Copyright © 2003-2014 Atlassian. All Rights Reserved.