This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-csv.git
The following commit(s) were added to refs/heads/master by this push: new 4fd494d Update tests from H2 1.4.197 to 1.4.198. 4fd494d is described below commit 4fd494d59042a08e7defae5c7e93937360113514 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Sat Feb 23 09:21:19 2019 -0500 Update tests from H2 1.4.197 to 1.4.198. --- pom.xml | 8 ++++---- src/test/java/org/apache/commons/csv/CSVPrinterTest.java | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 810161b..c51c112 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ CSV files of various types. <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> - <version>1.4.197</version> + <version>1.4.198</version> <scope>test</scope> </dependency> </dependencies> @@ -135,7 +135,7 @@ CSV files of various types. <properties> <commons.release.version>1.6</commons.release.version> - <commons.release.desc>(Java 7+)</commons.release.desc> + <commons.release.desc>(Java 8+)</commons.release.desc> <!-- The RC version used in the staging repository URL. --> <commons.rc.version>RC1</commons.rc.version> <commons.componentid>csv</commons.componentid> @@ -143,8 +143,8 @@ CSV files of various types. <commons.jira.id>CSV</commons.jira.id> <commons.jira.pid>12313222</commons.jira.pid> <project.inceptionYear>2005</project.inceptionYear> - <maven.compiler.source>1.7</maven.compiler.source> - <maven.compiler.target>1.7</maven.compiler.target> + <maven.compiler.source>1.8</maven.compiler.source> + <maven.compiler.target>1.8</maven.compiler.target> <!-- Ensure copies work OK (can be removed later when this is in parent POM) --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> diff --git a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java index 84f88e5..53a690e 100644 --- a/src/test/java/org/apache/commons/csv/CSVPrinterTest.java +++ b/src/test/java/org/apache/commons/csv/CSVPrinterTest.java @@ -52,6 +52,7 @@ import java.util.Vector; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.StringUtils; +import org.h2.tools.SimpleResultSet; import org.h2.value.Value; import org.h2.value.ValueArray; import org.junit.Assert; @@ -1259,9 +1260,7 @@ public class CSVPrinterTest { @Test public void testPrintRecordsWithResultSetOneRow() throws IOException, SQLException { try (CSVPrinter csvPrinter = CSVFormat.MYSQL.printer()) { - final Value[] valueArray = new Value[0]; - final ValueArray valueArrayTwo = ValueArray.get(valueArray); - try (ResultSet resultSet = valueArrayTwo.getResultSet()) { + try (ResultSet resultSet = new SimpleResultSet()) { csvPrinter.printRecords(resultSet); assertEquals(0, resultSet.getRow()); }