psdi.unittest

Class JUnitTestProperty



  • public class JUnitTestProperty
    extends XMLCommand
    Represents a JUnit test class configured property
    • Constructor Detail

      • JUnitTestProperty

        public JUnitTestProperty(org.jdom2.Element propertyElement,
                                 TestDataSource testDataSource)
                          throws java.lang.Exception
        Parameters:
        propertyElement - the xml element representing the property
        testDataSource - the TestDataSource handle for loading test data
        Throws:
        java.lang.Exception
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the name of the property
      • getLiteralValue

        public java.lang.String getLiteralValue()
        Returns:
        the literal value of the property => the property element text value.
      • getStringValue

        public java.lang.String getStringValue()
        Returns:
        the evaluated value of the property. This can be literal value or a injected or generated value.
      • isRandom

        public boolean isRandom()
        Returns:
        true if property value is randomly generated.
      • getListValue

        public java.util.List getListValue()
        Converts a comma separated list of values to a List
        Returns:
        the property value as a list of strings.