Commit e8195c9
authored
test(eventhubs): modernize EventContextTest Mockito setup
Replaces deprecated MockitoAnnotations.initMocks(this) with openMocks(this) in EventContextTest, and closes the returned AutoCloseable in @AfterEach.
The original EventContext.updateCheckpointAsync() offsetString fix this branch started as has since landed on main via #49076, so this PR is now just the leftover Mockito API cleanup from review.1 parent 5efe772 commit e8195c9
1 file changed
Lines changed: 11 additions & 1 deletion
File tree
- sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/models
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
| |||
0 commit comments