Class ChildrenParam<T>

  • Type Parameters:
    T - The type of the children DSl test elements.

    public class ChildrenParam<T>
    extends MethodParam
    Is a parameter used to specify DSL test element children methods.

    This is usually used in TestElementContainer instances which usually provide a builder method with basic required parameters and children elements (eg: thread groups & controllers).

    Since:
    0.45
    • Constructor Detail

      • ChildrenParam

        public ChildrenParam​(Class<T> childrenClass)
    • Method Detail

      • isDefault

        public boolean isDefault()
        Description copied from class: MethodParam
        Allows checking if a parameter is set to the default value.

        This is usually used in MethodCallBuilder instances to check if a parameter is set or not to some custom value, and some method chaingin is required or not.

        This method may, and is, overwritten by subclasses depending on the semantics of each type of parameter.

        Overrides:
        isDefault in class MethodParam
        Returns:
        true when the value is the default one or not specified (null), false otherwise.
      • getStaticImports

        public Set<String> getStaticImports()
        Description copied from class: MethodParam
        Gets all classes that are required to be imported by generated code.

        Override this method if you implement a custom MethodParam that requires some particular import.

        Overrides:
        getStaticImports in class MethodParam
        Returns:
        the set of required classes names that need to be imported by generated code.
      • getImports

        public Set<String> getImports()
        Description copied from class: MethodParam
        Gets all classes that are required to be statically imported by generated code.

        Override this method if you implement a custom MethodParam that requires some particular static import.

        Overrides:
        getImports in class MethodParam
        Returns:
        the set of required classes names that need to be statically imported by generated code.
      • addChild

        public void addChild​(MethodCall child)
      • prependChild

        public void prependChild​(MethodCall child)