mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
fixed tests and double escaping of escape symbols
This commit is contained in:
@@ -31,7 +31,8 @@ public class BindingEscapingTest {
|
||||
|
||||
@Test
|
||||
public void testEscapedBindings() {
|
||||
DataMapper<String> mapper = VirtData.getMapper("Template('\"-{}-\"Func(234)\\\"\\)',NumberNameToString());'",String.class);
|
||||
DataMapper<String> mapper = VirtData.getMapper("Template('\"-{}-\"Func(234)\\\\\"\\\\)',NumberNameToString())" +
|
||||
";'",String.class);
|
||||
String s = mapper.get(234);
|
||||
assertThat(s).isEqualTo("\"-two hundred and thirty four-\"Func(234)\\\"\\)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user