Skip to content

Commit

Permalink
[SCB-2813]fix unit test error
Browse files Browse the repository at this point in the history
  • Loading branch information
liubao68 committed Nov 13, 2023
1 parent b5439ef commit 030936f
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import static org.mockito.Mockito.when;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -36,7 +35,6 @@
import org.mockito.Mockito;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.servers.Server;
import io.vertx.core.http.HttpClientRequest;
import io.vertx.core.http.HttpServerRequest;
import io.vertx.ext.web.RoutingContext;
Expand Down Expand Up @@ -85,14 +83,11 @@ public void initStrBuilder() {

@Test
public void clientFormattedElement() {
String uri = "/base/test";
String uri = "/test";
when(finishEvent.getInvocation()).thenReturn(invocation);
when(invocation.getOperationMeta()).thenReturn(operationMeta);
when(invocation.getSchemaMeta()).thenReturn(schemaMeta);
when(schemaMeta.getSwagger()).thenReturn(swagger);
Server server = Mockito.mock(Server.class);
when(server.getUrl()).thenReturn("/base");
when(swagger.getServers()).thenReturn(Arrays.asList(server));
when(operationMeta.getOperationPath()).thenReturn("/test");

ITEM.appendClientFormattedItem(finishEvent, strBuilder);
Expand Down

0 comments on commit 030936f

Please sign in to comment.