Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ private void recordTaskAsCompletedIfNotDryRun(BaseTask theNext, long theExecutio

public void addTasks(Iterable<BaseTask> theMigrationTasks) {
if (HapiSystemProperties.isUnitTestModeEnabled()) {
ourLog.info("Skipping tasks because unit test mode is enabled");
// Tests only need to initialize the schemas. No need to run all the migrations for every test.
for (BaseTask task : theMigrationTasks) {
if (task instanceof InitializeSchemaTask) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ private int doExecuteSql(@Language("SQL") String theSql, Object... theArguments)
} catch (DataAccessException e) {
if (myFlags.contains(TaskFlagEnum.FAILURE_ALLOWED)) {
ourLog.info(
"Task {} did not exit successfully on doExecuteSql(), but task is allowed to fail",
getMigrationVersion());
"Task {} running sql \"{}\"did not exit successfully on doExecuteSql(), but task is allowed to fail",
getMigrationVersion(),
theSql);
ourLog.debug("Error was: {}", e.getMessage(), e);
myExecutionResult = MigrationTaskExecutionResultEnum.NOT_APPLIED_ALLOWED_FAILURE;
return 0;
Expand Down Expand Up @@ -334,7 +335,7 @@ public final int hashCode() {

@Override
public final boolean equals(Object theObject) {
if (theObject == null || getClass().equals(theObject.getClass()) == false) {
if (theObject == null || !getClass().equals(theObject.getClass())) {
return false;
}
BaseTask otherObject = (BaseTask) theObject;
Expand Down
Loading