[2883] Add unit test
This commit is contained in:
parent
f97e703180
commit
b2a91eb92d
|
@ -207,7 +207,12 @@ public class OpenApiInterceptorTest {
|
||||||
assertEquals(expect, url3);
|
assertEquals(expect, url3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testRemoveTrailingSlashWithNullUrl() {
|
||||||
|
OpenApiInterceptor interceptor = new OpenApiInterceptor();
|
||||||
|
String url = interceptor.removeTrailingSlash(null);
|
||||||
|
assertEquals(null, url);
|
||||||
|
}
|
||||||
|
|
||||||
private String fetchSwaggerUi(String url) throws IOException {
|
private String fetchSwaggerUi(String url) throws IOException {
|
||||||
String resp;
|
String resp;
|
||||||
|
|
Loading…
Reference in New Issue