Class TestRunMetadataImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.stat.TestRunMetadataImpl
-
- All Implemented Interfaces:
TestRunMetadata
public class TestRunMetadataImpl extends Object implements TestRunMetadata
Test metadata is a map from String key to some value, where value could be numeric or string- Since:
- 2018.2
- Author:
- kir
-
-
Field Summary
Fields Modifier and Type Field Description static TestRunMetadataImpl
EMPTY
-
Constructor Summary
Constructors Constructor Description TestRunMetadataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestRunMetadata
copyFrom(TestRunMetadata metadata)
boolean
equals(Object o)
Set<String>
getNames()
Double
getNumValue(String name)
String
getType(String name)
String
getValue(String name)
int
hashCode()
-
-
-
Field Detail
-
EMPTY
public static final TestRunMetadataImpl EMPTY
-
-
Method Detail
-
getNames
@NotNull public Set<String> getNames()
- Specified by:
getNames
in interfaceTestRunMetadata
- Returns:
- names of metadata elements
-
getValue
@Nullable public String getValue(@NotNull String name)
- Specified by:
getValue
in interfaceTestRunMetadata
- Returns:
- reported metadata string value, if not reported or numeric value was provided, returns null
-
getNumValue
@Nullable public Double getNumValue(@NotNull String name)
- Specified by:
getNumValue
in interfaceTestRunMetadata
- Returns:
- reported metadata numeric value, if not reported or string value was provided, returns null
-
getType
@NotNull public String getType(@NotNull String name)
- Specified by:
getType
in interfaceTestRunMetadata
- Returns:
- reported metadata type, which is "text" by default for non-numeric types and "number" for numeric ones
- See Also:
jetbrains.buildServer.messages.TestMetadata.NUMBER_TYPE
,jetbrains.buildServer.messages.TestMetadata.TEXT_TYPE
-
copyFrom
public TestRunMetadata copyFrom(TestRunMetadata metadata)
-
-