class CsvArgumentsProvider extends java.lang.Object implements ArgumentsProvider, AnnotationConsumer<CsvSource>
Modifier and Type | Field and Description |
---|---|
private CsvSource |
annotation |
private com.univocity.parsers.csv.CsvParser |
csvParser |
private static java.lang.String |
LINE_SEPARATOR |
private java.util.Set<java.lang.String> |
nullValues |
Constructor and Description |
---|
CsvArgumentsProvider() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CsvSource annotation) |
(package private) static void |
handleCsvException(java.lang.Throwable throwable,
java.lang.annotation.Annotation annotation) |
private java.lang.String[] |
parseLine(long index,
java.lang.String line) |
java.util.stream.Stream<? extends Arguments> |
provideArguments(ExtensionContext context)
|
private static final java.lang.String LINE_SEPARATOR
private CsvSource annotation
private java.util.Set<java.lang.String> nullValues
private com.univocity.parsers.csv.CsvParser csvParser
public void accept(CsvSource annotation)
accept
in interface java.util.function.Consumer<CsvSource>
public java.util.stream.Stream<? extends Arguments> provideArguments(ExtensionContext context)
ArgumentsProvider
provideArguments
in interface ArgumentsProvider
context
- the current extension context; never null
null
private java.lang.String[] parseLine(long index, java.lang.String line)
static void handleCsvException(java.lang.Throwable throwable, java.lang.annotation.Annotation annotation)