Class DefaultTestFinishEvent
- java.lang.Object
-
- org.gradle.tooling.events.internal.DefaultFinishEvent
-
- org.gradle.tooling.events.test.internal.DefaultTestFinishEvent
-
- All Implemented Interfaces:
FinishEvent,ProgressEvent,TestFinishEvent,TestProgressEvent
public final class DefaultTestFinishEvent extends DefaultFinishEvent implements TestFinishEvent
Implementation of theTestFinishEventinterface.
-
-
Constructor Summary
Constructors Constructor Description DefaultTestFinishEvent(long eventTime, java.lang.String displayName, TestOperationDescriptor descriptor, TestOperationResult result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestOperationDescriptorgetDescriptor()Returns the description of the operation for which progress is reported.java.lang.StringgetDisplayName()Returns a human consumable short description of the event.longgetEventTime()Returns the time this event was triggered.TestOperationResultgetResult()Returns the result of the finished operation.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gradle.tooling.events.ProgressEvent
getDisplayName, getEventTime
-
-
-
-
Constructor Detail
-
DefaultTestFinishEvent
public DefaultTestFinishEvent(long eventTime, java.lang.String displayName, TestOperationDescriptor descriptor, TestOperationResult result)
-
-
Method Detail
-
getDescriptor
public TestOperationDescriptor getDescriptor()
Description copied from interface:ProgressEventReturns the description of the operation for which progress is reported.- Specified by:
getDescriptorin interfaceProgressEvent- Specified by:
getDescriptorin interfaceTestProgressEvent- Returns:
- The description of the operation.
-
getResult
public TestOperationResult getResult()
Description copied from interface:FinishEventReturns the result of the finished operation.- Specified by:
getResultin interfaceFinishEvent- Specified by:
getResultin interfaceTestFinishEvent- Overrides:
getResultin classDefaultFinishEvent- Returns:
- the result of the finished operation
-
getEventTime
public long getEventTime()
Description copied from interface:ProgressEventReturns the time this event was triggered.- Specified by:
getEventTimein interfaceProgressEvent- Returns:
- The event time, in milliseconds since the epoch.
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:ProgressEventReturns a human consumable short description of the event.- Specified by:
getDisplayNamein interfaceProgressEvent- Returns:
- The short description of the event.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-