DS-2497: Keep version numbers stable.

This commit is contained in:
Pascal-Nicolas Becker
2015-10-22 17:25:47 +02:00
parent b1fe04128a
commit 294cd9d4be
24 changed files with 465 additions and 314 deletions

View File

@@ -122,7 +122,7 @@ public class VersioningTest extends AbstractUnitTest {
{
VersionHistory versionHistory = versionHistoryService.findByItem(context, originalItem);
assertThat("testFindVersionHistory", versionHistory, notNullValue());
Version version = versionHistoryService.getVersion(versionHistory, versionedItem);
Version version = versionHistoryService.getVersion(context, versionHistory, versionedItem);
assertThat("testFindVersion", version, notNullValue());
}
@@ -134,7 +134,7 @@ public class VersioningTest extends AbstractUnitTest {
{
//Start by creating a new item !
VersionHistory versionHistory = versionHistoryService.findByItem(context, originalItem);
Version version = versionHistoryService.getVersion(versionHistory, versionedItem);
Version version = versionHistoryService.getVersion(context, versionHistory, versionedItem);
assertThat("Test_version_summary", summary, equalTo(version.getSummary()));
}