[2883] Add unit test

This commit is contained in:
katie_smilecdr 2021-08-16 14:32:49 -04:00
parent f97e703180
commit b2a91eb92d
1 changed files with 6 additions and 1 deletions

View File

@ -207,7 +207,12 @@ public class OpenApiInterceptorTest {
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 {
String resp;