Skip to content

Commit 4fd494d

Browse files
author
Gary Gregory
committed
Update tests from H2 1.4.197 to 1.4.198.
1 parent 483ba85 commit 4fd494d

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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>

src/test/java/org/apache/commons/csv/CSVPrinterTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252

5353
import org.apache.commons.io.FileUtils;
5454
import org.apache.commons.lang3.StringUtils;
55+
import org.h2.tools.SimpleResultSet;
5556
import org.h2.value.Value;
5657
import org.h2.value.ValueArray;
5758
import 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
}

0 commit comments

Comments
 (0)