Use final

This commit is contained in:
Gary Gregory 2024-02-03 13:05:30 -05:00
parent 6729c8530a
commit 998e4642d4
1 changed files with 3 additions and 3 deletions

View File

@ -937,14 +937,14 @@ public class CSVFormatTest {
@Test
public void testQuoteModeNoneShouldReturnMeaningfulExceptionMessage() {
Exception exception = assertThrows(IllegalArgumentException.class, () -> {
final Exception exception = assertThrows(IllegalArgumentException.class, () -> {
CSVFormat.DEFAULT.builder()
.setHeader("Col1", "Col2", "Col3", "Col4")
.setQuoteMode(QuoteMode.NONE)
.build();
});
String actualMessage = exception.getMessage();
String expectedMessage = "Quote mode set to NONE but no escape character is set";
final String actualMessage = exception.getMessage();
final String expectedMessage = "Quote mode set to NONE but no escape character is set";
assertEquals(expectedMessage, actualMessage);
}