Skip to content

[hotfix][docs/test] Migrate the assertj assertion lines to link-calling.#27879

Open
RocMarshal wants to merge 1 commit intoapache:masterfrom
RocMarshal:hitfox04011
Open

[hotfix][docs/test] Migrate the assertj assertion lines to link-calling.#27879
RocMarshal wants to merge 1 commit intoapache:masterfrom
RocMarshal:hitfox04011

Conversation

@RocMarshal
Copy link
Copy Markdown
Contributor

What is the purpose of the change

[hotfix][docs/test] Migrate the assertj assertion lines to link-calling.

Brief change log

[hotfix][docs/test] Migrate the assertj assertion lines to link-calling.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented Apr 1, 2026

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@@ -78,15 +78,14 @@ void testExcludeFromDocumentation(@TempDir Path tmpDir) throws Exception {
file);
final String actual = new String(Files.readAllBytes(file), StandardCharsets.UTF_8);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
final String actual = new String(Files.readAllBytes(file), StandardCharsets.UTF_8);
final String actual = Files.readString(file);

since jdk11 is minimum now
and other same occurrences in this file

Comment on lines +82 to +85
.contains("/test/empty1")
.contains("This is a testing REST API.")
.contains("/test/empty2")
.contains("This is another testing REST API.")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.contains("/test/empty1")
.contains("This is a testing REST API.")
.contains("/test/empty2")
.contains("This is another testing REST API.")
.containsAnyOf("/test/empty1",
"This is a testing REST API.",
"/test/empty2",
"This is another testing REST API.")

Comment on lines +86 to 90
.doesNotContain("/test/exclude1")
.doesNotContain("This REST API should not appear in the generated documentation.")
.doesNotContain("/test/exclude2")
.doesNotContain(
"This REST API should also not appear in the generated documentation.");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.doesNotContain("/test/exclude1")
.doesNotContain("This REST API should not appear in the generated documentation.")
.doesNotContain("/test/exclude2")
.doesNotContain(
"This REST API should also not appear in the generated documentation.");
.doesNotContain("/test/exclude1",
"This REST API should not appear in the generated documentation.",
"/test/exclude2",
"This REST API should also not appear in the generated documentation.");

Comment on lines +58 to 66
.containsSequence("/test/empty1")
.containsSequence("This is a testing REST API.")
.containsSequence("/test/empty2")
.containsSequence("This is another testing REST API.")
.doesNotContain("/test/exclude1")
.doesNotContain("This REST API should not appear in the generated documentation.")
.doesNotContain("/test/exclude2")
.doesNotContain(
"This REST API should also not appear in the generated documentation.");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@@ -54,15 +54,14 @@ void testExcludeFromDocumentation() throws Exception {
file.toPath());
String actual = FileUtils.readFile(file, StandardCharsets.UTF_8);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants