Class ParamRowGenerator


  • public class ParamRowGenerator
    extends java.lang.Object
    • Constructor Detail

      • ParamRowGenerator

        public ParamRowGenerator​(@NotNull
                                 @NotNull java.lang.String locationPrefix)
      • ParamRowGenerator

        public ParamRowGenerator​(@NotNull
                                 @NotNull java.lang.String testRoot,
                                 @Nullable
                                 @Nullable java.lang.Class<?> testClass)
      • ParamRowGenerator

        public ParamRowGenerator()
    • Method Detail

      • getRows

        public final java.util.ArrayList<java.lang.Object[]> getRows()
      • row

        public ParamRowGenerator row​(java.lang.Object[] row)
        Add parametrized test row and prefix with file location information at [0]
        Parameters:
        row - an array of objects parameters for the test
        Returns:
        this
      • row

        protected ParamRowGenerator row​(int callerOffset,
                                        @NotNull
                                        @NotNull java.lang.Object[] row,
                                        @Nullable
                                        @Nullable ParamRowGenerator.Decorator decorator)
        Add parametrized test row and prefix with file location information at [0]
        Parameters:
        callerOffset - offset to the stack frame 0 if called directly from test, add 1 for every super call in between
        row - an array of objects parameters for the test
        decorator - decorator to customize the test message
        Returns:
        this
      • row

        public ParamRowGenerator row​(int callerOffset,
                                     @NotNull
                                     @NotNull java.lang.Object[] row,
                                     @Nullable
                                     @Nullable ParamRowGenerator.Decorator decorator,
                                     @Nullable
                                     @Nullable ParamRowGenerator.LineProvider lineProvider,
                                     @Nullable
                                     @Nullable ParamRowGenerator.ColumnProvider columnProvider)
        Add parametrized test row and prefix with file location information at [0]
        Parameters:
        callerOffset - offset to the stack frame 0 if called directly from test, add 1 for every super call in between
        row - an array of objects parameters for the test
        decorator - decorator to customize the test message
        lineProvider - line provider to customize the line number for the location string
        columnProvider - column provider to customize the column number for the location string
        Returns:
        this
      • rowOffset

        public ParamRowGenerator rowOffset​(int callerOffset,
                                           int insertAt,
                                           @NotNull
                                           @NotNull java.lang.Object[] row,
                                           @Nullable
                                           @Nullable ParamRowGenerator.Decorator decorator,
                                           @Nullable
                                           @Nullable ParamRowGenerator.LineProvider lineProvider,
                                           @Nullable
                                           @Nullable ParamRowGenerator.ColumnProvider columnProvider)
        Add parametrized test row and prefix with file location information at [0]
        Parameters:
        callerOffset - offset to the stack frame 0 if called directly from test, add 1 for every super call in between
        insertAt - where to insert location string
        row - an array of objects parameters for the test
        decorator - decorator to customize the test message
        lineProvider - line provider to customize the line number for the location string
        columnProvider - column provider to customize the column number for the location string
        Returns:
        this
      • removeSuffix

        @NotNull
        public static @NotNull java.lang.String removeSuffix​(@NotNull
                                                             @NotNull java.lang.String className)