mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-28 07:26:56 +00:00
#566 - Refactor internals -OrmQueryDetailProperties - remove hasProperties()
This commit is contained in:
1 parent
3d3948aa8b
commit
439858b259
3 files changed
+25
-7
No files matched your search
@@ -16,6 +16,29 @@ public class OrmQueryDetailTest extends BaseTestCase {
|
||||
return new OrmQueryDetailParser(query).parse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isEmpty_when_empty() {
|
||||
|
||||
OrmQueryDetail detail = new OrmQueryDetail();
|
||||
assertThat(detail.isEmpty()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isEmpty_when_hasFetch_expect_false() {
|
||||
|
||||
OrmQueryDetail detail = new OrmQueryDetail();
|
||||
detail.fetch("customer", null, null);
|
||||
assertThat(detail.isEmpty()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isEmpty_when_hasSelect_expect_false() {
|
||||
|
||||
OrmQueryDetail detail = new OrmQueryDetail();
|
||||
detail.select("name");
|
||||
assertThat(detail.isEmpty()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isAutoTuneEqual_when_fetchOrderIsDifferent_then_stillEqual() {
|
||||
|
||||
|
||||
Reference in new issue
Block a user