Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 3ce15b3

Browse files
committed
Fixes test for java 21
1 parent 8aa9f56 commit 3ce15b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/openapijsonschematools/codegen/common/URLPathUtilsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ public void testGetServerURLWithVariables() {
111111

112112
Server s9 = new Server().url("https://{user}.example.com/{version}").variables(
113113
new ServerVariables().addServerVariable("version", new ServerVariable()._default("v1"))
114-
.addServerVariable("user", new ServerVariable()._default("{user}")));
115-
Assert.assertEquals(URLPathUtils.getServerURL(s9, null).toString(), "https://{user}.example.com/v1");
114+
.addServerVariable("user", new ServerVariable()._default("%7Buser%7D")));
115+
Assert.assertEquals(URLPathUtils.getServerURL(s9, null).toString(), "https://%7Buser%7D.example.com/v1");
116116
}
117117

118118
private ServerVariables serverVariables(String... entries) {

0 commit comments

Comments
 (0)