Skip to content

Commit f997002

Browse files
committed
checkstyle
1 parent 2034299 commit f997002

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

java-client/src/test/java/co/elastic/clients/elasticsearch/model/VariantsTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import co.elastic.clients.testkit.ModelTestCase;
3535
import org.junit.jupiter.api.Test;
3636

37-
import java.io.StringReader;
3837
import java.util.function.Consumer;
3938

4039
public class VariantsTest extends ModelTestCase {
@@ -289,7 +288,16 @@ public void testContainerWithOptionalVariants() {
289288
@Test
290289
public void testBooleanVariantTag() {
291290

292-
String jsonT = "{\"indices\":{\"test\":{\"index\":\"test\",\"managed\":true,\"policy\":\"my_policy\",\"index_creation_date_millis\":1736785235558,\"time_since_index_creation\":\"27.75d\",\"lifecycle_date_millis\":1736785235558,\"age\":\"27.75d\",\"phase\":\"warm\",\"phase_time_millis\":1739183166898,\"action\":\"migrate\",\"action_time_millis\":1739183166898,\"step\":\"check-migration\",\"step_time_millis\":1739183166898,\"step_info\":{\"message\":\"Waiting for all shard copies to be active\",\"shards_left_to_allocate\":-1,\"all_shards_active\":false,\"number_of_replicas\":1},\"phase_execution\":{\"policy\":\"my_policy\",\"phase_definition\":{\"min_age\":\"10d\",\"actions\":{\"forcemerge\":{\"max_num_segments\":1}}},\"version\":1,\"modified_date_in_millis\":1739183005443}}}}";
291+
String jsonT = "{\"indices\":{\"test\":{\"index\":\"test\",\"managed\":true,\"policy\":\"my_policy\"," +
292+
"\"index_creation_date_millis\":1736785235558,\"time_since_index_creation\":\"27.75d\"," +
293+
"\"lifecycle_date_millis\":1736785235558,\"age\":\"27.75d\",\"phase\":\"warm\"," +
294+
"\"phase_time_millis\":1739183166898,\"action\":\"migrate\",\"action_time_millis\":1739183166898," +
295+
"\"step\":\"check-migration\",\"step_time_millis\":1739183166898," +
296+
"\"step_info\":{\"message\":\"Waiting for all shard copies to be active\"," +
297+
"\"shards_left_to_allocate\":-1,\"all_shards_active\":false,\"number_of_replicas\":1}," +
298+
"\"phase_execution\":{\"policy\":\"my_policy\",\"phase_definition\":{\"min_age\":\"10d\"," +
299+
"\"actions\":{\"forcemerge\":{\"max_num_segments\":1}}},\"version\":1," +
300+
"\"modified_date_in_millis\":1739183005443}}}}";
293301

294302
ExplainLifecycleResponse respT = fromJson(jsonT,ExplainLifecycleResponse.class);
295303

0 commit comments

Comments
 (0)