-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to improve readability with a mini DSL
- Loading branch information
1 parent
499d501
commit d161159
Showing
4 changed files
with
57 additions
and
35 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
14 changes: 14 additions & 0 deletions
14
core/src/main/java/com/cosium/hal_mock_mvc/PropertyValidationOption.java
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,14 @@ | ||
package com.cosium.hal_mock_mvc; | ||
|
||
/** | ||
* @author Sébastien Le Ray | ||
* @author Réda Housni Alaoui | ||
*/ | ||
public sealed interface PropertyValidationOption permits PropertyValidationOption.Immediate { | ||
enum Immediate implements PropertyValidationOption { | ||
/** Do not fail if writing to a property not declared by the template */ | ||
DO_NOT_FAIL_IF_NOT_DECLARED, | ||
/** Do not fail if writing to a property declared as read-only by the template */ | ||
DO_NOT_FAIL_IF_DECLARED_READ_ONLY | ||
} | ||
} |
8 changes: 0 additions & 8 deletions
8
core/src/main/java/com/cosium/hal_mock_mvc/PropertyValidator.java
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