chibenwa commented on code in PR #1643:
URL: https://github.com/apache/james-project/pull/1643#discussion_r1261430196
##########
server/data/data-jmap/src/test/java/org/apache/james/jmap/api/filtering/RuleTest.java:
##########
@@ -169,19 +169,19 @@ void builderShouldPreserveCondition() {
Rule rule = Rule.builder()
.id(UNIQUE_ID)
.name(NAME)
- .conditions(Arrays.asList(CONDITION))
+ .conditionGroup(Rule.ConditionGroup.of(Rule.ConditionCombiner.AND,
Arrays.asList(CONDITION)))
Review Comment:
```suggestion
.condition(CONDITION))
```
And add a method to your builder to avoid duplication?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]