Commit a9c8410a authored by Ina Curdt's avatar Ina Curdt
Browse files

SI-878 Nachbesserung UnitTests

parent 38d72f3b
......@@ -375,7 +375,7 @@ public class FailureInformationService {
condensedFailureInformation.setRefStatusExtern(refStatusNew);
condensedFailureInformation.setCondensed(true);
condensedFailureInformation.setCondensedCount(listSubordinatedFailureInfos.size());
condensedFailureInformation.setVersionNumber(1L);
condensedFailureInformationSaved = failureInformationRepository.save(condensedFailureInformation);
//kennzeichne die Ursprungs-FailureInfos und speichere
......@@ -383,6 +383,7 @@ public class FailureInformationService {
{
tblFailureInformation.setCondensed(false);
tblFailureInformation.setTblFailureInformationCondensed(condensedFailureInformationSaved);
setVersionNumber(tblFailureInformation);
failureInformationRepository.save(tblFailureInformation);
}
}
......
......@@ -546,7 +546,7 @@ public class FailureInformationServiceTest {
FailureInformationDto savedCondensedFailureInfoDto = failureInformationService.condenseFailureInfos(uuidList, Optional.empty());
assertNotNull(savedCondensedFailureInfoDto.getUuid());
//assertEquals(1L, savedCondensedFailureInfoDto.getVersionNumber());
assertEquals(1L, savedCondensedFailureInfoDto.getVersionNumber());
//TODO: status (2x) und radius überprüfen
assertEquals(tblFailureInformation1.getStreet(), savedCondensedFailureInfoDto.getStreet());
assertEquals(tblFailureInformation1.getDistrict(), savedCondensedFailureInfoDto.getDistrict());
......@@ -598,7 +598,7 @@ public class FailureInformationServiceTest {
FailureInformationDto savedCondensedFailureInfoDto = failureInformationService.condenseFailureInfos(uuidList, Optional.empty());
assertNotNull(savedCondensedFailureInfoDto.getUuid());
//assertEquals(1L, savedCondensedFailureInfoDto.getVersionNumber());
assertEquals(1L, savedCondensedFailureInfoDto.getVersionNumber());
//TODO: status (2x) und radius überprüfen
assertEquals(null, savedCondensedFailureInfoDto.getStreet());
assertEquals(null, savedCondensedFailureInfoDto.getDistrict());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment