Enum JdutYamlFactory.Event

    • Enum Constant Detail

      • MethodLevel

        public static final JdutYamlFactory.Event MethodLevel
        MethodLevel-level of loading test data. The resource URL would be: classpath:{package}/{classname}-{methodname}.yaml.
      • ClassLevel

        public static final JdutYamlFactory.Event ClassLevel
        Class-level of loading test data. The resource URL would be: classpath:{package}/{classname}.yaml.
    • Method Detail

      • values

        public static JdutYamlFactory.Event[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JdutYamlFactory.Event c : JdutYamlFactory.Event.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JdutYamlFactory.Event valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getTargetElement

        public AnnotatedElement getTargetElement​(org.junit.jupiter.api.extension.ExtensionContext context)
        Retrieves target element(Class or MethodLevel) from ExtensionContext.
        Parameters:
        context - The context provided by JUnit 5
        Returns:
        target element
      • getResourceUrl

        public String getResourceUrl​(org.junit.jupiter.api.extension.ExtensionContext context)
        Retrieves URL for resource(YAML file) by context and current event.
        Parameters:
        context - The context provided by JUnit 5
        Returns:
        target element