Class RoundRobinBalancer

java.lang.Object
com.carrotsearch.ant.tasks.junit4.balancers.RoundRobinBalancer
All Implemented Interfaces:
SuiteBalancer

public class RoundRobinBalancer extends Object implements SuiteBalancer
A round-robin suite balancer (default for non-assigned suites).
  • Constructor Details

    • RoundRobinBalancer

      public RoundRobinBalancer()
  • Method Details

    • assign

      public List<SuiteBalancer.Assignment> assign(Collection<String> suiteNames, int slaves, long seed)
      Description copied from interface: SuiteBalancer
      Provide assignments for suite names and a given number of slaves.
      Specified by:
      assign in interface SuiteBalancer
      Returns:
      Returns an ordered list with assignments. Any suite name not present in the keys of the returned map will be assigned by following balancers (or randomly).
    • setOwner

      public void setOwner(JUnit4 owner)
      Description copied from interface: SuiteBalancer
      Sets the owner task (for logging mostly).
      Specified by:
      setOwner in interface SuiteBalancer