Skip to content

Commit b3635f3

Browse files
committed
- build: fix new line on windows
1 parent 49088f1 commit b3635f3

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

modules/jooby-openapi/src/test/java/issues/i3820/PebbleSupportTest.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void tags(OpenAPIExt openapi) throws IOException {
113113
var templates = new PebbleTemplateSupport(CurrentDir.testClass(getClass(), "adoc"), openapi);
114114
templates
115115
.evaluateThat("{{tag(\"Library\").description }}")
116-
.isEqualTo(
116+
.isEqualToIgnoringNewLines(
117117
"Outlines the available actions in the Library System API. The system is designed to"
118118
+ " allow users to search for books, view details, and manage the library"
119119
+ " inventory.");
@@ -125,7 +125,7 @@ public void schema(OpenAPIExt openapi) throws IOException {
125125

126126
templates
127127
.evaluateThat("{{schema(\"Book\") | truncate | json}}")
128-
.isEqualTo(
128+
.isEqualToIgnoringNewLines(
129129
"""
130130
[source, json]
131131
----
@@ -143,7 +143,7 @@ public void schema(OpenAPIExt openapi) throws IOException {
143143

144144
templates
145145
.evaluateThat("{{schema(\"Book\") | truncate | yaml(false) }}")
146-
.isEqualTo(
146+
.isEqualToIgnoringNewLines(
147147
"""
148148
isbn: string
149149
title: string
@@ -267,7 +267,7 @@ public void curl(OpenAPIExt openapi) throws IOException {
267267

268268
templates
269269
.evaluateThat("{{POST(\"/library/authors\") | curl }}")
270-
.isEqualTo(
270+
.isEqualToIgnoringNewLines(
271271
"""
272272
[source]
273273
----
@@ -282,7 +282,7 @@ public void curl(OpenAPIExt openapi) throws IOException {
282282

283283
templates
284284
.evaluateThat("{{POST(\"/library/books\") | request | curl }}")
285-
.isEqualTo(
285+
.isEqualToIgnoringNewLines(
286286
"""
287287
[source]
288288
----
@@ -295,7 +295,7 @@ public void curl(OpenAPIExt openapi) throws IOException {
295295

296296
templates
297297
.evaluateThat("{{GET(\"/library/books\") | request | curl }}")
298-
.isEqualTo(
298+
.isEqualToIgnoringNewLines(
299299
"""
300300
[source]
301301
----
@@ -306,7 +306,7 @@ public void curl(OpenAPIExt openapi) throws IOException {
306306

307307
templates
308308
.evaluateThat("{{GET(\"/library/books/{isbn}\") | request | curl }}")
309-
.isEqualTo(
309+
.isEqualToIgnoringNewLines(
310310
"""
311311
[source]
312312
----
@@ -316,7 +316,7 @@ public void curl(OpenAPIExt openapi) throws IOException {
316316

317317
templates
318318
.evaluateThat("{{GET(\"/library/books/{isbn}\") | request | curl(\"-i\") }}")
319-
.isEqualTo(
319+
.isEqualToIgnoringNewLines(
320320
"""
321321
[source]
322322
----
@@ -328,7 +328,7 @@ public void curl(OpenAPIExt openapi) throws IOException {
328328
templates
329329
.evaluateThat(
330330
"{{GET(\"/library/books/{isbn}\") | request | curl(\"-i\", \"-X\", \"POST\") }}")
331-
.isEqualTo(
331+
.isEqualToIgnoringNewLines(
332332
"""
333333
[source]
334334
----
@@ -340,7 +340,7 @@ public void curl(OpenAPIExt openapi) throws IOException {
340340
templates
341341
.evaluateThat(
342342
"{{GET(\"/library/books/{isbn}\") | request | curl(\"-i\", \"-X\", \"POST\") }}")
343-
.isEqualTo(
343+
.isEqualToIgnoringNewLines(
344344
"""
345345
[source]
346346
----
@@ -352,7 +352,7 @@ public void curl(OpenAPIExt openapi) throws IOException {
352352
templates
353353
.evaluateThat(
354354
"{{GET(\"/library/books\") | request | curl(\"-H\", \"'Accept: application/xml'\") }}")
355-
.isEqualTo(
355+
.isEqualToIgnoringNewLines(
356356
"""
357357
[source]
358358
----
@@ -369,7 +369,7 @@ public void response(OpenAPIExt openapi) throws IOException {
369369
/* Error response code: */
370370
templates
371371
.evaluateThat("{{GET(\"/library/books/{isbn}\") | response(code=404) | http }}")
372-
.isEqualTo(
372+
.isEqualToIgnoringNewLines(
373373
"""
374374
[source,http,options="nowrap"]
375375
----
@@ -380,7 +380,7 @@ public void response(OpenAPIExt openapi) throws IOException {
380380
/* Override default response code: */
381381
templates
382382
.evaluateThat("{{POST(\"/library/books\") | response(code=201) | http }}")
383-
.isEqualTo(
383+
.isEqualToIgnoringNewLines(
384384
"""
385385
[source,http,options="nowrap"]
386386
----
@@ -393,7 +393,7 @@ public void response(OpenAPIExt openapi) throws IOException {
393393
/* Default response */
394394
templates
395395
.evaluateThat("{{POST(\"/library/books\") | response | http }}")
396-
.isEqualTo(
396+
.isEqualToIgnoringNewLines(
397397
"""
398398
[source,http,options="nowrap"]
399399
----
@@ -405,7 +405,7 @@ public void response(OpenAPIExt openapi) throws IOException {
405405

406406
templates
407407
.evaluateThat("{{POST(\"/library/books\") | response | list }}")
408-
.isEqualTo(
408+
.isEqualToIgnoringNewLines(
409409
"""
410410
isbn::
411411
* type: `+string+`
@@ -437,7 +437,7 @@ public void response(OpenAPIExt openapi) throws IOException {
437437

438438
templates
439439
.evaluateThat("{{POST(\"/library/books\") | response | table }}")
440-
.isEqualTo(
440+
.isEqualToIgnoringNewLines(
441441
"""
442442
[cols="1,1,3a", options="header"]
443443
|===
@@ -510,7 +510,7 @@ public void request(OpenAPIExt openapi) throws IOException {
510510

511511
templates
512512
.evaluateThat("{{POST(\"/library/books\") | request | list }}")
513-
.isEqualTo(
513+
.isEqualToIgnoringNewLines(
514514
"""
515515
Accept::
516516
* type: `+string+`
@@ -555,7 +555,7 @@ public void request(OpenAPIExt openapi) throws IOException {
555555

556556
templates
557557
.evaluateThat("{{POST(\"/library/books\") | request | table }}")
558-
.isEqualTo(
558+
.isEqualToIgnoringNewLines(
559559
"""
560560
[cols="1,1,1,3a", options="header"]
561561
|===
@@ -616,7 +616,7 @@ public void request(OpenAPIExt openapi) throws IOException {
616616

617617
templates
618618
.evaluateThat("{{GET(\"/library/books\") | request | table }}")
619-
.isEqualTo(
619+
.isEqualToIgnoringNewLines(
620620
"""
621621
[cols="1,1,1,3", options="header"]
622622
|===
@@ -646,7 +646,7 @@ public void request(OpenAPIExt openapi) throws IOException {
646646

647647
templates
648648
.evaluateThat("{{GET(\"/library/books\") | request | parameters(query) | table }}")
649-
.isEqualTo(
649+
.isEqualToIgnoringNewLines(
650650
"""
651651
[cols="1,1,3", options="header"]
652652
|===
@@ -669,7 +669,7 @@ public void request(OpenAPIExt openapi) throws IOException {
669669
templates
670670
.evaluateThat(
671671
"{{GET(\"/library/books\") | request | parameters(query, ['title']) | table }}")
672-
.isEqualTo(
672+
.isEqualToIgnoringNewLines(
673673
"""
674674
[cols="1,1,3", options="header"]
675675
|===
@@ -683,7 +683,7 @@ public void request(OpenAPIExt openapi) throws IOException {
683683

684684
templates
685685
.evaluateThat("{{GET(\"/library/books\") | request | parameters('path') | table }}")
686-
.isEqualTo(
686+
.isEqualToIgnoringNewLines(
687687
"""
688688
[cols="1,1,3", options="header"]
689689
|===
@@ -693,7 +693,7 @@ public void request(OpenAPIExt openapi) throws IOException {
693693

694694
templates
695695
.evaluateThat("{{GET(\"/library/books\") | parameters('path') | table }}")
696-
.isEqualTo(
696+
.isEqualToIgnoringNewLines(
697697
"""
698698
[cols="1,1,3", options="header"]
699699
|===
@@ -703,7 +703,7 @@ public void request(OpenAPIExt openapi) throws IOException {
703703

704704
templates
705705
.evaluateThat("{{GET(\"/library/books\") | parameters(cookie) | table }}")
706-
.isEqualTo(
706+
.isEqualToIgnoringNewLines(
707707
"""
708708
[cols="1,3", options="header"]
709709
|===
@@ -713,7 +713,7 @@ public void request(OpenAPIExt openapi) throws IOException {
713713

714714
templates
715715
.evaluateThat("{{POST(\"/library/books\") | request(body=\"none\") | http }}")
716-
.isEqualTo(
716+
.isEqualToIgnoringNewLines(
717717
"""
718718
[source,http,options="nowrap"]
719719
----
@@ -732,7 +732,7 @@ public void request(OpenAPIExt openapi) throws IOException {
732732
// example on same schema must generate same output
733733
templates
734734
.evaluateThat("{{GET(\"/library/books\") | request | http }}")
735-
.isEqualTo(
735+
.isEqualToIgnoringNewLines(
736736
"""
737737
[source,http,options="nowrap"]
738738
----
@@ -743,7 +743,7 @@ public void request(OpenAPIExt openapi) throws IOException {
743743

744744
templates
745745
.evaluateThat("{{POST(\"/library/books\") | request | http }}")
746-
.isEqualTo(
746+
.isEqualToIgnoringNewLines(
747747
"""
748748
[source,http,options="nowrap"]
749749
----
@@ -756,7 +756,7 @@ public void request(OpenAPIExt openapi) throws IOException {
756756

757757
templates
758758
.evaluateThat("{{POST(\"/library/books\") | request | parameters(header) | table }}")
759-
.isEqualTo(
759+
.isEqualToIgnoringNewLines(
760760
"""
761761
[cols="1,3", options="header"]
762762
|===
@@ -773,7 +773,7 @@ public void request(OpenAPIExt openapi) throws IOException {
773773
templates
774774
.evaluateThat(
775775
"{{POST(\"/library/books\") | request | parameters(header) | table(['name']) }}")
776-
.isEqualTo(
776+
.isEqualToIgnoringNewLines(
777777
"""
778778
[cols="1", options="header"]
779779
|===
@@ -787,7 +787,7 @@ public void request(OpenAPIExt openapi) throws IOException {
787787

788788
templates
789789
.evaluateThat("{{POST(\"/library/books\") | request | body | table }}")
790-
.isEqualTo(
790+
.isEqualToIgnoringNewLines(
791791
"""
792792
[cols="1,1,3a", options="header"]
793793
|===

0 commit comments

Comments
 (0)