Update tests from H2 1.4.197 to 1.4.198.

This commit is contained in:
Gary Gregory 2019-02-23 09:21:19 -05:00
parent 483ba855f2
commit 4fd494d590
2 changed files with 6 additions and 7 deletions

View File

@ -59,7 +59,7 @@ CSV files of various types.
<dependency> <dependency>
<groupId>com.h2database</groupId> <groupId>com.h2database</groupId>
<artifactId>h2</artifactId> <artifactId>h2</artifactId>
<version>1.4.197</version> <version>1.4.198</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
@ -135,7 +135,7 @@ CSV files of various types.
<properties> <properties>
<commons.release.version>1.6</commons.release.version> <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. --> <!-- The RC version used in the staging repository URL. -->
<commons.rc.version>RC1</commons.rc.version> <commons.rc.version>RC1</commons.rc.version>
<commons.componentid>csv</commons.componentid> <commons.componentid>csv</commons.componentid>
@ -143,8 +143,8 @@ CSV files of various types.
<commons.jira.id>CSV</commons.jira.id> <commons.jira.id>CSV</commons.jira.id>
<commons.jira.pid>12313222</commons.jira.pid> <commons.jira.pid>12313222</commons.jira.pid>
<project.inceptionYear>2005</project.inceptionYear> <project.inceptionYear>2005</project.inceptionYear>
<maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
<!-- Ensure copies work OK (can be removed later when this is in parent POM) --> <!-- Ensure copies work OK (can be removed later when this is in parent POM) -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

View File

@ -52,6 +52,7 @@ import java.util.Vector;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.h2.tools.SimpleResultSet;
import org.h2.value.Value; import org.h2.value.Value;
import org.h2.value.ValueArray; import org.h2.value.ValueArray;
import org.junit.Assert; import org.junit.Assert;
@ -1259,9 +1260,7 @@ public class CSVPrinterTest {
@Test @Test
public void testPrintRecordsWithResultSetOneRow() throws IOException, SQLException { public void testPrintRecordsWithResultSetOneRow() throws IOException, SQLException {
try (CSVPrinter csvPrinter = CSVFormat.MYSQL.printer()) { try (CSVPrinter csvPrinter = CSVFormat.MYSQL.printer()) {
final Value[] valueArray = new Value[0]; try (ResultSet resultSet = new SimpleResultSet()) {
final ValueArray valueArrayTwo = ValueArray.get(valueArray);
try (ResultSet resultSet = valueArrayTwo.getResultSet()) {
csvPrinter.printRecords(resultSet); csvPrinter.printRecords(resultSet);
assertEquals(0, resultSet.getRow()); assertEquals(0, resultSet.getRow());
} }