Skip to content

Commit

Permalink
fix test severalExperimenstWithTrueRules
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Nov 4, 2024
1 parent 8311470 commit 77ad29c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ public void experimentWithTrueRules() throws DotDataException, DotSecurityExcept
public void severalExperimenstWithTrueRules() throws DotDataException, DotSecurityException {
final TargetingCondition targetingCondition = TargetingCondition.builder()
.conditionKey("RequestAttributeConditionlet")
.values((Map<String, String>) map("comparison", "is", "request-attribute",
.values((Map<String, String>) Map.of("comparison", "is", "request-attribute",
"testing-attribute", "request-attribute-value", "testing"))
.operator(LogicalOperator.AND)
.build();
Expand Down Expand Up @@ -944,6 +944,7 @@ public void severalExperimenstWithTrueRules() throws DotDataException, DotSecuri

final HttpServletRequest request = mock(HttpServletRequest.class);
when(request.getAttribute("testing-attribute")).thenReturn("testing");
when(request.getParameter("host_id")).thenReturn(host.getIdentifier());

for (int i = 0; i < 100; i++) {
final DotCMSMockResponse response = new DotCMSMockResponse();
Expand Down

0 comments on commit 77ad29c

Please sign in to comment.