forked from loafle/openapi-generator-original
fix build errors in jdk 11 (#17177)
This commit is contained in:
parent
7c551e65dd
commit
4c6dbfe7d6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user