Skip to content

Commit

Permalink
[CI] Auto commit changes from spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticsearchmachine committed Mar 6, 2025
1 parent 381dc70 commit a0cfd03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,11 @@ public void testDuplicateExclusivePaths() {
new ExclusivePath(original.componentName(), Set.of("module2"), originalExclusivePath.path()),
new ExclusivePath(original.componentName(), Set.of(original.moduleName()), normalizePath(path("/c/d")))
);
var iae = expectThrows(IllegalArgumentException.class,
() ->
buildExclusivePathList(distinctEntitlements, TEST_PATH_LOOKUP)
var iae = expectThrows(IllegalArgumentException.class, () -> buildExclusivePathList(distinctEntitlements, TEST_PATH_LOOKUP));
assertThat(
iae.getMessage(),
equalTo("Path [/a/b] is already exclusive to [component1][module1], cannot add exclusive access for [component2][module1]")
);
assertThat(iae.getMessage(),
equalTo("Path [/a/b] is already exclusive to [component1][module1], cannot add exclusive access for [component2][module1]"));

var equivalentEntitlements = List.of(original, differentMode, differentPlatform);
var equivalentPaths = List.of(originalExclusivePath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,13 @@ public void testFilesEntitlementsWithExclusive() {
Set.of()
)
);
assertThat(iae.getMessage(), equalTo("Path [/base/test] is already exclusive to [plugin1][test.module1]," +
" cannot add exclusive access for [plugin2][test.module2]"));
assertThat(
iae.getMessage(),
equalTo(
"Path [/base/test] is already exclusive to [plugin1][test.module1],"
+ " cannot add exclusive access for [plugin2][test.module2]"
)
);

iae = expectThrows(
IllegalArgumentException.class,
Expand Down

0 comments on commit a0cfd03

Please sign in to comment.