Interface Arguments

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      static Arguments arguments​(java.lang.Object... arguments)
      Factory method for creating an instance of Arguments based on the supplied arguments.
      static Arguments.ArgumentSet argumentSet​(java.lang.String name, java.lang.Object... arguments)
      Factory method for creating an Arguments.ArgumentSet based on the supplied name and arguments.
      java.lang.Object[] get()
      Get the arguments used for an invocation of the @ParameterizedTest method.
      static Arguments of​(java.lang.Object... arguments)
      Factory method for creating an instance of Arguments based on the supplied arguments.
    • Method Detail

      • get

        java.lang.Object[] get()
        Get the arguments used for an invocation of the @ParameterizedTest method.
        Returns:
        the arguments; never null
      • of

        static Arguments of​(java.lang.Object... arguments)
        Factory method for creating an instance of Arguments based on the supplied arguments.
        Parameters:
        arguments - the arguments to be used for an invocation of the test method; must not be null
        Returns:
        an instance of Arguments; never null
        See Also:
        arguments(Object...), argumentSet(String, Object...)
      • arguments

        static Arguments arguments​(java.lang.Object... arguments)
        Factory method for creating an instance of Arguments based on the supplied arguments.

        This method is an alias for of(java.lang.Object...) and is intended to be used when statically imported — for example, via: import static org.junit.jupiter.params.provider.Arguments.arguments;

        Parameters:
        arguments - the arguments to be used for an invocation of the test method; must not be null
        Returns:
        an instance of Arguments; never null
        Since:
        5.3
        See Also:
        argumentSet(String, Object...)