use of com.google.cloud.spanner.pgadapter.parsers.StringParser in project pgadapter by GoogleCloudPlatform.
the class ParserTest method testStringParsing.
@Test
public void testStringParsing() {
String value = "This is a String.";
byte[] stringResult = { 'T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'a', ' ', 'S', 't', 'r', 'i', 'n', 'g', '.' };
Parser parsedValue = new StringParser(value);
validate(parsedValue, stringResult, stringResult, stringResult);
validateCreateBinary(stringResult, Oid.VARCHAR, value);
validateCreateText(stringResult, Oid.VARCHAR, value);
}
Aggregations