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


##########
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:
   We don't need to include the statement in curly braces given this is a 
single line. Typically you will have IDEs throwing warnings like 
   `Statement lambda can be replaced with expression lambda `
   This comment would be applicable to all changed lines.



-- 
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