Re-applied base entity based equals hashcode policy

This commit is contained in:
Kai Zimmermann
2016-03-28 09:59:24 +02:00
parent a2a0a5697e
commit 9849205bea
38 changed files with 289 additions and 888 deletions

View File

@@ -95,7 +95,7 @@ public class TestDataUtil {
return distributionSetManagement.createDistributionSet(
buildDistributionSet(suffix != null && suffix.length() > 0 ? suffix : "DS", version,
findOrCreateDistributionSetType(distributionSetManagement, "ecl_os_app_jvm",
"OC mandatory App/JVM optional", mand, opt),
"OS mandatory App/JVM optional", mand, opt),
os, jvm, ah).setRequiredMigrationStep(isRequiredMigrationStep));
}

View File

@@ -33,12 +33,10 @@ public class ActionTest {
final Action timeforcedAction = new Action();
timeforcedAction.setActionType(ActionType.TIMEFORCED);
timeforcedAction.setForcedTime(timeForceTimeAt);
final int knownHashCode = timeforcedAction.hashCode();
assertThat(timeforcedAction.isForce()).isFalse();
// wait until timeforce time is hit
Thread.sleep(sleepTime + 100);
assertThat(timeforcedAction.isForce()).isTrue();
assertThat(timeforcedAction.hashCode()).isNotEqualTo(knownHashCode);
}
}