Skip to content

Commit

Permalink
address order permutation in MutuallyExclusiveArgsException (#4103)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyaok2 authored Sep 13, 2023
1 parent bb36a18 commit 6e8247c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public void testParse_incompatibleCredentialOptions(String[] authArgs) {
new Build(), ArrayUtils.add(authArgs, "--target=ignored")));
assertThat(meae)
.hasMessageThat()
.containsMatch("^Error: (--(from-|to-)?credential-helper|\\[--username)");
.containsMatch("^Error: (\\[)*(--(from-|to-)?credential-helper|\\[--(username|password))");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public void testParse_incompatibleCredentialOptions(String[] authArgs) {
new War(), ArrayUtils.addAll(authArgs, "--target=ignored", "my-app.war")));
assertThat(meae)
.hasMessageThat()
.containsMatch("^Error: (--(from-|to-)?credential-helper|\\[--username)");
.containsMatch("^Error: (\\[)*(--(from-|to-)?credential-helper|\\[--(username|password))");
}

@Test
Expand Down

0 comments on commit 6e8247c

Please sign in to comment.