Skip to content

Commit

Permalink
Make asserts meaningful (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo authored Jan 9, 2025
1 parent 3421fa9 commit 1487251
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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());
}
}
}

0 comments on commit 1487251

Please sign in to comment.