Annotation Type CitrusTestSource


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface CitrusTestSource
    Citrus test case annotation used for Groovy test case definition inside a unit test class. Each method annotated with this annotation will result in a separate test execution.
    Author:
    Christoph Deppisch
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String type
      Test source type required - defines how source is loaded (e.g. as Groovy script, XML file or Spring bean definition
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String[] name
      Test name optional - by default method name is used as test name
      String packageName
      Test package name optional - by default package of declaring test class is used
      String[] packageScan
      Test packages to scan optional - for loading all external test case definitions (e.g.
      String[] sources
      Test source file optional - fully qualified test source file path
    • Element Detail

      • type

        String type
        Test source type required - defines how source is loaded (e.g. as Groovy script, XML file or Spring bean definition
      • name

        String[] name
        Test name optional - by default method name is used as test name
        Default:
        {}
      • packageName

        String packageName
        Test package name optional - by default package of declaring test class is used
        Default:
        ""
      • packageScan

        String[] packageScan
        Test packages to scan optional - for loading all external test case definitions (e.g. Groovy, Xml)
        Default:
        {}
      • sources

        String[] sources
        Test source file optional - fully qualified test source file path
        Default:
        {}