Class Computer

  • Direct Known Subclasses:
    ParallelComputer

    public class Computer
    extends java.lang.Object
    Represents a strategy for computing runners and suites. WARNING: this class is very likely to undergo serious changes in version 4.8 and beyond.
    Since:
    4.6
    • Constructor Summary

      Constructors 
      Constructor Description
      Computer()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Runner getRunner​(RunnerBuilder builder, java.lang.Class<?> testClass)
      Create a single-class runner for testClass, using builder
      Runner getSuite​(RunnerBuilder builder, java.lang.Class<?>[] classes)
      Create a suite for classes, building Runners with builder.
      static Computer serial()
      Returns a new default computer, which runs tests in serial order
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • serial

        public static Computer serial()
        Returns a new default computer, which runs tests in serial order
      • getRunner

        protected Runner getRunner​(RunnerBuilder builder,
                                   java.lang.Class<?> testClass)
                            throws java.lang.Throwable
        Create a single-class runner for testClass, using builder
        Throws:
        java.lang.Throwable