diff --git a/src/test/java/com/tweesky/cloudtools/codegen/PostmanV2GeneratorTest.java b/src/test/java/com/tweesky/cloudtools/codegen/PostmanV2GeneratorTest.java index ec58192..53eeaae 100644 --- a/src/test/java/com/tweesky/cloudtools/codegen/PostmanV2GeneratorTest.java +++ b/src/test/java/com/tweesky/cloudtools/codegen/PostmanV2GeneratorTest.java @@ -173,7 +173,7 @@ public void testVariables() throws IOException, ParseException { "key\": \"groupId\", \"value\": \"1\", \"type\": \"number\""); // verify request endpoint - TestUtils.assertFileContains(path, "\"name\": \"/users/{{userId}}\""); + TestUtils.assertFileContains(path, "\"name\": \"/users/:userId\""); } @@ -208,7 +208,7 @@ public void testVariablesInRequestExample() throws IOException, ParseException { TestUtils.assertFileContains(path, "{{MY_VAR_NAME}}"); // verify request endpoint - TestUtils.assertFileContains(path, "\"name\": \"/users/{{userId}}\""); + TestUtils.assertFileContains(path, "\"name\": \"/users/:userId\""); } @Test @@ -315,7 +315,7 @@ public void testNamingRequestsWithUrl() throws IOException, ParseException { Path path = Paths.get(output + "/postman.json"); TestUtils.assertFileExists(path); // verify request name (from path) - TestUtils.assertFileContains(path, "\"name\": \"/users/{{userId}}\""); + TestUtils.assertFileContains(path, "\"name\": \"/users/:userId\""); } @Test @@ -396,20 +396,6 @@ public void testHeaderParameters() throws IOException, ParseException { TestUtils.assertFileContains(path, "{ \"key\": \"Another-Custom-Header\", \"value\": \"abc\", \"disabled\": false"); } - @Test - public void doubleCurlyBraces() { - String str = "/api/{var}/archive"; - - assertEquals("/api/{{var}}/archive", new PostmanV2Generator().doubleCurlyBraces(str)); - } - - @Test - public void doubleCurlyBracesNoChanges() { - String str = "/api/{{var}}/archive"; - - assertEquals("/api/{{var}}/archive", new PostmanV2Generator().doubleCurlyBraces(str)); - } - @Test public void extractExampleByName() { String str = "#/components/examples/get-user-basic";