com.atlassian.confluence.testbatching
Class TestWeightCalculator.TestCounter

java.lang.Object
  extended by com.atlassian.confluence.testbatching.TestWeightCalculator.TestCounter
All Implemented Interfaces:
TestWeightCalculator
Enclosing interface:
TestWeightCalculator

public static class TestWeightCalculator.TestCounter
extends java.lang.Object
implements TestWeightCalculator

A simple TestWeightCalculator implementation which uses the number of individual tests in the test class as the weight.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.confluence.testbatching.TestWeightCalculator
TestWeightCalculator.TestCounter
 
Constructor Summary
TestWeightCalculator.TestCounter()
           
 
Method Summary
 long calculateTestWeight(java.lang.Class<?> testClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestWeightCalculator.TestCounter

public TestWeightCalculator.TestCounter()
Method Detail

calculateTestWeight

public long calculateTestWeight(java.lang.Class<?> testClass)
Specified by:
calculateTestWeight in interface TestWeightCalculator
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.