Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7efd093

Browse filesBrowse files
committed
Add assertions to sendEventsDoesNotThrowWhenQueueIsFull test
Verify that isFull() is called, events are popped, and sender is not called when queue is full and there are no events to send. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> AI-Session-Id: c83b3557-2c02-4d13-aaa4-273b7340163d AI-Tool: claude-code AI-Model: unknown
1 parent 0b19b54 commit 7efd093
Copy full SHA for 7efd093

1 file changed

+3Lines changed: 3 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tracker/src/test/java/io/split/client/events/EventsTaskTest.java‎

Copy file name to clipboardExpand all lines: tracker/src/test/java/io/split/client/events/EventsTaskTest.java
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public void sendEventsDoesNotThrowWhenQueueIsFull() {
7070
when(_storage.isFull()).thenReturn(true);
7171
when(_storage.popAll()).thenReturn(Collections.<WrappedEvent>emptyList());
7272
_task.sendEvents();
73+
verify(_storage).isFull();
74+
verify(_storage).popAll();
75+
verifyZeroInteractions(_sender);
7376
}
7477

7578
private static Event makeEvent(String type) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.