Fix OrderElementServiceTest

AdvanceMeasurement.value is now initialized to 0, so no Exception
launched on this test due to that

FEA: ItEr73S04BugFixing
This commit is contained in:
Diego Pino Garcia 2011-04-04 12:53:07 +02:00
parent fde4d0c116
commit 60c57cb56e

View file

@ -1071,11 +1071,11 @@ public class OrderElementServiceTest {
List<ConstraintViolationDTO> constraintViolations = instanceConstraintViolationsList
.get(0).constraintViolations;
// Mandatory fields: date, value
assertThat(constraintViolations.size(), equalTo(2));
// Mandatory fields: date
assertThat(constraintViolations.size(), equalTo(1));
for (ConstraintViolationDTO constraintViolationDTO : constraintViolations) {
assertThat(constraintViolationDTO.fieldName, anyOf(mustEnd("date"),
mustEnd("value")));
System.out.println("### constraintViolationDTO.fieldName: " + constraintViolationDTO.fieldName);
assertThat(constraintViolationDTO.fieldName, anyOf(mustEnd("date")));
}
try {