+ 9
- 7
@@ -45,10 +45,11 @@ public abstract class JavaJaxrsBaseTest {
@@ -56,7 +57,7 @@ public abstract class JavaJaxrsBaseTest {
@@ -83,10 +84,11 @@ public abstract class JavaJaxrsBaseTest {
Created by: drl-max
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh
, ./bin/openapi3/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\
. If contributing template-only or documentation-only changes which will change sample output, be sure to build the project first.master
, 4.1.x
, 5.0.x
. Default: master
.(details of the change, additional tests that have been done, reference to the issue for tracking, etc)
Fix for #2815 (closed)
I believe the issue stems from the Generator creating a file the uses the OS's line separator (\r\n for Windows users), but then the test is attempting to compare each line of that file with a version that has \n hard-coded as it's end-of-line character. Using Java's System.lineSeparator()
method seems to address the issue and should allow for flexibility across any environment.
@wing328 - Please review and let me know if there is anything else I can do.
Preferences