Skip to content

Commit

Permalink
update ut
Browse files Browse the repository at this point in the history
  • Loading branch information
wudi committed Nov 30, 2023
1 parent c341d3c commit 7c3a1cc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public class SchemaManagerTest {

HttpEntityMock entityMock;
SchemaChangeManager schemaChangeManager;
static MockedStatic<HttpClients> httpClientMockedStatic = mockStatic(HttpClients.class);


@Before
public void setUp() throws IOException {
Expand All @@ -80,9 +82,6 @@ public void setUp() throws IOException {
when(httpClient.execute(any())).thenReturn(httpResponse);
when(httpResponse.getStatusLine()).thenReturn(normalLine);
when(httpResponse.getEntity()).thenReturn(entityMock);

MockedStatic<HttpClients> httpClientMockedStatic = mockStatic(HttpClients.class);

when(httpClient.execute(any())).thenReturn(httpResponse);
when(httpResponse.getStatusLine()).thenReturn(normalLine);
when(httpResponse.getEntity()).thenReturn(entityMock);
Expand Down

0 comments on commit 7c3a1cc

Please sign in to comment.