public class JoinTest extends Object
| Constructor and Description |
|---|
JoinTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setSystemLocaleBackToDefault() |
void |
setSystemLocaleToValueNotGerman() |
static void |
storeSystemLocale() |
void |
testBadCustomConverter() |
void |
testBeanInstantiationImpossibleIllegalAccess() |
void |
testCaptureByNameInvalidRegex() |
void |
testCaptureByNameRegexWithoutCaptureGroup() |
void |
testCaptureByPositionInvalidRegex() |
void |
testCaptureByPositionRegexWithoutCaptureGroup() |
void |
testClosedRange()
Tests that closed ranges work as expected.
|
void |
testCustomConverterByNameRead() |
void |
testCustomConverterByNameWrite() |
void |
testCustomConverterByPositionRead() |
void |
testCustomConverterByPositionWrite() |
void |
testDoubleOpenRange()
Tests that the range specification "-" works as a double open range.
|
void |
testEmptyRangeExpression() |
void |
testFieldNotMultiValuedMap() |
void |
testFormatByNameWriteInvalidFormatString() |
void |
testFormatByPositionWriteInvalidFormatString() |
void |
testIllegalRegularExpression() |
void |
testNamingOverlap()
Tests that an overlap in naming between
CsvBindByName and
CsvBindAndJoinByName is resolved to the benefit of the former. |
void |
testNonMatchingRegularExpression()
Test with regular expression that doesn't match any header names.
|
void |
testNonNumberRangeExpression() |
void |
testNoNullaryConstructor() |
void |
testNoNullaryConstructorNoSetter() |
void |
testOpenRangeNoLowerBound() |
void |
testOpenRangeWithoutUpperBoundry()
Tests that an open range without an upper boundry works.
|
void |
testRangeBackward()
Tests that a range expression of the form "maximum-minimum" functions
properly.
|
void |
testRangeWithOnePosition()
Tests a position definition with exactly one column index.
|
void |
testReadConversionLocalePrimitiveHeaderMapping()
Tests conversion of a primitive with a specified locale using header
name-based mapping.
|
void |
testReadConversionLocalePrimitivePositionMapping() |
void |
testReadDate()
Tests reading in formatted dates.
|
void |
testReadEmptyIndividualRequiredFieldColumnPositionMapping()
Tests what happens if at least one position for a field marked as
required with
CsvBindAndJoinByPosition contains no value. |
void |
testReadEmptyIndividualRequiredFieldHeaderNameMapping()
Tests what happens when a required field specified as a single header
name is missing.
|
void |
testReadEmptyOptionalFieldHeader() |
void |
testReadEmptyOptionalFieldPosition() |
void |
testReadEmptyOptionalFieldValueOnly() |
void |
testReadEmptyRegexAllRequiredFieldHeaderNameMapping()
Tests what happens if a field marked as required and fed out of multiple
headers is missing all headers that would match.
|
void |
testReadEmptyRegexSingleRequiredFieldHeaderNameMappingValueOnly()
Tests what happens if a field marked as required and fed out of multiple
headers is missing a value in one matching column.
|
void |
testReadNullOptionalFieldValueOnly() |
void |
testReadPrimitive()
Tests reading a wrapped primitive into a MultiValuedMap.
|
void |
testSetterThrowsException() |
void |
testUnassignableMultiValuedMap() |
void |
testUnknownMultiValuedMap() |
void |
testWriteColumnMapping()
Tests that writing with a column position-based mapping strategy works.
|
void |
testWriteEmptyRequiredFieldColumnPositionMapping()
Tests what happens when a required field is missing in a column position
mapping strategy on writing.
|
void |
testWriteEmptyRequiredFieldInFirstBean() |
void |
testWriteEmptyRequiredFieldInSecondBean() |
void |
testWriteFieldWithoutGetter() |
void |
testWritePrimitive()
Tests that multi-valued fields of (wrapped) primitives are written
correctly.
|
@BeforeAll public static void storeSystemLocale()
@BeforeEach public void setSystemLocaleToValueNotGerman()
@AfterEach public void setSystemLocaleBackToDefault()
@Test
public void testReadPrimitive()
throws IOException
Also tests:
IOException - Never@Test
public void testReadDate()
throws IOException
Also tests:
IOException - Never@Test
public void testNamingOverlap()
throws IOException
CsvBindByName and
CsvBindAndJoinByName is resolved to the benefit of the former.
Also incidentally tests:
MultiValuedMapIOException - Never@Test public void testIllegalRegularExpression()
@Test
public void testNonMatchingRegularExpression()
throws IOException
IOException - Never@Test public void testFieldNotMultiValuedMap()
@Test
public void testDoubleOpenRange()
throws IOException
Also incidentally tests:
MultiValuedMapCsvBindByPosition
and CsvBindAndJoinByPositionIOException - Never@Test
public void testOpenRangeNoLowerBound()
throws IOException
IOException@Test public void testNonNumberRangeExpression()
@Test public void testEmptyRangeExpression()
@Test
public void testRangeWithOnePosition()
throws IOException
Also incidentally tests:
IOException - Never@Test
public void testClosedRange()
throws IOException
Also incidentally tests:
MultiValuedMap as bean memberArrayListValuedHashMapIOException - Never@Test
public void testOpenRangeWithoutUpperBoundry()
throws IOException
Also tests:
IOException - Never@Test
public void testRangeBackward()
throws IOException
Also incidentally tests:
IOException - Never@Test
public void testReadConversionLocalePrimitiveHeaderMapping()
throws IOException
Also incidentally tests:
IOException - Never@Test
public void testReadConversionLocalePrimitivePositionMapping()
throws IOException
IOException@Test
public void testReadEmptyIndividualRequiredFieldHeaderNameMapping()
throws IOException
IOException - Never@Test
public void testReadEmptyRegexSingleRequiredFieldHeaderNameMappingValueOnly()
throws IOException
IOException - Never@Test
public void testReadEmptyRegexAllRequiredFieldHeaderNameMapping()
throws IOException
IOException - Never@Test
public void testReadEmptyIndividualRequiredFieldColumnPositionMapping()
throws IOException
CsvBindAndJoinByPosition contains no value.
In case it's not clear, this test uses a column position mapping
strategy.IOException - Never@Test
public void testReadEmptyOptionalFieldValueOnly()
throws IOException
IOException@Test
public void testReadNullOptionalFieldValueOnly()
throws IOException
IOException@Test
public void testReadEmptyOptionalFieldHeader()
throws IOException
IOException@Test
public void testReadEmptyOptionalFieldPosition()
throws IOException
IOException@Test
public void testWriteEmptyRequiredFieldColumnPositionMapping()
throws com.opencsv.exceptions.CsvException
com.opencsv.exceptions.CsvException - Never@Test
public void testWritePrimitive()
throws com.opencsv.exceptions.CsvException
Also incidentally tests
null
as their value)com.opencsv.exceptions.CsvException - Never@Test
public void testWriteColumnMapping()
throws com.opencsv.exceptions.CsvException
Also incidentally tests:
com.opencsv.exceptions.CsvException - Never@Test
public void testWriteEmptyRequiredFieldInFirstBean()
throws com.opencsv.exceptions.CsvException
com.opencsv.exceptions.CsvException@Test
public void testWriteEmptyRequiredFieldInSecondBean()
throws com.opencsv.exceptions.CsvException
com.opencsv.exceptions.CsvException@Test
public void testWriteFieldWithoutGetter()
throws com.opencsv.exceptions.CsvException
com.opencsv.exceptions.CsvException@Test public void testSetterThrowsException()
@Test public void testUnknownMultiValuedMap()
@Test public void testUnassignableMultiValuedMap()
@Test public void testBeanInstantiationImpossibleIllegalAccess()
@Test public void testNoNullaryConstructor()
@Test public void testNoNullaryConstructorNoSetter()
@Test
public void testCustomConverterByNameRead()
throws IOException
IOException@Test
public void testCustomConverterByPositionRead()
throws IOException
IOException@Test
public void testCustomConverterByNameWrite()
throws com.opencsv.exceptions.CsvException,
IOException
com.opencsv.exceptions.CsvExceptionIOException@Test
public void testCustomConverterByPositionWrite()
throws com.opencsv.exceptions.CsvException,
IOException
com.opencsv.exceptions.CsvExceptionIOException@Test
public void testBadCustomConverter()
throws IOException
IOException@Test public void testCaptureByNameInvalidRegex()
@Test public void testCaptureByPositionInvalidRegex()
@Test public void testCaptureByNameRegexWithoutCaptureGroup()
@Test public void testCaptureByPositionRegexWithoutCaptureGroup()
@Test public void testFormatByNameWriteInvalidFormatString()
@Test public void testFormatByPositionWriteInvalidFormatString()
Copyright © 2005–2025. All rights reserved.