#1126 - Regression bug in 10.4.5 with new line character use with SqlQuery, SqlUpdate and CallableSql

This commit is contained in:
rob bygrave committed 2017-09-13 21:14:19 +12:00
1 parent a6e4e181bf
commit 1e6678cbb4
8 files changed
+66 -16

No files matched your search

@@ -0,0 +1,16 @@
package io.ebeaninternal.server.persist;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class TrimLogSqlTest {
@Test
public void trim() throws Exception {
assertThat(TrimLogSql.trim("hello")).isEqualTo("hello");
assertThat(TrimLogSql.trim("hello\nthere")).isEqualTo("hello\\n there");
}
}