#1250 - Add explicit coverage for Enum with abstract method - no new issue

This commit is contained in:
Rob Bygrave
2018-02-07 14:01:11 +13:00
parent 77a4e684bb
commit 478bba292d
2 changed files with 32 additions and 2 deletions
@@ -3,6 +3,7 @@ package org.tests.embedded;
import io.ebean.Ebean;
import org.junit.Test;
import org.tests.model.embedded.EAddress;
import org.tests.model.embedded.EAddressStatus;
import org.tests.model.embedded.EPerson;
public class TestEmbeddedEmpty {
@@ -21,4 +22,15 @@ public class TestEmbeddedEmpty {
// treat all embedded properties as loaded
person.getAddress().getCity();
}
@Test
public void testAbstractEnumBinding() {
EAddressStatus.TWO.doIt();
Ebean.find(EPerson.class)
.where().eq("address.status", EAddressStatus.TWO)
.findList();
}
}