From e66c31aab746c962beda7c5d9d46e22c606c6da2 Mon Sep 17 00:00:00 2001 From: Ole Lensmar Date: Thu, 25 Aug 2016 22:57:28 +0200 Subject: [PATCH] replaced external quote with internal implementation --- .../integration/responses/PrimitiveResponseTestIT.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/java/io/swagger/test/integration/responses/PrimitiveResponseTestIT.java b/src/test/java/io/swagger/test/integration/responses/PrimitiveResponseTestIT.java index 597539dc..6f8b7bb2 100644 --- a/src/test/java/io/swagger/test/integration/responses/PrimitiveResponseTestIT.java +++ b/src/test/java/io/swagger/test/integration/responses/PrimitiveResponseTestIT.java @@ -17,15 +17,12 @@ package io.swagger.test.integration.responses; import io.swagger.inflector.examples.ExampleBuilder; -import io.swagger.inflector.examples.models.Example; import io.swagger.test.client.ApiClient; import io.swagger.test.client.ApiException; import java.util.HashMap; import java.util.Map; -import static com.google.common.io.CharSource.wrap; -import static jdk.nashorn.internal.parser.JSONParser.quote; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertTrue; import static org.testng.Assert.fail; @@ -78,6 +75,10 @@ public void verifyGetUUIDResponse() throws Exception { assertEquals(str, quote(ExampleBuilder.SAMPLE_UUID_PROPERTY_VALUE)); } + private String quote(String string) { + return '"' + string + '"'; + } + /** * verifies that the return value is automatically created */