Skip to content

Commit

Permalink
[MNG-8322] The EventSpy receives the new settings request/result
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 17, 2024
1 parent 58dfa7d commit bce5684
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,16 @@ public void testit() throws Exception {
assertTrue(lines.toString(), lines.get(lines.size() - 1).toString().startsWith("close"));
assertTrue(
lines.toString(),
lines.contains("event: org.apache.maven.settings.building.DefaultSettingsBuildingRequest"));
lines.contains(
matchesVersionRange("[4.0.0-beta-5,)")
? "event: org.apache.maven.api.services.SettingsBuilderRequest$SettingsBuilderRequestBuilder$DefaultSettingsBuilderRequest"
: "event: org.apache.maven.settings.building.DefaultSettingsBuildingRequest"));
assertTrue(
lines.toString(),
lines.contains("event: org.apache.maven.settings.building.DefaultSettingsBuildingResult"));
lines.contains(
matchesVersionRange("[4.0.0-beta-5,)")
? "event: org.apache.maven.internal.impl.DefaultSettingsBuilder$DefaultSettingsBuilderResult"
: "event: org.apache.maven.settings.building.DefaultSettingsBuildingResult"));
assertTrue(lines.toString(), lines.contains("event: org.apache.maven.execution.DefaultMavenExecutionRequest"));
assertTrue(lines.toString(), lines.contains("event: org.apache.maven.execution.DefaultMavenExecutionResult"));
assertTrue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,15 @@ public void testit() throws Exception {
assertTrue(lines.toString(), lines.get(lines.size() - 1).startsWith("close"));
assertTrue(
lines.toString(),
lines.contains("event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest"));
lines.contains(
matchesVersionRange("[4.0.0-beta-5,)")
? "event: org.apache.maven.api.services.ToolchainsBuilderRequest$ToolchainsBuilderRequestBuilder$DefaultToolchainsBuilderRequest"
: "event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest"));
assertTrue(
lines.toString(),
lines.contains("event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingResult"));
lines.contains(
matchesVersionRange("[4.0.0-beta-5,)")
? "event: org.apache.maven.internal.impl.DefaultToolchainsBuilder$DefaultToolchainsBuilderResult"
: "event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingResult"));
}
}

0 comments on commit bce5684

Please sign in to comment.