File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ CSV files of various types.
5959 <dependency >
6060 <groupId >com.h2database</groupId >
6161 <artifactId >h2</artifactId >
62- <version >1.4.197 </version >
62+ <version >1.4.198 </version >
6363 <scope >test</scope >
6464 </dependency >
6565 </dependencies >
@@ -135,16 +135,16 @@ CSV files of various types.
135135
136136 <properties >
137137 <commons .release.version>1.6</commons .release.version>
138- <commons .release.desc>(Java 7 +)</commons .release.desc>
138+ <commons .release.desc>(Java 8 +)</commons .release.desc>
139139 <!-- The RC version used in the staging repository URL. -->
140140 <commons .rc.version>RC1</commons .rc.version>
141141 <commons .componentid>csv</commons .componentid>
142142 <commons .module.name>org.apache.commons.csv</commons .module.name>
143143 <commons .jira.id>CSV</commons .jira.id>
144144 <commons .jira.pid>12313222</commons .jira.pid>
145145 <project .inceptionYear>2005</project .inceptionYear>
146- <maven .compiler.source>1.7 </maven .compiler.source>
147- <maven .compiler.target>1.7 </maven .compiler.target>
146+ <maven .compiler.source>1.8 </maven .compiler.source>
147+ <maven .compiler.target>1.8 </maven .compiler.target>
148148 <!-- Ensure copies work OK (can be removed later when this is in parent POM) -->
149149 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
150150 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
Original file line number Diff line number Diff line change 5252
5353import org .apache .commons .io .FileUtils ;
5454import org .apache .commons .lang3 .StringUtils ;
55+ import org .h2 .tools .SimpleResultSet ;
5556import org .h2 .value .Value ;
5657import org .h2 .value .ValueArray ;
5758import org .junit .Assert ;
@@ -1259,9 +1260,7 @@ public void testPrintRecordsWithObjectArray() throws IOException {
12591260 @ Test
12601261 public void testPrintRecordsWithResultSetOneRow () throws IOException , SQLException {
12611262 try (CSVPrinter csvPrinter = CSVFormat .MYSQL .printer ()) {
1262- final Value [] valueArray = new Value [0 ];
1263- final ValueArray valueArrayTwo = ValueArray .get (valueArray );
1264- try (ResultSet resultSet = valueArrayTwo .getResultSet ()) {
1263+ try (ResultSet resultSet = new SimpleResultSet ()) {
12651264 csvPrinter .printRecords (resultSet );
12661265 assertEquals (0 , resultSet .getRow ());
12671266 }
You can’t perform that action at this time.
0 commit comments