Package org.junit.experimental.max
Class MaxHistory
java.lang.Object
org.junit.experimental.max.MaxHistory
- All Implemented Interfaces:
Serializable
Stores a subset of the history of each test:
- Last failure timestamp
- Duration of last execution
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classprivate class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MaxHistory(package private) Long(package private) Long(package private) booleanisNewTest(Description key) listener()(package private) voidputTestDuration(Description description, long duration) (package private) voidputTestFailureTimestamp(Description key, long end) private static MaxHistoryreadHistory(File storedResults) private voidsave()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
fDurations
-
fFailureTimestamps
-
fHistoryStore
-
-
Constructor Details
-
MaxHistory
-
-
Method Details
-
forFolder
-
readHistory
- Throws:
CouldNotReadCoreException
-
save
- Throws:
IOException
-
getFailureTimestamp
-
putTestFailureTimestamp
-
isNewTest
-
getTestDuration
-
putTestDuration
-
listener
- Returns:
- a listener that will update this history based on the test results reported.
-
testComparator
- Returns:
- a comparator that ranks tests based on the JUnit Max sorting
rules, as described in the
MaxCoreclass comment.
-