/**
 * 
 */
package com.microsoft.sqlserver.jdbc.datatypes;

import java.util.Arrays;

import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;
import static org.junit.jupiter.api.Assertions.assertTrue;

import com.microsoft.sqlserver.testframework.AbstractTest;

@RunWith(JUnitPlatform.class)
public class Utils extends AbstractTest {

    
    public static boolean parseByte(byte[] expectedData,
            byte[] retrieved) {
        assertTrue(Arrays.equals(expectedData, Arrays.copyOf(retrieved, expectedData.length)), " unexpected BINARY value, expected");
        for (int i = expectedData.length; i < retrieved.length; i++) {
            assertTrue(0 == retrieved[i], "unexpected data BINARY");
        }
        return true;
    }
}

Revert "removed some unused code, added check for server version"
Revert "removed some unused code, added check for server version"

This reverts commit 1b36778e9e64700c7f6acb66c8002846e070c328.
