public class AnnotationTest extends Object
TemporalAccessor-based types.TemporalTest| Constructor and Description |
|---|
AnnotationTest() |
@BeforeAll public static void storeSystemLocale()
@BeforeEach public void setSystemLocaleToValueNotGerman()
@AfterEach public void setSystemLocaleBackToDefault()
@Test
public void testGoodDataByName()
throws FileNotFoundException
Also incidentally tests:
CsvBindByName with
members of same names as columnsCsvBindByName with
members of different names than columnsCsvBindByName with complete
source dataCsvBindByName with complete
source dataCsvBindByName with
missing source dataCsvBindByName with missing
source dataCsvBindByNameCsvBindByNameCsvBindByNameBigDecimal and
BigInteger without a localeCsvBindByName with a column name
that is not in the inputCsvDate
and no source dataFileNotFoundException - Never@Test
public void testAnonymousHeaders()
throws FileNotFoundException
null, these null headers can't
break opencsv. They are not supported, but they can't cause a crash.FileNotFoundException - Never@Test
public void testCaptureWithNullField()
throws FileNotFoundException
FileNotFoundException@Test
public void testGoodDerivedDataByName()
throws IOException
CsvBindByName.IOException - Never@Test
public void testGoodDataByPosition()
throws FileNotFoundException
CsvBindByPosition.
Also incidentally tests:
CsvBindByPositionCsvBindByPosition with complete source
dataCsvBindByPosition with complete source
dataCsvBindByPosition with missing source dataCsvBindByPosition with missing source dataCsvBindByPositionCsvBindByPositionCsvBindByPositionCsvBindByPosition
with a column number that is not in the inputFileNotFoundException - Never@Test
public void testGoodDerivedDataByPositionTypeWithBuilder()
throws IOException
CsvBindByPosition.
Type is set by the builderIOException - Never@Test
public void testGoodDerivedDataByPositionTypeWithSet()
throws IOException
CsvBindByPosition.
Type set with setType.
IOException - Never@Test
public void testGoodDataByNameUnordered()
throws FileNotFoundException
FileNotFoundException@Test
public void testGoodDataByPositionUnordered()
throws FileNotFoundException
FileNotFoundException@Test
public void testGoodDataCustomByName()
throws FileNotFoundException
CsvCustomBindByName.
Also incidentally tests:
CsvCustomBindByNameCsvCustomBindByNameCsvCustomBindByName with an assignable derived
typeCsvBindByName and
CsvCustomBindByNameCsvCustomBindByNameCsvCustomBindByNameCsvCustomBindByNameConvertGermanToBoolean using
all available valuesConvertGermanToBoolean using
an empty inputConvertSplitOnWhitespace using
multiple whitespace-separated values (space, tab)ConvertSplitOnWhitespace using
a null input stringConvertSplitOnWhitespace using
a single string with no whitespaceConvertSplitOnWhitespace using
an input string of only whitespace charactersFileNotFoundException - Never@Test
public void testGoodDataCustomByPosition()
throws FileNotFoundException
CsvCustomBindByPosition.
Also incidentally tests:
CsvCustomBindByPositionCsvCustomBindByPositionCsvCustomBindByPosition with an assignable
derived typeCsvBindByPosition and
CsvCustomBindByPositionCsvCustomBindByPositionCsvCustomBindByPositionCsvCustomBindByPositionFileNotFoundException - Never@Test
public void testMapRequiredByNameMissingData()
throws FileNotFoundException
CsvBindByName when the source data are missing.
Also incidentally tests:
FileNotFoundException - Never@Test
public void testMapRequiredByPositionMissingData()
throws FileNotFoundException
FileNotFoundException@Test
public void testMapByNameMismatchingType()
throws IOException
IOException@Test
public void testMapByPositionMismatchingType()
throws IOException
IOException@Test public void testMapByNameUnbindableField()
@Test public void testMapByPositionUnbindableField()
@Test public void testBadDataExceptionsCapturedUnordered()
@Test
public void testMultipleExceptionsPerLine()
throws FileNotFoundException
FileNotFoundException@Test
public void testRequiredDateEmptyInput()
throws IOException
IOException@Test
public void testUnparseableLocaleSpecificDate()
throws IOException
IOException@Test
public void testOptionalDateUnparseableInput()
throws FileNotFoundException
FileNotFoundException@Test
public void testUnparseableLocaleInspecificDate()
throws IOException
IOException@Test public void testExceptionsSuppressed()
@Test public void testDateAnnotationOnNondateReading()
@Test
public void testDateAnnotationOnNondateWriting()
throws com.opencsv.exceptions.CsvException
com.opencsv.exceptions.CsvException@Test
public void testMapByNameComplexTypeWrongType()
throws FileNotFoundException
FileNotFoundException@Test
public void testMapByPositionComplexTypeWrongType()
throws FileNotFoundException
FileNotFoundException@Test
public void testCustomByPositionWrappedPrimitiveDataTypeMismatch()
throws FileNotFoundException
CsvCustomBindByPosition with mismatching types.FileNotFoundException - Never@Test
public void testCustomByNameWrappedPrimitiveDataTypeMismatch()
throws FileNotFoundException
CsvCustomBindByName with mismatching types.
Also incidentally tests:
ConvertGermanToBoolean using an
invalid stringFileNotFoundException - Never@Test public void testBadConverter()
@Test
public void testRequiredColumnNonexistentHeaderNameMapping()
throws FileNotFoundException
FileNotFoundException@Test
public void testRequiredColumnNonexistentColumnPositionMapping()
throws FileNotFoundException
FileNotFoundException@Test
public void testPrematureEOLUsingHeaderNameMapping()
throws FileNotFoundException
FileNotFoundException@Test
public void testCustomConverterRequiredEmptyInput()
throws FileNotFoundException
FileNotFoundException@Test public void testSetterThrowsException()
@Test public void testCaptureByNameInvalidRegex()
@Test public void testCaptureByPositionInvalidRegex()
@Test public void testCaptureByNameRegexWithoutCaptureGroup()
@Test public void testCaptureByPositionRegexWithoutCaptureGroup()
@Test public void testFormatByNameWriteInvalidFormatString()
@Test public void testFormatByPositionWriteInvalidFormatString()
@Test
public void testWriteFormatWithHeaderNames()
throws com.opencsv.exceptions.CsvException
com.opencsv.exceptions.CsvException@Test
public void testWriteFormatWithColumnPositions()
throws com.opencsv.exceptions.CsvException
com.opencsv.exceptions.CsvException@Test
public void testIllegalEnumValue()
throws IOException
IOException@Test
public void testIllegalCurrency()
throws IOException
IOException@Test
public void testWrongNumberOfColumnsAllowedByName()
throws FileNotFoundException
FileNotFoundException - NeverCopyright © 2005–2025. All rights reserved.