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:
parent
fde4d0c116
commit
60c57cb56e
1 changed files with 4 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue