Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Refactor PlayEnumSpec for DRYness and coverage
- Fix bug found in PlayUppercaseQueryBindableEnum
- Loading branch information
Showing
4 changed files
with
205 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package enumeratum | ||
|
||
/** | ||
* Created by Lloyd on 2/4/15. | ||
*/ | ||
sealed trait PlayDummyNormal extends EnumEntry | ||
|
||
object PlayDummyNormal extends PlayEnum[PlayDummyNormal] { | ||
case object A extends PlayDummyNormal | ||
case object B extends PlayDummyNormal | ||
case object c extends PlayDummyNormal | ||
val values = findValues | ||
} | ||
|
||
sealed trait PlayDummyLowerOnly extends EnumEntry | ||
|
||
object PlayDummyLowerOnly extends PlayLowercaseEnum[PlayDummyLowerOnly] { | ||
case object A extends PlayDummyLowerOnly | ||
case object B extends PlayDummyLowerOnly | ||
case object c extends PlayDummyLowerOnly | ||
val values = findValues | ||
} | ||
|
||
sealed trait PlayDummyUpperOnly extends EnumEntry | ||
|
||
object PlayDummyUpperOnly extends PlayUppercaseEnum[PlayDummyUpperOnly] { | ||
case object A extends PlayDummyUpperOnly | ||
case object B extends PlayDummyUpperOnly | ||
case object c extends PlayDummyUpperOnly | ||
val values = findValues | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters