mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
Refactor move tests from ebean-core to ebean-test
This commit is contained in:
1 parent
0b00a14fd3
commit
eab56d323b
1650 files changed
+185
-147
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package io.ebeaninternal.server.persist;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class TrimLogSqlTest {
|
||||
|
||||
@Test
|
||||
public void trim() {
|
||||
assertThat(TrimLogSql.trim("hello")).isEqualTo("hello");
|
||||
assertThat(TrimLogSql.trim("hello\nthere")).isEqualTo("hello\\n there");
|
||||
assertThat(TrimLogSql.trim("a\nb\nc\nd")).isEqualTo("a\\n b\\n c\\n d");
|
||||
assertThat(TrimLogSql.trim("a\n\nb")).isEqualTo("a\\n \\n b");
|
||||
assertThat(TrimLogSql.trim("\n\n\n")).isEqualTo("\\n \\n \\n ");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user