Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
361 0 0 1 99.723% 3.194

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
integrationTest.SR34 4 0 0 0 100% 0.001
com.opencsv.bean 110 0 0 0 100% 1.751
integrationTest.isClosed 1 0 0 0 100% 0.136
parsing 8,\',"a big line with multiple carriage returns in it.",eight yields values 8 \' a big line with multiple carriage returns in it. and eight(com.opencsv 1 0 0 0 100% 0
com.opencsv.exceptions 4 0 0 0 100% 0
com.opencsv.stream.reader 6 0 0 0 100% 0.001
parsing 8.\'."a big line with multiple carriage returns in it.".eight with custom separator yields values 8 \' a big line with multiple carriage returns in it. and eight(com.opencsv 1 0 0 0 100% 0
integrationTest.issue3402853 1 0 0 0 100% 0.003
parsing 8,\",'a big line with multiple carriage returns in it.',eight with custom quote yields values 8 \" a big line with multiple carriage returns in it. and eight(com.opencsv 1 0 0 0 100% 0
com.opencsv 232 0 0 1 99.569% 1.302

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

integrationTest.SR34

Class Tests Errors Failures Skipped Success Rate Time
SR34Test 4 0 0 0 100% 0.001

com.opencsv.bean

Class Tests Errors Failures Skipped Success Rate Time
AnnotationTest 16 0 0 0 100% 0.83
BeanToCsvTest 20 0 0 0 100% 0.013
ColumnPositionMappingStrategyTest 12 0 0 0 100% 0.001
CsvToBeanDoubleTest 1 0 0 0 100% 0
CsvToBeanFilterTest 1 0 0 0 100% 0
CsvToBeanTest 20 0 0 0 100% 0.091
HeaderColumnNameMappingStrategyTest 7 0 0 0 100% 0.003
HeaderColumnNameTranslateMappingStrategyTest 3 0 0 0 100% 0.001
IterableCSVToBeanBuilderTest 4 0 0 0 100% 0.238
IterableCSVToBeanTest 4 0 0 0 100% 0.005
StatefulBeanToCsvTest 22 0 0 0 100% 0.569

integrationTest.isClosed

Class Tests Errors Failures Skipped Success Rate Time
isClosedTest 1 0 0 0 100% 0.136

parsing 8,\',"a big line with multiple carriage returns in it.",eight yields values 8 \' a big line with multiple carriage returns in it. and eight(com.opencsv

Class Tests Errors Failures Skipped Success Rate Time
RFC4180ParserSpec) 1 0 0 0 100% 0

com.opencsv.exceptions

Class Tests Errors Failures Skipped Success Rate Time
CSVBeanIntrospectionExceptionTest 4 0 0 0 100% 0

com.opencsv.stream.reader

Class Tests Errors Failures Skipped Success Rate Time
LineReaderTest 6 0 0 0 100% 0.001

parsing 8.\'."a big line with multiple carriage returns in it.".eight with custom separator yields values 8 \' a big line with multiple carriage returns in it. and eight(com.opencsv

Class Tests Errors Failures Skipped Success Rate Time
RFC4180ParserSpec) 1 0 0 0 100% 0

integrationTest.issue3402853

Class Tests Errors Failures Skipped Success Rate Time
HeaderColumnNameMappingStrategyUserTest 1 0 0 0 100% 0.003

parsing 8,\",'a big line with multiple carriage returns in it.',eight with custom quote yields values 8 \" a big line with multiple carriage returns in it. and eight(com.opencsv

Class Tests Errors Failures Skipped Success Rate Time
RFC4180ParserSpec) 1 0 0 0 100% 0

com.opencsv

