public class ProfileTest extends Object
| Constructor and Description |
|---|
ProfileTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setSystemLocaleBackToDefault() |
void |
setSystemLocaleToValueNotGerman() |
static void |
storeSystemLocale() |
void |
testCsvDateMismatch()
Tests that a profile valid for the binding annotation, but with no
matching
CsvDate annotation throws an error. |
void |
testCsvNumberMismatch()
Tests that a profile valid for the binding annotation, but with no
matching
CsvNumber annotation throws an error. |
void |
testNoDefaultsName()
Tests all name-based annotations for exclusion based on profile.
|
void |
testNoDefaultsPosition()
Tests all position-based annotations for exclusion based on profile.
|
void |
testReadingByName()
Tests that reading with profiles by header name works.
|
void |
testReadingByPosition()
Tests that reading with profiles by header name works.
|
void |
testWritingByName()
Tests that writing with profiles by header name works.
|
void |
testWritingByPosition()
Tests that writing with profiles by header name works.
|
@BeforeAll public static void storeSystemLocale()
@BeforeEach public void setSystemLocaleToValueNotGerman()
@AfterEach public void setSystemLocaleBackToDefault()
@Test
public void testReadingByName()
throws FileNotFoundException
Also incidentally tests:
FileNotFoundException - Never@Test
public void testReadingByPosition()
throws FileNotFoundException
Also incidentally tests:
FileNotFoundException - Never@Test
public void testWritingByName()
throws com.opencsv.exceptions.CsvDataTypeMismatchException,
com.opencsv.exceptions.CsvRequiredFieldEmptyException
Also incidentally tests:
com.opencsv.exceptions.CsvDataTypeMismatchException - Nevercom.opencsv.exceptions.CsvRequiredFieldEmptyException - Never@Test
public void testWritingByPosition()
throws com.opencsv.exceptions.CsvDataTypeMismatchException,
com.opencsv.exceptions.CsvRequiredFieldEmptyException
Also incidentally tests:
com.opencsv.exceptions.CsvDataTypeMismatchException - Nevercom.opencsv.exceptions.CsvRequiredFieldEmptyException - Never@Test
public void testCsvNumberMismatch()
throws FileNotFoundException
CsvNumber annotation throws an error.FileNotFoundException - Never@Test
public void testCsvDateMismatch()
throws FileNotFoundException
CsvDate annotation throws an error.FileNotFoundException - Never@Test
public void testNoDefaultsName()
throws FileNotFoundException
FileNotFoundException - Never@Test
public void testNoDefaultsPosition()
throws FileNotFoundException
FileNotFoundException - NeverCopyright © 2005–2025. All rights reserved.