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 String
AUTO_PREFIX
static String
NUMBER_TYPE
static Set<String>
NUMERIC_TYPES
static String
TEXT_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 TestMetadata
cloneWithAutoName(int autoNameIdx)
TestMetadata
cloneWithName(String newName)
String
describe(boolean verbose)
String
describeValue()
boolean
equals(Object o)
long
getEstimatedSize()
String
getName()
BigDecimal
getNumValue()
String
getTestName()
String
getType()
String
getValue()
int
hashCode()
boolean
hasTestName()
String
toString()
-
-
-
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:
getEstimatedSize
in 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)
-
-