public class NumberTest extends Object
CsvNumber annotation.| Constructor and Description |
|---|
NumberTest() |
@BeforeAll public static void storeSystemLocale()
@BeforeEach public void setSystemLocaleToValueNotGerman()
@AfterEach public void setSystemLocaleBackToDefault()
@Test
public void testPrimitiveByte()
throws IOException
IOException - If bad things happen@Test
public void testWrappedByte()
throws IOException
Byte.
Also incidentally tests:
IOException - If bad things happen@Test
public void testPrimitiveShort()
throws IOException
IOException@Test
public void testWrappedShort()
throws IOException
IOException@Test
public void testPrimitiveInteger()
throws IOException
IOException@Test
public void testWrappedInteger()
throws IOException
IOException@Test
public void testPrimitiveLong()
throws IOException
IOException@Test
public void testWrappedLong()
throws IOException
IOException@Test
public void testPrimitiveFloat()
throws IOException
IOException@Test
public void testWrappedFloat()
throws IOException
IOException@Test
public void testPrimitiveDouble()
throws IOException
IOException@Test
public void testWrappedDouble()
throws IOException
IOException@Test
public void testBigDecimal()
throws IOException
BigDecimal.
Also incidentally tests:
ColumnPositionMappingStrategyIOException - If bad things happen@Test
public void testBigInteger()
throws IOException
IOException@Test
public void testUnparsableNumber()
throws IOException
IOException@Test public void testEmptyOptionalInput()
@Test
public void testWritingHeaderNameMappingStrategy()
throws IOException,
com.opencsv.exceptions.CsvException
IOExceptioncom.opencsv.exceptions.CsvException@Test
public void testWritingColumnPositionMappingStrategy()
throws IOException,
com.opencsv.exceptions.CsvException
CsvNumber and the column
position mapping strategy.
Also incidentally tests:
CsvNumber.writeFormatEqualsReadFormat() trueIOException - Never throwncom.opencsv.exceptions.CsvException - Never thrown@Test public void testNonNumber()
@Test public void testInvalidPatternReading()
@Test
public void testInvalidPatternWriting()
throws com.opencsv.exceptions.CsvException
com.opencsv.exceptions.CsvException@Test public void testEmptyPattern()
@Test
public void testWriteNull()
throws com.opencsv.exceptions.CsvException
com.opencsv.exceptions.CsvException@Test
public void testWriteRoundingMode()
throws com.opencsv.exceptions.CsvException
BigDecimals that need rounding.com.opencsv.exceptions.CsvException - Never thrownCopyright © 2005–2025. All rights reserved.