diff --git a/flipt-java/src/main/java/com/flipt/api/evaluation/models/BatchEvaluationRequest.java b/flipt-java/src/main/java/com/flipt/api/evaluation/models/BatchEvaluationRequest.java index ea84411..e1e6861 100644 --- a/flipt-java/src/main/java/com/flipt/api/evaluation/models/BatchEvaluationRequest.java +++ b/flipt-java/src/main/java/com/flipt/api/evaluation/models/BatchEvaluationRequest.java @@ -11,7 +11,8 @@ public class BatchEvaluationRequest { private final List requests; private Optional reference; - public BatchEvaluationRequest(Optional requestId, List requests, Optional reference) { + public BatchEvaluationRequest( + Optional requestId, List requests, Optional reference) { this.requestId = requestId; this.requests = requests; this.reference = reference; diff --git a/flipt-java/src/main/java/com/flipt/api/evaluation/models/EvaluationRequest.java b/flipt-java/src/main/java/com/flipt/api/evaluation/models/EvaluationRequest.java index 1777a95..c7086ce 100644 --- a/flipt-java/src/main/java/com/flipt/api/evaluation/models/EvaluationRequest.java +++ b/flipt-java/src/main/java/com/flipt/api/evaluation/models/EvaluationRequest.java @@ -14,7 +14,11 @@ public class EvaluationRequest { private final Optional reference; public EvaluationRequest( - String namespaceKey, String flagKey, String entityId, Map context, Optional reference) { + String namespaceKey, + String flagKey, + String entityId, + Map context, + Optional reference) { this.namespaceKey = namespaceKey; this.flagKey = flagKey; this.entityId = entityId; diff --git a/flipt-java/src/main/java/example/Main.java b/flipt-java/src/main/java/example/Main.java index 56ac6cf..d4cb035 100644 --- a/flipt-java/src/main/java/example/Main.java +++ b/flipt-java/src/main/java/example/Main.java @@ -31,6 +31,7 @@ public static void main(String[] args) { BatchEvaluationResponse batchEvaluationResponse = fliptClient .evaluation() - .batch(new BatchEvaluationRequest(Optional.of(""), evaluationRequests, Optional.empty())); + .batch( + new BatchEvaluationRequest(Optional.of(""), evaluationRequests, Optional.empty())); } } diff --git a/flipt-java/src/test/java/TestFliptClient.java b/flipt-java/src/test/java/TestFliptClient.java index 2ed2660..62c59cf 100644 --- a/flipt-java/src/test/java/TestFliptClient.java +++ b/flipt-java/src/test/java/TestFliptClient.java @@ -18,7 +18,9 @@ void testVariant() { Map context = new HashMap<>(); context.put("fizz", "buzz"); VariantEvaluationResponse variant = - fc.evaluation().variant(new EvaluationRequest("default", "flag1", "entity", context, Optional.empty())); + fc.evaluation() + .variant( + new EvaluationRequest("default", "flag1", "entity", context, Optional.empty())); Assertions.assertTrue(variant.isMatch()); Assertions.assertEquals("flag1", variant.getFlagKey()); @@ -42,7 +44,9 @@ void testBoolean() { BooleanEvaluationResponse booleanEvaluation = fc.evaluation() - .booleanEvaluation(new EvaluationRequest("default", "flag_boolean", "entity", context, Optional.empty())); + .booleanEvaluation( + new EvaluationRequest( + "default", "flag_boolean", "entity", context, Optional.empty())); Assertions.assertTrue(booleanEvaluation.isEnabled()); Assertions.assertEquals("flag_boolean", booleanEvaluation.getFlagKey()); @@ -75,7 +79,9 @@ void testBatch() { evaluationRequests.add(errorEvaluationRequest); BatchEvaluationResponse batch = - fc.evaluation().batch(new BatchEvaluationRequest(Optional.of(""), evaluationRequests, Optional.empty())); + fc.evaluation() + .batch( + new BatchEvaluationRequest(Optional.of(""), evaluationRequests, Optional.empty())); // Variant EvaluationResponse first = batch.getResponses().get(0); diff --git a/flipt-rust/tests/integration.rs b/flipt-rust/tests/integration.rs index 44befd5..14e99d1 100644 --- a/flipt-rust/tests/integration.rs +++ b/flipt-rust/tests/integration.rs @@ -65,7 +65,10 @@ async fn tests() { reference: None, }); - let batch_request = BatchEvaluationRequest { requests, reference: None }; + let batch_request = BatchEvaluationRequest { + requests, + reference: None, + }; let batch = flipt_client.evaluation.batch(&batch_request).await.unwrap(); // Variant