Class Tests Errors Failures Skipped Success Rate Time
CSVIteratorSpec 4 0 0 0 100% 0.893
CSVIteratorTest 4 0 0 0 100% 0.007
CSVParserBuilderSpec 2 0 0 0 100% 0.022
CSVParserBuilderTest 7 0 0 0 100% 0.012
CSVParserTest 54 0 0 1 98.148% 0.022
CSVReaderAndParserIntegrationSpec 2 0 0 0 100% 0.054
CSVReaderBuilderTest 10 0 0 0 100% 0.02
CSVReaderTest 32 0 0 0 100% 0.011
CSVWriterTest 32 0 0 0 100% 0.13
OpencsvTest 1 0 0 0 100% 0
ResultSetColumnNameHelperServiceTest 17 0 0 0 100% 0.027
ResultSetHelperServiceTest 23 0 0 0 100% 0.055
RFC4180ParserBuilderTest 3 0 0 0 100% 0
RFC4180ParserSpec 30 0 0 0 100% 0.049
TestUtilitiesTest 1 0 0 0 100% 0
UniCodeTest 10 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

AnnotationTest

testCase7 0.253
codeCoverageExceptions 0.001
testBadDataCustomByName 0.029
testGoodDataByPosition 0.186
testGoodDataByName 0.097
testCase11 0.028
testCase16 0.006
testCase21 0.001
testCase51 0.008
testCase55 0.007
testCase60 0.005
testCase63 0.001
testBadConverter 0.001
testGoodDataCustomByName 0.009
testBadDataByName 0.082
testGoodDataCustomByPosition 0.009

BeanToCsvTest

writeBeansOneAtATime 0
handleException 0.001
testWriteQuotesWithAnnotatedBean 0.001
testWriteQuotesStatic 0
testWriteNullsWithAnnotatedBeanStatic 0
testWriteNulls 0
throwRuntimeExceptionWhenExceptionIsThrownStatic 0.001
beanReturnsFalseOnEmptyListStatic 0
writeBeansOneAtATimeStatic 0.001
writeSingleBeanMethodReturnsFalseIfNullPassedInStatic 0
writeSingleBeanMethodReturnsFalseIfNullPassedIn 0
beanReturnsFalseOnEmptyList 0
throwRuntimeExceptionWhenExceptionIsThrown 0
beanReturnsFalseOnNullStatic 0
beanReturnsFalseOnNull 0
testWriteNullsStatic 0.001
testWriteQuotes 0.001
testWriteNullsWithAnnotatedBean 0
testWriteQuotesWithAnnotatedBeanStatic 0.001
handleExceptionStatic 0

ColumnPositionMappingStrategyTest

testParseWithTrailingSpaces 0
getColumnIndexBeforeMappingSetReturnsNull 0
throwsIllegalStateExceptionIfTypeNotSet 0
getColumnIndex 0
testParse 0
getColumnNamesWhenEmptyMapping 0
testGetColumnMapping 0
getColumnNamesWhenNullColumnName 0
getColumnIndexEmptyMappingReturnsNull 0
getColumnNamesWhenNullArray 0
testGetColumnNames 0
testGetColumnNamesArray 0.001

CsvToBeanDoubleTest

parseBeanWithNoAnnotations 0

CsvToBeanFilterTest

testColumnNameTranslationWithLineFiltering 0

CsvToBeanTest

testMinimumBuilder 0.006
parseAnnotatedBeanWithAllValidDataTypes 0.012
throwIllegalStateWhenOnlyReaderIsSpecifiedToParseWithoutArguments 0
parseBeanWithSomeAnnotations 0.002
throwIllegalStateWhenTypeAndMapperNotProvidedInBuilder 0.001
throwIllegalStateWhenParseWithoutArgumentsIsCalled 0
throwIllegalStateWhenReaderNotProvidedInBuilder 0
throwRuntimeExceptionWhenRequiredFieldNotProvidedInAnnotatedBean 0.002
parseBeanWithAnnotations 0.002
throwRuntimeExceptionWhenUnsupportedDataTypeUsedInAnnotatedBean 0.002
throwRuntimeExceptionWhenExceptionIsThrown 0.001
testColumnMappingStrategyWithBuilder 0.033
bug133ShouldNotThrowNullPointerExceptionWhenProcessingEmptyWithNoAnnotations 0.002
parseBeanWithNoAnnotations 0.001
parseAnnotatedBeanWithPrivateField 0.001
throwRuntimeExceptionLineWhenExceptionIsThrown 0.001
parseAnnotatedBeanWithFieldsOfAllAccessModifierTypes 0.002
testMappingWithoutAnnotationsWithBuilder 0.001
testMaximumBuilder 0.021
throwIllegalStateWhenOnlyMapperIsSpecifiedToParseWithoutArguments 0

