public class

MaxHistory

extends Object
implements Serializable
java.lang.Object
   ↳ org.junit.experimental.max.MaxHistory

Class Overview

Stores a subset of the history of each test:

  • Last failure timestamp
  • Duration of last execution

Summary

Public Methods
static MaxHistory forFolder(File file)
Loads a MaxHistory from file, or generates a new one that will be saved to file.
RunListener listener()
Comparator<Description> testComparator()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static MaxHistory forFolder (File file)

Loads a MaxHistory from file, or generates a new one that will be saved to file.

public RunListener listener ()

Returns
  • a listener that will update this history based on the test results reported.

public Comparator<Description> testComparator ()

Returns
  • a comparator that ranks tests based on the JUnit Max sorting rules, as described in the MaxCore class comment.