Package com.vladsch.plugin.test.util
Class ParamRowGenerator
- java.lang.Object
-
- com.vladsch.plugin.test.util.ParamRowGenerator
-
public class ParamRowGenerator extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParamRowGenerator.ColumnProviderstatic interfaceParamRowGenerator.Decoratorstatic interfaceParamRowGenerator.LineProvider
-
Field Summary
Fields Modifier and Type Field Description static ParamRowGenerator.ColumnProviderNULL_COLUMN_PROVIDERstatic ParamRowGenerator.DecoratorNULL_DECORATORstatic ParamRowGenerator.LineProviderNULL_LINE_PROVIDERjava.util.ArrayList<java.lang.Object[]>rows
-
Constructor Summary
Constructors Constructor Description ParamRowGenerator()ParamRowGenerator(@NotNull java.lang.String locationPrefix)ParamRowGenerator(@NotNull java.lang.String testRoot, @Nullable java.lang.Class<?> testClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<java.lang.Object[]>getRows()static @NotNull java.lang.StringremoveSuffix(@NotNull java.lang.String className)protected ParamRowGeneratorrow(int callerOffset, @NotNull java.lang.Object[] row, @Nullable ParamRowGenerator.Decorator decorator)Add parametrized test row and prefix with file location information at [0]ParamRowGeneratorrow(int callerOffset, @NotNull java.lang.Object[] row, @Nullable ParamRowGenerator.Decorator decorator, @Nullable ParamRowGenerator.LineProvider lineProvider, @Nullable ParamRowGenerator.ColumnProvider columnProvider)Add parametrized test row and prefix with file location information at [0]ParamRowGeneratorrow(java.lang.Object[] row)Add parametrized test row and prefix with file location information at [0]ParamRowGeneratorrowOffset(int callerOffset, int insertAt, @NotNull java.lang.Object[] row, @Nullable ParamRowGenerator.Decorator decorator, @Nullable ParamRowGenerator.LineProvider lineProvider, @Nullable ParamRowGenerator.ColumnProvider columnProvider)Add parametrized test row and prefix with file location information at [0]
-
-
-
Field Detail
-
NULL_DECORATOR
public static final ParamRowGenerator.Decorator NULL_DECORATOR
-
NULL_COLUMN_PROVIDER
public static final ParamRowGenerator.ColumnProvider NULL_COLUMN_PROVIDER
-
NULL_LINE_PROVIDER
public static final ParamRowGenerator.LineProvider NULL_LINE_PROVIDER
-
rows
public final java.util.ArrayList<java.lang.Object[]> rows
-
-
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 betweenrow- an array of objects parameters for the testdecorator- 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 betweenrow- an array of objects parameters for the testdecorator- decorator to customize the test messagelineProvider- line provider to customize the line number for the location stringcolumnProvider- 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 betweeninsertAt- where to insert location stringrow- an array of objects parameters for the testdecorator- decorator to customize the test messagelineProvider- line provider to customize the line number for the location stringcolumnProvider- 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)
-
-