HeaderColumnNameMappingStrategyTest

throwsIllegalStateExceptionIfTypeNotSet 0
verifyColumnNames 0
getColumnIndexAfterParse 0.001
testParse 0
testParseWithSpacesInHeader 0.001
getColumnIndexWithoutHeaderThrowsException 0.001
testQuotedString 0

HeaderColumnNameTranslateMappingStrategyTest

columnNameMappingShouldBeCaseInsensitive 0
testParse 0
getColumnNameReturnsNullIfColumnNumberIsTooLarge 0

IterableCSVToBeanBuilderTest

builderWithFilter 0.235
builderWithoutFilter 0.001
defaultBuilderMissingInformation 0.001
willThrowExceptionIfMissingReader 0

IterableCSVToBeanTest

readWithIterator 0.001
nextLineWithFilter 0.002
readWithIteratorAndFilter 0.001
nextLine 0

StatefulBeanToCsvTest

bindCustomConverterToWrongDataType 0.02
writeNullRequiredDate 0.055
writeMultipleBeans 0.05
bindLegacyToUnknownDataType 0.002
writeWithoutAnnotations 0.003
multipleWritesCapturedExceptions 0.049
writeCustomByPosition 0.026
writeBindByPositionUnknownType 0.003
writeBindByNameUnknownType 0.001
writeOptionalFieldsWithNull 0.039
writeGetterPrivate 0.003
writeSingleBean 0.04
readCapturedExceptionsIsDestructive 0.041
writeDerivedSuperclass 0.035
writeSpecifiedStrategy 0.034
writeDerivedSubclass 0.029
writeCustomByName 0.012
writeOptionalNonContiguousField 0.039
writeGetterMissing 0.002
writeNullRequiredWrappedPrimitive 0.029
writeMixedSingleMultipleBeans 0.047
writeEmptyFieldWithConvertGermanToBooleanRequired 0.004

CSVIteratorSpec

reader exception should cause runtime exception 0.339
call to remove() results in UnsupportedOperationException thrown 0.001
initial read should return string array 0.018
call to hasNext() returns correct results 0.004

CSVIteratorTest

removethrowsUnsupportedOperationException 0
hasNextWorks 0.001
initialReadReturnsStrings 0
readerExceptionCausesRunTimeException 0.002

CSVParserBuilderSpec

builder creates a CSVParser by default 0.006
default RFC4180Parser has proper values 0.008

CSVParserBuilderTest

testWithEscapeChar 0
testWithStrictQuotes 0.003
testWithIgnoreLeadingWhiteSpace 0
testWithSeparator 0
testDefaultBuilder 0.001
testWithQuoteChar 0
testWithIgnoreQuotations 0

CSVParserTest

