Package jetbrains.buildServer.messages
Class TestMetadata
- java.lang.Object
-
- jetbrains.buildServer.messages.TestMetadata
-
- All Implemented Interfaces:
Loggable,ObjectSizeEstimate
public class TestMetadata extends Object implements Loggable, ObjectSizeEstimate
- Since:
- 2018.2
- Author:
- kir
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTO_PREFIXstatic StringNUMBER_TYPEstatic Set<String>NUMERIC_TYPESstatic StringTEXT_TYPE
-
Constructor Summary
Constructors Constructor Description TestMetadata(String testName, String name, double numberValue)TestMetadata(String testName, String name, String value)TestMetadata(String testName, String name, String type, String value)TestMetadata(String testName, String name, String type, BigDecimal numberValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestMetadatacloneWithAutoName(int autoNameIdx)TestMetadatacloneWithName(String newName)Stringdescribe(boolean verbose)StringdescribeValue()booleanequals(Object o)longgetEstimatedSize()StringgetName()BigDecimalgetNumValue()StringgetTestName()StringgetType()StringgetValue()inthashCode()booleanhasTestName()StringtoString()
-
-
-
Field Detail
-
NUMBER_TYPE
public static final String NUMBER_TYPE
- See Also:
- Constant Field Values
-
TEXT_TYPE
public static final String TEXT_TYPE
- See Also:
- Constant Field Values
-
AUTO_PREFIX
public static final String AUTO_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TestMetadata
public TestMetadata(@NotNull String testName, @NotNull String name, @NotNull String value)
-
TestMetadata
@TestOnly public TestMetadata(@NotNull String testName, @NotNull String name, double numberValue)
-
TestMetadata
public TestMetadata(@NotNull String testName, @NotNull String name, String type, @NotNull String value)
-
TestMetadata
public TestMetadata(@NotNull String testName, @NotNull String name, @NotNull String type, BigDecimal numberValue)
-
-
Method Detail
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceObjectSizeEstimate- Returns:
- estimated size of this object in bytes
-
getName
@NotNull public String getName()
-
getType
@NotNull public String getType()
-
getValue
@Nullable public String getValue()
-
getNumValue
@Nullable public BigDecimal getNumValue()
-
getTestName
@NotNull public String getTestName()
-
hasTestName
public boolean hasTestName()
-
describeValue
public String describeValue()
-
cloneWithAutoName
public TestMetadata cloneWithAutoName(int autoNameIdx)
-
cloneWithName
public TestMetadata cloneWithName(String newName)
-
describe
@NotNull public String describe(boolean verbose)
-
-