@@ -190,57 +190,53 @@ public void testExternalTaggedUnion() {
190190 @ Test
191191 public void testBooleanEnum () {
192192
193- String templateJsonBooleanSubobject = """
194- {
195- "component_templates": [
196- {
197- "name": "test-template",
198- "component_template": {
199- "template": {
200- "mappings": {
201- "properties": {
202- "document": {
203- "subobjects": false,
204- "properties": {
205- "body.size": {
206- "type": "integer"
207- }
208- }
209- }
210- }
211- }
212- }
213- }
214- }
215- ]
216- }
217- """ ;
218-
219- String templateJsonStringSubobject = """
220- {
221- "component_templates": [
222- {
223- "name": "test-template",
224- "component_template": {
225- "template": {
226- "mappings": {
227- "properties": {
228- "document": {
229- "subobjects": "false",
230- "properties": {
231- "body.size": {
232- "type": "integer"
233- }
234- }
235- }
236- }
237- }
238- }
239- }
240- }
241- ]
242- }
243- """ ;
193+ String templateJsonBooleanSubobject = " {\n " +
194+ " \" component_templates\" : [\n " +
195+ " {\n " +
196+ " \" name\" : \" test-template\" ,\n " +
197+ " \" component_template\" : {\n " +
198+ " \" template\" : {\n " +
199+ " \" mappings\" : {\n " +
200+ " \" properties\" : {\n " +
201+ " \" document\" : {\n " +
202+ " \" subobjects\" : false,\n " +
203+ " \" properties\" : {\n " +
204+ " \" body.size\" : {\n " +
205+ " \" type\" : \" integer\" \n " +
206+ " }\n " +
207+ " }\n " +
208+ " }\n " +
209+ " }\n " +
210+ " }\n " +
211+ " }\n " +
212+ " }\n " +
213+ " }\n " +
214+ " ]\n " +
215+ " }" ;
216+
217+ String templateJsonStringSubobject = " {\n " +
218+ " \" component_templates\" : [\n " +
219+ " {\n " +
220+ " \" name\" : \" test-template\" ,\n " +
221+ " \" component_template\" : {\n " +
222+ " \" template\" : {\n " +
223+ " \" mappings\" : {\n " +
224+ " \" properties\" : {\n " +
225+ " \" document\" : {\n " +
226+ " \" subobjects\" : \" false\" ,\n " +
227+ " \" properties\" : {\n " +
228+ " \" body.size\" : {\n " +
229+ " \" type\" : \" integer\" \n " +
230+ " }\n " +
231+ " }\n " +
232+ " }\n " +
233+ " }\n " +
234+ " }\n " +
235+ " }\n " +
236+ " }\n " +
237+ " }\n " +
238+ " ]\n " +
239+ " }" ;
244240
245241 GetComponentTemplateResponse respBool = GetComponentTemplateResponse .of (t -> t
246242 .withJson (new StringReader (templateJsonBooleanSubobject )));
0 commit comments