Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-psaha committed Dec 14, 2023
1 parent 062a45d commit 8fd335a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import java.util.List;
import java.util.Map;
import net.snowflake.ingest.streaming.internal.DropChannelResponse;

/**
* A class that is the starting point for using the Streaming Ingest client APIs, a single client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,10 @@ public void testDropOnClose() throws Exception {
Assert.assertTrue(channel.isClosed());
Mockito.verify(client, Mockito.times(1))
.dropChannel(
argThat((DropChannelRequest req) -> req.getChannelName().equals(channel.getName()) && req.getClientSequencer().equals(channel.getChannelSequencer())));
argThat(
(DropChannelRequest req) ->
req.getChannelName().equals(channel.getName())
&& req.getClientSequencer().equals(channel.getChannelSequencer())));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,10 @@ public void testDropChannel() throws Exception {
.build();
client.dropChannel(request);
Mockito.verify(requestBuilder)
.generateStreamingIngestPostRequest(
ArgumentMatchers.contains("channel"),
ArgumentMatchers.refEq(DROP_CHANNEL_ENDPOINT),
ArgumentMatchers.refEq("drop channel"));
.generateStreamingIngestPostRequest(
ArgumentMatchers.contains("channel"),
ArgumentMatchers.refEq(DROP_CHANNEL_ENDPOINT),
ArgumentMatchers.refEq("drop channel"));
}

@Test
Expand Down

0 comments on commit 8fd335a

Please sign in to comment.