Skip to content

Commit

Permalink
Merge branch 'apache:master' into submodule-update
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwen5 authored Jan 10, 2025
2 parents 8eb121b + 1487251 commit 1415d0c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void testChangeLogWithBadUserDateFormat() throws Exception {

fail("mojo execution must fail.");
} catch (MojoExecutionException e) {
assertTrue(true);
assertNotNull(e.getMessage());
}
}

Expand All @@ -126,7 +126,7 @@ public void testChangeLogWithBadConnectionUrl() throws Exception {

fail("mojo execution must fail.");
} catch (MojoExecutionException e) {
assertTrue(true);
assertNotNull(e.getMessage());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void testSkipCheckoutWithoutConnectionUrl() throws Exception {

fail("mojo execution must fail.");
} catch (MojoExecutionException e) {
assertTrue(true);
assertNotNull(e.getMessage());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void testUntag() throws Exception {

fail("mojo execution must fail.");
} catch (MojoExecutionException e) {
assertTrue(true);
assertNotNull(e.getMessage());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void testValidateWithInvalidScmUrls() throws Exception {

fail("mojo execution must fail.");
} catch (MojoExecutionException e) {
assertTrue(true);
assertNotNull(e.getMessage());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ private HgUrlParserResult parseScmUrl(String scmSpecificUrl) {
}
} else {
try {
@SuppressWarnings("unused")
File file = new File(scmSpecificUrl);
new File(scmSpecificUrl);
} catch (Throwable e) {
result.messages.add("The filename provided is not valid");

Expand Down

0 comments on commit 1415d0c

Please sign in to comment.