Class CsvArgumentsProvider

    • Field Detail

      • nullValues

        private java.util.Set<java.lang.String> nullValues
      • csvParser

        private com.univocity.parsers.csv.CsvParser csvParser
    • Constructor Detail

      • CsvArgumentsProvider

        CsvArgumentsProvider()
    • Method Detail

      • parseTextBlock

        private java.util.stream.Stream<Arguments> parseTextBlock​(CsvSource csvSource)
      • parseValueArray

        private java.util.stream.Stream<Arguments> parseValueArray​(CsvSource csvSource)
      • getHeaders

        static java.lang.String[] getHeaders​(com.univocity.parsers.csv.CsvParser csvParser)
      • processCsvRecord

        static Arguments processCsvRecord​(java.lang.Object[] csvRecord,
                                          java.util.Set<java.lang.String> nullValues,
                                          boolean useHeadersInDisplayName,
                                          java.lang.String[] headers)
        Processes custom null values, supports wrapping of column values in Named if necessary (for CSV header support), and returns the CSV record wrapped in an Arguments instance.
      • handleCsvException

        static java.lang.RuntimeException handleCsvException​(java.lang.Throwable throwable,
                                                             java.lang.annotation.Annotation annotation)
        Returns:
        this method always throws an exception and therefore never returns anything; the return type is merely present to allow this method to be supplied as the operand in a throw statement