@@ -38,7 +38,7 @@ public void setUp() throws Exception {
38
38
}
39
39
40
40
@ Test
41
- public void testUnmarshal_Basic () throws IOException {
41
+ public void testUnmarshal_Basic () {
42
42
RecordUnmarshaller unmarshaller = factory .createUnmarshaller ();
43
43
String [] actual = (String []) unmarshaller .unmarshal ("1\t 2\t 33\t 444\t " );
44
44
@@ -47,7 +47,7 @@ public void testUnmarshal_Basic() throws IOException {
47
47
}
48
48
49
49
@ Test
50
- public void testUnmarshal_EscapeDisabled () throws IOException {
50
+ public void testUnmarshal_EscapeDisabled () {
51
51
factory .setEscape (null );
52
52
53
53
RecordUnmarshaller unmarshaller = factory .createUnmarshaller ();
@@ -57,7 +57,7 @@ public void testUnmarshal_EscapeDisabled() throws IOException {
57
57
}
58
58
59
59
@ Test
60
- public void testUnmarshal_EscapeEscape () throws IOException {
60
+ public void testUnmarshal_EscapeEscape () {
61
61
factory .setEscape ('\\' );
62
62
63
63
RecordUnmarshaller unmarshaller = factory .createUnmarshaller ();
@@ -67,7 +67,7 @@ public void testUnmarshal_EscapeEscape() throws IOException {
67
67
}
68
68
69
69
@ Test
70
- public void testUnmarshal_EscapeDelimiter () throws IOException {
70
+ public void testUnmarshal_EscapeDelimiter () {
71
71
factory .setEscape ('\\' );
72
72
73
73
RecordUnmarshaller unmarshaller = factory .createUnmarshaller ();
@@ -77,7 +77,7 @@ public void testUnmarshal_EscapeDelimiter() throws IOException {
77
77
}
78
78
79
79
@ Test
80
- public void testUnmarshal_EscapeOther () throws IOException {
80
+ public void testUnmarshal_EscapeOther () {
81
81
factory .setEscape ('\\' );
82
82
83
83
RecordUnmarshaller unmarshaller = factory .createUnmarshaller ();
@@ -87,7 +87,7 @@ public void testUnmarshal_EscapeOther() throws IOException {
87
87
}
88
88
89
89
@ Test
90
- public void testUnmarshal_CustomDelimiter () throws IOException {
90
+ public void testUnmarshal_CustomDelimiter () {
91
91
factory .setDelimiter (',' );
92
92
93
93
RecordUnmarshaller unmarshaller = factory .createUnmarshaller ();
@@ -111,14 +111,14 @@ public void testMarshal_DelimiterIsEscape() {
111
111
}
112
112
113
113
@ Test
114
- public void testMarshal_DefaultConfiguration () throws IOException {
114
+ public void testMarshal_DefaultConfiguration () {
115
115
RecordMarshaller marshaller = factory .createMarshaller ();
116
116
String record = marshaller .marshal (new String [] { "value1" , "value\t 2" });
117
117
assertEquals ("value1\t value\t 2" , record );
118
118
}
119
119
120
120
@ Test
121
- public void testMarshal_CustomDelimiter () throws IOException {
121
+ public void testMarshal_CustomDelimiter () {
122
122
factory .setDelimiter (',' );
123
123
124
124
RecordMarshaller marshaller = factory .createMarshaller ();
@@ -127,7 +127,7 @@ public void testMarshal_CustomDelimiter() throws IOException {
127
127
}
128
128
129
129
@ Test
130
- public void testMarshal_CustomDelimiterAndEscape () throws IOException {
130
+ public void testMarshal_CustomDelimiterAndEscape () {
131
131
factory .setDelimiter (',' );
132
132
factory .setEscape ('\\' );
133
133
@@ -137,14 +137,14 @@ public void testMarshal_CustomDelimiterAndEscape() throws IOException {
137
137
}
138
138
139
139
@ Test
140
- public void testMarshal_DefaultFactoryConfiguration () throws IOException {
140
+ public void testMarshal_DefaultFactoryConfiguration () {
141
141
RecordMarshaller marshaller = factory .createMarshaller ();
142
142
String record = marshaller .marshal (new String [] { "value1" , "value\t 2" });
143
143
assertEquals ("value1\t value\t 2" , record );
144
144
}
145
145
146
146
@ Test
147
- public void testMarshal_CustomFactoryConfiguration () throws IOException {
147
+ public void testMarshal_CustomFactoryConfiguration () {
148
148
factory .setDelimiter (',' );
149
149
factory .setEscape ('\\' );
150
150
factory .setRecordTerminator ("" );
0 commit comments