zentol commented on a change in pull request #17972:
URL: https://github.com/apache/flink/pull/17972#discussion_r760001055
##########
File path:
flink-streaming-java/src/test/java/org/apache/flink/streaming/api/environment/CheckpointConfigFromConfigurationTest.java
##########
@@ -90,7 +97,81 @@
.whenSetFromFile("execution.checkpointing.unaligned",
"true")
.viaSetter(CheckpointConfig::enableUnalignedCheckpoints)
.getterVia(CheckpointConfig::isUnalignedCheckpointsEnabled)
- .nonDefaultValue(true));
+ .nonDefaultValue(true),
+ TestSpec.testValue(
+ (CheckpointStorage)
+ new FileSystemCheckpointStorage(
+
"file:///path/to/checkpoint/dir"))
+ .whenSetFromFile("state.checkpoints.dir",
"file:///path/to/checkpoint/dir")
+ .viaSetter(CheckpointConfig::setCheckpointStorage)
+ .getterVia(CheckpointConfig::getCheckpointStorage)
+ .nonDefaultValue(
+ new
FileSystemCheckpointStorage("file:///path/to/checkpoint/dir"))
+
.customMatcher(FileSystemCheckpointStorageMatcher::new));
+ }
+
+ /**
+ * {@code FileSystemCheckpointStorageMatcher} verifies that the set {@link
CheckpointStorage} is
+ * of type {@link FileSystemCheckpointStorage} pointing to the same
filesystem path.
+ */
+ private static class FileSystemCheckpointStorageMatcher
Review comment:
implement an assertj matcher instead
--
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]