@@ -0,0 +1,2364 @@
+/*%0A * Microsoft JDBC Driver for SQL Server%0A * %0A * Copyright(c) Microsoft Corporation All rights reserved.%0A * %0A * This program is made available under the terms of the MIT License. See the LICENSE file in the project root for more information.%0A */%0Apackage com.microsoft.sqlserver.jdbc.resultset;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;%0A%0Aimport java.sql.Connection;%0Aimport java.sql.DatabaseMetaData;%0Aimport java.sql.DriverManager;%0Aimport java.sql.ResultSet;%0Aimport java.sql.SQLException;%0A%0Aimport org.junit.jupiter.api.AfterAll;%0Aimport org.junit.jupiter.api.BeforeAll;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.platform.runner.JUnitPlatform;%0Aimport org.junit.runner.RunWith;%0A%0Aimport com.microsoft.sqlserver.jdbc.SQLServerResultSet;%0Aimport com.microsoft.sqlserver.jdbc.SQLServerResultSet42;%0Aimport com.microsoft.sqlserver.testframework.AbstractTest;%0A%0A/**%0A * Test SQLServerResultSet42 class%0A *%0A */%0A@RunWith(JUnitPlatform.class)%0Apublic class ResultSetWrapper42Test extends AbstractTest %7B%0A    static Connection connection = null;%0A    double javaVersion = Double.parseDouble(System.getProperty(%22java.specification.version%22));%0A    static int major;%0A    static int minor;%0A%0A    /**%0A     * Tests creation of SQLServerResultSet42 object%0A     * %0A     * @throws SQLException%0A     */%0A    @Test%0A    public void SQLServerResultSet42Test() throws SQLException %7B%0A        String sql = %22SELECT SUSER_SNAME()%22;%0A%0A        ResultSet rs = null;%0A        try %7B%0A            rs = connection.createStatement().executeQuery(sql);%0A%0A            if (1.8d %3C= javaVersion && 4 == major && 2 == minor) %7B%0A                assertTrue(rs instanceof SQLServerResultSet42);%0A            %7D%0A            else %7B%0A                assertTrue(rs instanceof SQLServerResultSet);%0A            %7D%0A        %7D%0A        finally %7B%0A            if (null != rs) %7B%0A                rs.close();%0A            %7D%0A        %7D%0A    %7D%0A%0A    @BeforeAll%0A    private static void setupConnection() throws SQLException %7B%0A        connection = DriverManager.getConnection(connectionString);%0A%0A        DatabaseMetaData metadata = connection.getMetaData();%0A        major = metadata.getJDBCMajorVersion();%0A        minor = metadata.getJDBCMinorVersion();%0A    %7D%0A%0A    @AfterAll%0A    private static void terminateVariation() throws SQLException %7B%0A        if (null != connection) %7B%0A            connection.close();%0A        %7D%0A    %7D%0A%0A%7D%0A

add test for SQLServerResultSet42