testADoubleQuoteAsDataElement 0.001
separatorAndEscapeCannotBeTheSame 0
quoteAndEscapeCanBeTheSameIfNull 0
testFalseIgnoreQuotations 0.001
testStrictQuotesEndsFieldAtQuote 0
testNotStrictQuotesAllowsEmbeddedEscapedQuote 0
testParsedLineWithInternalQuota 0
parseSimpleQuotedString 0
parseQuotedQuoteCharacters 0
spacesAtEndOfQuotedStringDoNotCountIfStrictQuotesIsTrue 0
testIssue3314579 0
parseTrickyString 0
tryAndParseExcelGeneratedString 0
Use this test for an Excel CSV Parser
testNotStrictQuoteSimple 0
quoteAndEscapeCannotBeTheSame 0
testParseLine 0
parseMultiLinedQuoted 0
separatorAndQuoteCannotBeTheSame 0
featureRequest60TreatEmptyFieldsAsNull 0
whitespaceBeforeEscape 0
parseLineMultiAllowsQuotesAcrossMultipleLines 0
featureRequest60TreatEmptyFieldsDelimitedOrNotAsNull 0
parseSimpleQuotedStringWithSpaces 0
validateEscapeStringBeforeRealTest 0
testStrictQuoteSimple 0
issue93ParsingEmptyDoubleQuoteField 0
parseEmptyElements 0
returnNullWhenNullPassedIn 0
testStrictQuoteWithSpacesAndTabs 0.001
testIssue2958242WithoutQuotes 0
parseSimpleString 0
testStrictQuotesEndsFieldAtQuoteWithEscapedQuoteInMiddle 0
parserHandlesNullInString 0
parseQuotedStringWithDefinedSeperator 0.001
anIOExceptionThrownifStringEndsInsideAQuotedString 0
separatorCharacterCannotBeNull 0
testCanIgnoreQuotations 0
parseMultipleQuotes 0
parseMultiLinedQuotedwithCarriageReturns 0
parseQuotedStringWithDefinedSeperatorAndQuote 0
testNotStrictQuotesAllowsEmbeddedQuote 0
testEscapedDoubleQuoteAsDataElement 0
testStrictQuoteWithGarbage 0
featureRequest60TreatEmptyDelimitedFieldsAsNull 0
testAMultiLineInsideQuotes 0
pendingIsClearedAfterCallToParseLine 0
featureRequest60ByDefaultEmptyFieldsAreBlank 0
whichCharactersAreEscapable 0
testNotStrictQuoteWithSpacesAndTabs 0
returnPendingIfNullIsPassedIntoParseLineMulti 0
testIssue2263439 0
parseQuotedStringWithCommas 0
testIssue2726363 0
testIssue2859181 0

CSVReaderAndParserIntegrationSpec

parsing with CSVParser 0.022
parsing with RFC4180Parser 0.001

CSVReaderBuilderTest

testWithSkipLinesZero 0.008
testWithVerifyReader 0
builderWithNullFieldIndicator 0
testWithCSVParser 0.01
testWithSkipLines 0
testWithCSVParserNull 0
testWithSkipLinesNegative 0.001
testDefaultBuilder 0
testNullReader 0
testWithKeepCR 0.001

CSVReaderTest

attemptToReadCloseStreamReturnsNull 0
separatorAndEscapeMustBeDifferent 0
testIssue2992134OutOfPlaceQuotes 0
bug106ParseLineWithCarriageReturnNewLineStrictQuotes 0
readerCanHandleNullInString 0
testSkippingLines 0.001
testSingleQuoteWhenDoubleQuoteIsQuoteChar 0
issue108ReaderPlaysWellWithChannels 0.001
quoteAndEscapeMustBeDifferent 0
testParseLine 0
testNormalParsedLine 0.001
separatorAndQuoteMustBeDifferent 0
featureRequest60TreatEmptyFieldsAsNull 0
featureRequest60TreatEmptyFieldsDelimitedOrNotAsNull 0
testEscapedQuote 0.001
testIteratorFunctionality 0
testQuotedParsedLine 0
linesAndRecordsRead 0
parseQuotedStringWithDefinedSeperator 0
testASingleQuoteAsDataElement 0
testEscapedEscape 0
featureRequest60TreatEmptyDelimitedFieldsAsNull 0
testASingleQuoteAsDataElementWithEmptyField 0
testSkippingLinesWithDifferentEscape 0
featureRequest60ByDefaultEmptyFieldsAreBlank 0
testIssue102 0
testParseLineStrictQuote 0
testOptionalConstructors 0
testParseAll 0
canCloseReader 0
canCreateIteratorFromReader 0
testSpacesAtEndOfString 0

CSVWriterTest

