diff --git a/buildSrc/src/main/groovy/nva.search.service.java-conventions.gradle b/buildSrc/src/main/groovy/nva.search.service.java-conventions.gradle index 5a71d0bb6..789ece803 100644 --- a/buildSrc/src/main/groovy/nva.search.service.java-conventions.gradle +++ b/buildSrc/src/main/groovy/nva.search.service.java-conventions.gradle @@ -29,29 +29,16 @@ sourceSets { } } - +check.dependsOn jacocoTestCoverageVerification tasks.named('jacocoTestCoverageVerification', JacocoCoverageVerification) { violationRules { rule { - excludes = [ - 'search-commons', - ] limit { counter = 'METHOD' value = 'COVEREDRATIO' minimum = 1.000 } } - rule { - includes = [ - 'search-commons', - ] - limit { - counter = 'METHOD' - value = 'COVEREDRATIO' - minimum = 0.980 - } - } rule { limit { diff --git a/search-commons/src/test/java/no/unit/nva/search/common/builder/PartOfQueryTest.java b/search-commons/src/test/java/no/unit/nva/search/common/builder/PartOfQueryTest.java index 912c3c52c..8e336ba78 100644 --- a/search-commons/src/test/java/no/unit/nva/search/common/builder/PartOfQueryTest.java +++ b/search-commons/src/test/java/no/unit/nva/search/common/builder/PartOfQueryTest.java @@ -6,13 +6,16 @@ import org.junit.jupiter.api.Test; +import java.util.stream.Collectors; + class PartOfQueryTest { @Test void checkPartOfQuery() { var partOfQuery = new PartOfQuery(); assertNotNull( - partOfQuery.buildMatchAnyValueQuery( - ResourceParameter.CONTRIBUTORS_OF_CHILD, "ewsrdf")); + partOfQuery + .buildMatchAnyValueQuery(ResourceParameter.CONTRIBUTORS_OF_CHILD, "ewsrdf") + .collect(Collectors.toSet())); } }