@@ -20,21 +20,21 @@ static class ABC {
20
20
public String b = "b" ;
21
21
public String c = "c" ;
22
22
}
23
-
23
+
24
24
/*
25
25
/**********************************************************************
26
26
/* Test methods
27
27
/**********************************************************************
28
28
*/
29
29
30
- final CsvMapper MAPPER = mapperForCsv ();
30
+ private final CsvMapper MAPPER = mapperForCsv ();
31
31
32
- final CsvSchema SCHEMA = MAPPER .schemaFor (ABC .class );
32
+ private final CsvSchema SCHEMA_ABC = MAPPER .schemaFor (ABC .class );
33
33
34
34
// by default, just... ignore
35
35
public void testDefaultMissingHandling () throws Exception
36
36
{
37
- ObjectReader r = MAPPER .readerFor (ABC .class ).with (SCHEMA );
37
+ ObjectReader r = MAPPER .readerFor (ABC .class ).with (SCHEMA_ABC );
38
38
final ABC DEFAULT = new ABC ();
39
39
40
40
ABC result = r .readValue ("first,second,third\n " );
@@ -65,7 +65,7 @@ public void testDefaultMissingHandling() throws Exception
65
65
public void testInjectMissingAsNulls () throws Exception
66
66
{
67
67
ObjectReader r = MAPPER .readerFor (ABC .class )
68
- .with (SCHEMA )
68
+ .with (SCHEMA_ABC )
69
69
.with (CsvParser .Feature .INSERT_NULLS_FOR_MISSING_COLUMNS );
70
70
71
71
// check with various number of missing; but first with no missing
@@ -95,7 +95,7 @@ public void testInjectMissingAsNulls() throws Exception
95
95
public void testFailOnMissingColumns () throws Exception
96
96
{
97
97
ObjectReader r = MAPPER .readerFor (ABC .class )
98
- .with (SCHEMA )
98
+ .with (SCHEMA_ABC )
99
99
.with (CsvParser .Feature .FAIL_ON_MISSING_COLUMNS );
100
100
101
101
// check with various number of missing, as well as recovery
0 commit comments