spuru9 commented on code in PR #28561:
URL: https://github.com/apache/flink/pull/28561#discussion_r3486505836


##########
flink-libraries/flink-state-processing-api/src/test/java/org/apache/flink/state/api/SavepointWindowReaderITCase.java:
##########
@@ -433,11 +407,10 @@ public void readWindow(
                 Iterable<Integer> elements,
                 Collector<Integer> out)
                 throws Exception {
-            Assert.assertEquals("Unexpected window", new TimeWindow(0, 10), 
context.window());
-            Assert.assertThat(
-                    "Unexpected registered timers",
-                    context.registeredEventTimeTimers(),
-                    Matchers.contains(9L));
+            assertThat(context.window()).as("Unexpected window").isEqualTo(new 
TimeWindow(0, 10));

Review Comment:
   Kept `.as(...)` only where it disambiguates multiple assertions sharing a 
scope, droped it on a lone assertion that just restates the method name.



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