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 class
private class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MaxHistory
(package private) Long
(package private) Long
(package private) boolean
isNewTest
(Description key) listener()
(package private) void
putTestDuration
(Description description, long duration) (package private) void
putTestFailureTimestamp
(Description key, long end) private static MaxHistory
readHistory
(File storedResults) private void
save()
-
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
MaxCore
class comment.
-