From ee7c5b086cb4bf7f8f4e56c840f93e6beb486f8b Mon Sep 17 00:00:00 2001 From: azerr Date: Mon, 30 Mar 2020 16:11:53 +0200 Subject: [PATCH] Fix Open API codeaction test Signed-off-by: azerr --- .../core/openapi/GenerateOpenAPIAnnotationsTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/microprofile.jdt/com.redhat.microprofile.jdt.test/src/main/java/com/redhat/microprofile/jdt/core/openapi/GenerateOpenAPIAnnotationsTest.java b/microprofile.jdt/com.redhat.microprofile.jdt.test/src/main/java/com/redhat/microprofile/jdt/core/openapi/GenerateOpenAPIAnnotationsTest.java index 00ce1e0f2..c612ba1a2 100644 --- a/microprofile.jdt/com.redhat.microprofile.jdt.test/src/main/java/com/redhat/microprofile/jdt/core/openapi/GenerateOpenAPIAnnotationsTest.java +++ b/microprofile.jdt/com.redhat.microprofile.jdt.test/src/main/java/com/redhat/microprofile/jdt/core/openapi/GenerateOpenAPIAnnotationsTest.java @@ -49,12 +49,12 @@ public void GenerateOpenAPIAnnotationsAction() throws Exception { d.setRange(new Range(start, start)); MicroProfileJavaCodeActionParams codeActionParams = createCodeActionParams(uri, d); - String newText = "\r\n\r\nimport org.eclipse.microprofile.openapi.annotations.Operation;" + - "\r\n\r\n@RequestScoped\r\n@Path(\"/systems\")\r\npublic class NoOperationAnnotation {" + - "\r\n\r\n\t@Operation(summary = \"\", description = \"\")\r\n\t@GET\r\n" + - "\tpublic Response getMyInformation(String hostname) {\r\n\t\treturn " + - "Response.ok(listContents()).build();\r\n\t}\r\n\r\n\t@Operation(summary = \"\", " + - "description = \"\")\r\n\t"; + String newText = "\n\nimport org.eclipse.microprofile.openapi.annotations.Operation;" + + "\n\n@RequestScoped\n@Path(\"/systems\")\npublic class NoOperationAnnotation {" + + "\n\n\t@Operation(summary = \"\", description = \"\")\n\t@GET\n" + + "\tpublic Response getMyInformation(String hostname) {\n\t\treturn " + + "Response.ok(listContents()).build();\n\t}\n\n\t@Operation(summary = \"\", " + + "description = \"\")\n\t"; assertJavaCodeAction(codeActionParams, utils, ca(uri, "Generate OpenAPI Annotations", d, te(6, 33, 17, 1, newText))