testSpecialCharacters 0
testResultSetWithHeaders 0.088
parseLineWithBothEscapeAndQuoteChar 0
correctlyParserNullObject 0
testStreamFlushing 0.001
testAlternateLineFeeds 0
testResultSetTrim 0.003
testParseLine 0
correctlyParseNullString 0
testWriteAllObjects 0
testWriteAllAsIterable 0.009
testNoQuoteCharsAndNoEscapeChars 0.001
embeddedQuoteInString 0
testNoQuoteChars 0
checkErrorReturnsTrueWhenPassedInPrintWriter 0.009
testMultiLineResultSetWithoutHeaders 0.004
parseLineWithNoEscapeCharAndQuotes 0
testParseLineWithNoEscapeChar 0
flushQuietlyWillNotThrowException 0
testAlternateEscapeChar 0
testIOException 0.001
testMultiLineResultSetWithHeaders 0.004
testWriteAllAsList 0
testIntelligentQuotes 0
testResultSetWithoutHeaders 0.002
flushWillThrowIOException 0
testNullValues 0
needToSetBothQuoteAndEscapeCharIfYouWantThemToBeTheSame 0.002
testNoQuotingNoEscaping 0.001
issue123SeparatorEscapedWhenQuoteIsNoQuoteCharSpecifingNoneDefaultEscapeChar 0
testNestedQuotes 0.001
issue123SeparatorEscapedWhenQuoteIsNoQuoteChar 0

CSVBeanIntrospectionExceptionTest

defaultExceptionHasNoMessage 0
exceptionWithMessageBeanAndFieldWillReturnMessage 0
exceptionWithOnlyAMessage 0
exceptionWithNoMessageButHasBeanAndField 0

OpencsvTest

testWriteRead 0

ResultSetColumnNameHelperServiceTest

cannotHaveNullColumnName 0
getSubsetWithTrim 0.005
getCharSetWithNullAndTrim 0.003
cannotHaveEmptyHeaderName 0
cannotHaveEmptyColumnName 0.001
numberOfColumnsNamesMustMatchNumberOfHeaders 0
getColumnNamesWithSubsetOutOfOrder 0.001
getTimestampFromResultSetWithCustomFormat 0.002
canPrintColumnNames 0.001
getBooleanSubsetFromResultSet 0.004
getBooleanFromResultSet 0.004
cannotHaveSpaceHeaderName 0
getColumnNamesThrowsExceptionIfColumnDoesNotExist 0.001
cannotHaveSpaceColumnName 0
setColumnNames 0.002
getSubsetFromResultSetWithCustomFormat 0.002
cannotHaveNullHeaderName 0

ResultSetHelperServiceTest

getObjectFromResultSet 0.002
issue121ConvertingNaNForDoubleOrFloat 0.004
getBigIntFromResultSet 0.002
getBigDecimalFromResultSet 0.005
getTimestampFromResultSet 0.001
getTimestampFromResultSetWithCustomFormat 0.002
canPrintColumnNames 0.001
getIntegerFromResultSet 0.003
getTimeFromResultSet 0.001
getCharFromResultSet 0.002
getUnsupportedFromResultSet 0.001
setDateTimeFormat 0.002
getCharHandlesNulls 0.002
getBooleanFromResultSet 0.003
setDateFormat 0.001
issue121ConvertingNegativeInfinityForDoubleOrFloat 0.004
getEmptyClobFromResultSet 0.009
getDateFromResultSetUsingCustomFormat 0.002
getLargeClobFromResultSet 0.001
getClobFromResultSet 0.001
issue121ConvertingPositiveInfinityForDoubleOrFloat 0.003
getDateFromResultSet 0.002
getBitFromResultSet 0.001

RFC4180ParserBuilderTest

testWithSeparator 0
testDefaultBuilder 0
testWithQuoteChar 0

RFC4180ParserSpec

