mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-12-01 15:37:14 +00:00
#1126 - Regression bug in 10.4.5 with new line character use with SqlQuery, SqlUpdate and CallableSql
This commit is contained in:
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");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user