mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
#2361 - Tidy tests only, move to LoggedSql (ebean-test)
This commit is contained in:
1 parent
e5dceda4b9
commit
1696caadd4
163 files changed
+1024
-1179
No files matched your search
@@ -2,7 +2,7 @@ package org.tests.iud;
|
||||
|
||||
import io.avaje.moduuid.ModUUID;
|
||||
import io.ebean.BaseTestCase;
|
||||
import org.ebeantest.LoggedSqlCollector;
|
||||
import io.ebean.test.LoggedSql;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.List;
|
||||
@@ -21,10 +21,10 @@ public class TestPersistCascade extends BaseTestCase {
|
||||
country.addCity(new PcfCity("city_" + ModUUID.newShortId(), mayor, viceMayor));
|
||||
}
|
||||
|
||||
LoggedSqlCollector.start();
|
||||
LoggedSql.start();
|
||||
country.save();
|
||||
|
||||
final List<String> sql = LoggedSqlCollector.stop();
|
||||
final List<String> sql = LoggedSql.stop();
|
||||
|
||||
if (isPersistBatchOnCascade()) {
|
||||
assertSql(sql.get(0)).contains("insert into pcf_country");
|
||||
|
||||
Reference in new issue
Block a user