Skip to content

Commit

Permalink
improvement: added not like/contains filters
Browse files Browse the repository at this point in the history
  • Loading branch information
emajo authored May 27, 2024
1 parent 28a3b26 commit ec99760
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/it/fattureincloud/sdk/filter/Operator.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public enum Operator {
IS_NOT("is not"),
LIKE("like"),
CONTAINS("contains"),
NOT_LIKE("not like"),
NOT_CONTAINS("not contains"),
STARTS_WITH("starts with"),
ENDS_WITH("ends with");

Expand Down
6 changes: 6 additions & 0 deletions src/test/java/it/fattureincloud/sdk/filter/OperatorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ public void testOperator() {
Operator contains = Operator.CONTAINS;
assertEquals("contains", contains.getSymbol());

Operator notLike = Operator.NOT_LIKE;
assertEquals("not like", notLike.getSymbol());

Operator notContains = Operator.NOT_CONTAINS;
assertEquals("not contains", notContains.getSymbol());

Operator startsWith = Operator.STARTS_WITH;
assertEquals("starts with", startsWith.getSymbol());

Expand Down

0 comments on commit ec99760

Please sign in to comment.