Skip to content

Commit

Permalink
SqlRepoTestUtil: added assertVersionProgressOptional
Browse files Browse the repository at this point in the history
Sometimes version does not move when modify narrows to no modification.
  • Loading branch information
virgo47 committed Jul 30, 2021
1 parent 2072c33 commit 4cd3448
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ public static void assertVersionProgress(String prevVersion, String nextVersion)
}
}

/** If modifications are narrowed to none, it's possible that the version stays the same. */
public static void assertVersionProgressOptional(String prevVersion, String nextVersion) {
String error = checkVersionProgress(prevVersion, nextVersion);
if (error != null && !prevVersion.equals(nextVersion)) {
AssertJUnit.fail(error);
}
}

public static String checkVersionProgress(String prevVersion, String nextVersion) {
String error = checkVersionProgressInternal(prevVersion, nextVersion);
if (error == null) {
Expand Down

0 comments on commit 4cd3448

Please sign in to comment.