vamossagar12 commented on code in PR #14264:
URL: https://github.com/apache/kafka/pull/14264#discussion_r1306620733


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StoreToProcessorContextAdapterTest.java:
##########
@@ -43,63 +45,87 @@ public void setUp() {
         context = StoreToProcessorContextAdapter.adapt(delegate);
     }
 
-    @Test(expected = UnsupportedOperationException.class)
+    @Test
     public void shouldThrowOnCurrentSystemTime() {
-        context.currentSystemTimeMs();
+        assertThrows(UnsupportedOperationException.class, () -> {
+            context.currentSystemTimeMs();
+        });

Review Comment:
   Thank you 👍 



##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StoreToProcessorContextAdapterTest.java:
##########
@@ -43,63 +45,87 @@ public void setUp() {
         context = StoreToProcessorContextAdapter.adapt(delegate);
     }
 
-    @Test(expected = UnsupportedOperationException.class)
+    @Test
     public void shouldThrowOnCurrentSystemTime() {
-        context.currentSystemTimeMs();
+        assertThrows(UnsupportedOperationException.class, () -> {
+            context.currentSystemTimeMs();
+        });

Review Comment:
   Thank you 👍 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to