Skip to content
Snippets Groups Projects
Commit 8780fb33 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4994 OZG-5061 change ungelesene Nachrichten query

parent 0a4ad04b
Branches
Tags
No related merge requests found
...@@ -102,7 +102,8 @@ class StatisticRemoteService { ...@@ -102,7 +102,8 @@ class StatisticRemoteService {
.setResultName(COUNT_VORGAENGE_WITH_UNGELESENE_NACHRICHTEN_RESULT_NAME) .setResultName(COUNT_VORGAENGE_WITH_UNGELESENE_NACHRICHTEN_RESULT_NAME)
.setPath(VORGAENGE_WITH_UNGELESENE_NACHRICHTEN_PATH) .setPath(VORGAENGE_WITH_UNGELESENE_NACHRICHTEN_PATH)
.setGroupMethod(GroupMethod.COUNT) .setGroupMethod(GroupMethod.COUNT)
.setOperator(Operator.UNEQUAL) .setOperator(Operator.EQUAL)
.setOperandBoolValue(true)
.build(); .build();
} }
} }
\ No newline at end of file
...@@ -325,7 +325,14 @@ class StatisticRemoteServiceTest { ...@@ -325,7 +325,14 @@ class StatisticRemoteServiceTest {
void shouldHaveOperator() { void shouldHaveOperator() {
var query = callService(); var query = callService();
assertThat(query.getOperator()).isEqualTo(Operator.UNEQUAL); assertThat(query.getOperator()).isEqualTo(Operator.EQUAL);
}
@Test
void shouldHaveOperandValue() {
var query = callService();
assertThat(query.getOperandBoolValue()).isTrue();
} }
private GrpcVorgangStatisticQuery callService() { private GrpcVorgangStatisticQuery callService() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment