Added support for different version schemes depending on the provider (2) (#2125)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -1360,7 +1360,8 @@ class DeploymentManagementTest extends AbstractJpaIntegrationTest {
|
||||
// checking the revisions of the created entities
|
||||
// verifying that the revision of the object and the revision within the
|
||||
// DB has incremented by implicit lock
|
||||
assertThat(dsA.getOptLockRevision()).as("lock revision is wrong")
|
||||
assertThat(dsA.getOptLockRevision())
|
||||
.as("lock revision is wrong")
|
||||
.isEqualTo(distributionSetManagement.getWithDetails(dsA.getId()).get().getOptLockRevision());
|
||||
|
||||
// verifying that the assignment is correct
|
||||
@@ -1422,7 +1423,8 @@ class DeploymentManagementTest extends AbstractJpaIntegrationTest {
|
||||
testdataFactory.createDistributionSet("b");
|
||||
final Target targ = testdataFactory.createTarget("target-id-A");
|
||||
|
||||
assertThat(dsA.getOptLockRevision()).as("lock revision is wrong")
|
||||
assertThat(dsA.getOptLockRevision())
|
||||
.as("lock revision is wrong")
|
||||
.isEqualTo(distributionSetManagement.getWithDetails(dsA.getId()).get().getOptLockRevision());
|
||||
|
||||
assignDistributionSet(dsA, Collections.singletonList(targ));
|
||||
|
||||
@@ -157,7 +157,8 @@ public class SoftwareModuleManagementTest extends AbstractJpaIntegrationTest {
|
||||
final SoftwareModule updated = softwareModuleManagement
|
||||
.update(entityFactory.softwareModule().update(ah.getId()).description("changed").vendor("changed"));
|
||||
|
||||
assertThat(updated.getOptLockRevision()).as("Expected version number of updated entitity is")
|
||||
assertThat(updated.getOptLockRevision())
|
||||
.as("Expected version number of updated entitity is")
|
||||
.isEqualTo(ah.getOptLockRevision() + 1);
|
||||
assertThat(updated.getDescription()).as("Updated description is").isEqualTo("changed");
|
||||
assertThat(updated.getVendor()).as("Updated vendor is").isEqualTo("changed");
|
||||
|
||||
@@ -214,7 +214,8 @@ class TargetTagManagementTest extends AbstractJpaIntegrationTest {
|
||||
assertThat(targetTagRepository.findById(savedAssigned.getId()).get().getName()).as("wrong target tag is saved")
|
||||
.isEqualTo("test123");
|
||||
assertThat(targetTagRepository.findById(savedAssigned.getId()).get().getOptLockRevision())
|
||||
.as("wrong target tag is saved").isEqualTo(2);
|
||||
.as("wrong target tag is saved")
|
||||
.isEqualTo(version(2));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user