Skip to content

Commit

Permalink
replaced external quote with internal implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Lensmar committed Aug 25, 2016
1 parent 806a115 commit e66c31a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit e66c31a

Please sign in to comment.