public class ConverterUUIDTest extends Object
| Constructor and Description |
|---|
ConverterUUIDTest() |
| Modifier and Type | Method and Description |
|---|---|
static Stream<org.junit.jupiter.params.provider.Arguments> |
buildIllegalUUIDValues() |
static Stream<org.junit.jupiter.params.provider.Arguments> |
buildLegalUUIDValues() |
void |
convertToRead(String uuidValue) |
void |
convertToReadWithBadValues(String uuidValue) |
void |
convertToReadWithNullEmptyOrWhiteSpace(String uuidValue) |
void |
convertToWrite() |
void |
convertToWriteWithNull() |
void |
setUp() |
@BeforeEach public void setUp()
public static Stream<org.junit.jupiter.params.provider.Arguments> buildLegalUUIDValues()
@DisplayName(value="Can convert UUID values to an java.util.UUID object.") @ParameterizedTest @MethodSource(value="buildLegalUUIDValues") public void convertToRead(String uuidValue) throws com.opencsv.exceptions.CsvDataTypeMismatchException
com.opencsv.exceptions.CsvDataTypeMismatchException@DisplayName(value="Convert uuid to a string")
@Test
public void convertToWrite()
throws com.opencsv.exceptions.CsvDataTypeMismatchException
com.opencsv.exceptions.CsvDataTypeMismatchException@DisplayName(value="convertToWrite handles null UUID object.")
@Test
public void convertToWriteWithNull()
throws com.opencsv.exceptions.CsvDataTypeMismatchException
com.opencsv.exceptions.CsvDataTypeMismatchExceptionpublic static Stream<org.junit.jupiter.params.provider.Arguments> buildIllegalUUIDValues()
@DisplayName(value="convertToRead handles illegal values.") @ParameterizedTest @MethodSource(value="buildIllegalUUIDValues") public void convertToReadWithBadValues(String uuidValue)
@DisplayName(value="convertToRead handles null and empty string values")
@ParameterizedTest
@NullAndEmptySource
@ValueSource(strings={" ","\t","\n"})
public void convertToReadWithNullEmptyOrWhiteSpace(String uuidValue)
throws com.opencsv.exceptions.CsvDataTypeMismatchException
com.opencsv.exceptions.CsvDataTypeMismatchExceptionCopyright © 2005–2025. All rights reserved.