Skip to content

Commit 4282895

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent cabb750 commit 4282895

File tree

1 file changed

+11
-2
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/convert

1 file changed

+11
-2
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/convert/UrlEncodeTests.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ public static Iterable<Object[]> parameters() {
4444
suppliers.add(new TestCaseSupplier(List.of(dataType), () -> createTestCaseWithRandomUrl(dataType)));
4545

4646
for (TestCaseSupplier.TypedDataSupplier supplier : TestCaseSupplier.stringCases(dataType)) {
47-
suppliers.add(new TestCaseSupplier(supplier.name(), List.of(supplier.type()), () -> createTestCaseWithRandomString(dataType, supplier)));
47+
suppliers.add(
48+
new TestCaseSupplier(
49+
supplier.name(),
50+
List.of(supplier.type()),
51+
() -> createTestCaseWithRandomString(dataType, supplier)
52+
)
53+
);
4854
}
4955
}
5056

@@ -70,7 +76,10 @@ private static TestCaseSupplier.TestCase createTestCaseWithRandomUrl(DataType da
7076
);
7177
}
7278

73-
private static TestCaseSupplier.TestCase createTestCaseWithRandomString(DataType dataType, TestCaseSupplier.TypedDataSupplier supplier) {
79+
private static TestCaseSupplier.TestCase createTestCaseWithRandomString(
80+
DataType dataType,
81+
TestCaseSupplier.TypedDataSupplier supplier
82+
) {
7483
TestCaseSupplier.TypedData fieldTypedData = supplier.get();
7584
BytesRef input = BytesRefs.toBytesRef(fieldTypedData.data());
7685
BytesRef output = new BytesRef(URLEncoder.encode(input.utf8ToString(), StandardCharsets.UTF_8));

0 commit comments

Comments
 (0)