Class 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
    • Constructor Detail

      • TestRunMetadataImpl

        public TestRunMetadataImpl()
    • Method Detail

      • getValue

        @Nullable
        public String getValue​(@NotNull
                               String name)
        Specified by:
        getValue in interface TestRunMetadata
        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 interface TestRunMetadata
        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 interface TestRunMetadata
        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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object