Package hydra.testing

Class TestCaseWithMetadata

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TestCaseWithMetadata>

    public class TestCaseWithMetadata
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<TestCaseWithMetadata>
    A test case together with metadata
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.testing.TestCaseWithMetadata type.
      • NAME

        public static final Name NAME
        Name of the hydra.testing.TestCaseWithMetadata.name field.
      • CASE

        public static final Name CASE
        Name of the hydra.testing.TestCaseWithMetadata.case field.
      • DESCRIPTION

        public static final Name DESCRIPTION
        Name of the hydra.testing.TestCaseWithMetadata.description field.
      • TAGS

        public static final Name TAGS
        Name of the hydra.testing.TestCaseWithMetadata.tags field.
      • name

        public final java.lang.String name
        A short name for the test case
      • case_

        public final TestCase case_
        The test case itself
      • description

        public final Optional<java.lang.String> description
        An optional longer description of the test case
      • tags

        public final java.util.List<Tag> tags
        Zero or more tags for the test case
    • Constructor Detail

      • TestCaseWithMetadata

        public TestCaseWithMetadata​(java.lang.String name,
                                    TestCase case_,
                                    Optional<java.lang.String> description,
                                    java.util.List<Tag> tags)
        Constructs an immutable TestCaseWithMetadata.
        Parameters:
        name - A short name for the test case
        case_ - The test case itself
        description - An optional longer description of the test case
        tags - Zero or more tags for the test case