use of com.torodb.kvdocument.values.heap.StringKvString in project torodb by torodb.
the class PostgreSqlValueToCopyConverterTest method testStringWithBackslash.
@Test
public void testStringWithBackslash() {
new StringKvString("a string with a \\").accept(visitor, sb);
assertEquals("a string with a \\\\", sb.toString());
}
use of com.torodb.kvdocument.values.heap.StringKvString in project torodb by torodb.
the class PostgreSqlValueToCopyConverterTest method testStringWithNewLine.
@Test
public void testStringWithNewLine() {
new StringKvString("a string with a \n").accept(visitor, sb);
assertEquals("a string with a \\\n", sb.toString());
}
use of com.torodb.kvdocument.values.heap.StringKvString in project torodb by torodb.
the class PostgreSqlValueToCopyConverterTest method testStringSimple.
@Test
public void testStringSimple() {
new StringKvString("simple string").accept(visitor, sb);
assertEquals("simple string", sb.toString());
}
use of com.torodb.kvdocument.values.heap.StringKvString in project torodb by torodb.
the class PostgreSqlValueToCopyConverterTest method testStringNull.
@Test
public void testStringNull() {
new StringKvString("a string with a \\N and null literal").accept(visitor, sb);
assertEquals("a string with a \\\\N and null literal", sb.toString());
}
use of com.torodb.kvdocument.values.heap.StringKvString in project torodb by torodb.
the class PostgreSqlValueToCopyConverterTest method testStringWithTab.
@Test
public void testStringWithTab() {
new StringKvString("a string with a \t").accept(visitor, sb);
assertEquals("a string with a \\\t", sb.toString());
}
Aggregations