Skip to content

Commit 03d4035

Browse files
committed
spotlessApply
Signed-off-by: Hailong Cui <ihailong@amazon.com>
1 parent 7177987 commit 03d4035

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

ml-algorithms/src/test/java/org/opensearch/ml/engine/algorithms/agent/MLPlanExecuteAndReflectAgentRunnerTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ public void testExtractJsonFromMarkdownWithoutJsonPrefix() {
458458
assertEquals("{\"key\":\"value\"}", result);
459459
}
460460

461-
462461
@Test
463462
public void testAddToolsToPrompt() {
464463
Map<String, String> testParams = new HashMap<>();

ml-algorithms/src/test/java/org/opensearch/ml/engine/tools/IndexMappingToolTests.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -189,28 +189,28 @@ public void testRunWithRawIndexNameInput() throws Exception {
189189
Settings settings = Settings.builder().put("test.boolean.setting", false).put("test.int.setting", 123).build();
190190
when(getIndexResponse.settings()).thenReturn(Map.of(indexName, settings));
191191
String source = """
192-
{
193-
"foo": {
194-
"mappings": {
195-
"year": {
196-
"full_name": "year",
197-
"mapping": {
198-
"year": {
199-
"type": "text"
200-
}
192+
{
193+
"foo": {
194+
"mappings": {
195+
"year": {
196+
"full_name": "year",
197+
"mapping": {
198+
"year": {
199+
"type": "text"
201200
}
202-
},
203-
"age": {
204-
"full_name": "age",
205-
"mapping": {
206-
"age": {
207-
"type": "integer"
208-
}
201+
}
202+
},
203+
"age": {
204+
"full_name": "age",
205+
"mapping": {
206+
"age": {
207+
"type": "integer"
209208
}
210209
}
211210
}
212211
}
213-
}""";
212+
}
213+
}""";
214214
MappingMetadata mapping = new MappingMetadata(indexName, XContentHelper.convertToMap(JsonXContent.jsonXContent, source, true));
215215
when(getIndexResponse.mappings()).thenReturn(Map.of(indexName, mapping));
216216

@@ -230,8 +230,8 @@ public void testRunWithRawIndexNameInput() throws Exception {
230230

231231
assertTrue(responseList.contains("mappings:"));
232232
assertTrue(
233-
responseList
234-
.contains("mappings={year={full_name=year, mapping={year={type=text}}}, age={full_name=age, mapping={age={type=integer}}}}")
233+
responseList
234+
.contains("mappings={year={full_name=year, mapping={year={type=text}}}, age={full_name=age, mapping={age={type=integer}}}}")
235235
);
236236

237237
assertTrue(responseList.contains("settings:"));

0 commit comments

Comments
 (0)