mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1250 - Add explicit coverage for Enum with abstract method - no new issue
This commit is contained in:
@@ -1,6 +1,24 @@
|
||||
package org.tests.model.embedded;
|
||||
|
||||
public enum EAddressStatus {
|
||||
ONE,
|
||||
TWO
|
||||
|
||||
ONE("One") {
|
||||
@Override
|
||||
public String doIt() {
|
||||
return 10 + name;
|
||||
}
|
||||
},
|
||||
TWO("Two") {
|
||||
@Override
|
||||
public String doIt() {
|
||||
return 20 + name;
|
||||
}
|
||||
};
|
||||
|
||||
String name;
|
||||
|
||||
EAddressStatus(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public abstract String doIt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user