create a parser from the default constructor 0.007
able to parse a simple line 0.005
able to parse a multiple line record 0.001
parsing This,is,a,test yields values This is a and test 0
parsing 7,seven,7.89,12/11/16 yields values 7 seven 7.89 and 12/11/16 0
parsing 1,"\""","this is a quote "" character",test yields values 1 \" this is a quote " character and test 0
parsing 2,\ ,"this is a comma , character",two yields values 2 \ this is a comma , character and two 0
parsing 3,\\ ,this is a backslash \ character,three yields values 3 \\ this is a backslash \ character and three 0.001
parsing 5,"21,34",test comma,five yields values 5 21,34 test comma and five 0
parsing This,is,a,test with custom quote yields values This is a and test 0.002
parsing 7,seven,7.89,12/11/16 with custom quote yields values 7 seven 7.89 and 12/11/16 0.001
parsing 1,'\''','this is a quote '' character',test with custom quote yields values 1 \' this is a quote ' character and test 0
parsing 2,\ ,'this is a comma , character',two with custom quote yields values 2 \ this is a comma , character and two 0
parsing 3,\\ ,this is a backslash \ character,three with custom quote yields values 3 \\ this is a backslash \ character and three 0
parsing 5,'21,34',test comma,five with custom quote yields values 5 21,34 test comma and five 0.001
parsing This.is.a.test with custom separator yields values This is a and test 0.001
parsing 7.seven.7,89.12/11/16 with custom separator yields values 7 seven 7,89 and 12/11/16 0
parsing 1."\"""."this is a quote "" character".test with custom separator yields values 1 \" this is a quote " character and test 0
parsing 2.\ ."this is a comma . character".two with custom separator yields values 2 \ this is a comma . character and two 0
parsing 3.\\ .this is a backslash \ character.three with custom separator yields values 3 \\ this is a backslash \ character and three 0.001
parsing 5."21.34".test comma.five with custom separator yields values 5 21.34 test comma and five 0
parser with nullfieldindicator 0.001
parse a complex string 0
Parser with NullFieldindicator of NEITHER should return and 0
Parser with NullFieldindicator of EMPTY_SEPARATORS should return null null and null 0.001
Parser with NullFieldindicator of EMPTY_QUOTES should return null and 0
Parser with NullFieldindicator of BOTH should return null null null and null 0
able to parse a field that has a single quote at the end 0.001
if given a null then return a null 0
parse excel generated string 0.001

RFC4180ParserSpec)

parsing 8,\',"a big line with multiple carriage returns in it.",eight yields values 8 \' a big line with multiple carriage returns in it. and eight 0

RFC4180ParserSpec)

parsing 8,\",'a big line with multiple carriage returns in it.',eight with custom quote yields values 8 \" a big line with multiple carriage returns in it. and eight 0

RFC4180ParserSpec)

parsing 8.\'."a big line with multiple carriage returns in it.".eight with custom separator yields values 8 \' a big line with multiple carriage returns in it. and eight 0

LineReaderTest

lineReaderWillKeepCR 0
lineReaderNoCRWillHandleEmptyString 0
lineReaderNoCRWillHandleStringWithNoLinefeed 0
lineReaderKeepingCRWillHandleStringWithNoLinefeed 0
lineReaderKeepingCRWillHandleEmptyString 0
lineReaderWillRemoveCR 0

TestUtilitiesTest

displayStringArray 0

UniCodeTest

runUniCodeThroughCSVReader 0
runUniCodeThroughCSVWriter 0
writeThenReadTwiceUnicode 0
writerTest 0
writeThenReadTwiceAscii 0
writeThenReadAscii 0
readerTest 0
writeThenReadTwiceMixedUnicode 0
runASCIIThroughCSVWriter 0
canParseUnicode 0

isClosedTest

issue115StandardReadFailsAfterALargeNumberOfReads 0.136

HeaderColumnNameMappingStrategyUserTest

testParse 0.003

SR34Test

usingNullAsDelimeterWillFailBecauseYouAreEscapingTheQuote 0
doubleBufferedReaderInterpetsNullCorrectly 0
youNeedToEscapeTheNullCharactersIfUsingNullAsEscape 0
defaultReaderInterpetsNullCorrectly 0

Failure Details

[Summary] [Package List] [Test Cases]


tryAndParseExcelGeneratedString
skipped: Use this test for an Excel CSV Parser