diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/URLPathUtilsTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/URLPathUtilsTest.java index f4fa3d68f6d..4242b346407 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/URLPathUtilsTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/URLPathUtilsTest.java @@ -111,8 +111,8 @@ public class URLPathUtilsTest { Server s9 = new Server().url("https://{user}.example.com/{version}").variables( new ServerVariables().addServerVariable("version", new ServerVariable()._default("v1")) - .addServerVariable("user", new ServerVariable()._default("{user}"))); - Assert.assertEquals(URLPathUtils.getServerURL(s9, null).toString(), "https://{user}.example.com/v1"); + .addServerVariable("user", new ServerVariable()._default("another-user"))); + Assert.assertEquals(URLPathUtils.getServerURL(s9, null).toString(), "https://another-user.example.com/v1"); } private ServerVariables serverVariables(String... entries) {