Package ru.testit.services
Class ThreadContext
java.lang.Object
ru.testit.services.ThreadContext
Storage that stores information about not finished tests and steps.
-
Constructor Details
-
ThreadContext
public ThreadContext()
-
-
Method Details
-
getCurrent
Returns last (most recent) uuid.- Returns:
- last uuid.
-
getRoot
Returns first (oldest) uuid.- Returns:
- first uuid.
-
start
Adds new uuid.- Parameters:
uuid- the value
-
stop
Removes latest added uuid. Ignores empty context.- Returns:
- removed uuid.
-
clear
public void clear()Removes all the data stored for current thread.
-