mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
(fix) return code 0 on assertion check
This commit is contained in:
parent
4a4ebcadc0
commit
911a4f2ceb
4 changed files with 32 additions and 8 deletions
|
|
@ -21,9 +21,11 @@ package de.kosit.validationtool.impl;
|
|||
|
||||
import static de.kosit.validationtool.impl.DateFactory.createTimestamp;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import lombok.Getter;
|
||||
|
|
@ -101,6 +103,10 @@ public class DefaultCheck implements Check {
|
|||
return type;
|
||||
}
|
||||
|
||||
protected boolean isSuccessful(final Map<Path, Result> results) {
|
||||
return results.entrySet().stream().allMatch(e -> e.getValue().isAcceptable());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result checkInput(final Input input) {
|
||||
final CheckAction.Bag t = new CheckAction.Bag(input, createReport());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue