Skip to content

Commit

Permalink
apply comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Technoboy- committed May 8, 2022
1 parent 9205b82 commit dfc6c17
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,16 @@ public void testGetList() throws Exception {
topics = (List<String>) responseCaptor.getValue();
Assert.assertEquals(topics.size(), 2);

nonPersistentTopic.createNonPartitionedTopic(testTenant, testNamespace, "test-topic-2", false, null);
nonPersistentTopic.createNonPartitionedTopic(testTenant, testNamespace, "__change_events", false, null);
response = mock(AsyncResponse.class);
responseCaptor = ArgumentCaptor.forClass(Response.class);
nonPersistentTopic.createNonPartitionedTopic(response, testTenant, testNamespace, "test-topic-2", false, null);
verify(response, timeout(5000).times(1)).resume(responseCaptor.capture());
Assert.assertEquals(responseCaptor.getValue().getStatus(), Response.Status.NO_CONTENT.getStatusCode());
response = mock(AsyncResponse.class);
responseCaptor = ArgumentCaptor.forClass(Response.class);
nonPersistentTopic.createNonPartitionedTopic(response, testTenant, testNamespace, "__change_events", false, null);
verify(response, timeout(5000).times(1)).resume(responseCaptor.capture());
Assert.assertEquals(responseCaptor.getValue().getStatus(), Response.Status.NO_CONTENT.getStatusCode());

response = mock(AsyncResponse.class);
responseCaptor = ArgumentCaptor.forClass(Response.class);
Expand Down

0 comments on commit dfc6c17

Please sign in to comment.