Update tests from H2 1.4.197 to 1.4.198.
This commit is contained in:
parent
483ba855f2
commit
4fd494d590
8
pom.xml
8
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>
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue