Skip to content

Commit

Permalink
task/JS-164 Court user is able to send a message to a Bureau owned ju…
Browse files Browse the repository at this point in the history
…ror (#837)
  • Loading branch information
akikrahman1 authored Jan 6, 2025
1 parent a57a547 commit 19b5af2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public PaginatedList<? extends JurorToSendMessageBase> messageSearch(MessageSear
if (isCourt || !locCode.equals("400")) {
query.where(JUROR_POOL.pool.courtLocation.locCode.eq(locCode));
if (isCourt) {
query.where(JUROR_POOL.pool.owner.ne("400"));
query.where(JUROR_POOL.owner.ne("400"));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void positiveSimpleResponseCourtUserCourt() {
.where(JUROR_POOL.pool.courtLocation.locCode.eq(TestConstants.VALID_COURT_LOCATION));
verify(jpaQuery, times(1)).where(JUROR_POOL.isActive.isTrue());
verify(jpaQuery, times(1))
.where(JUROR_POOL.pool.owner.ne("400"));
.where(JUROR_POOL.owner.ne("400"));

verify(jpaQuery, times(1)).limit(4L);
verify(jpaQuery, times(1)).offset(0L);
Expand Down Expand Up @@ -370,7 +370,7 @@ void positiveComplexResponseCourt() {
.where(JUROR_POOL.pool.courtLocation.locCode.eq(TestConstants.VALID_COURT_LOCATION));
verify(jpaQuery, times(1)).where(JUROR_POOL.isActive.isTrue());
verify(jpaQuery, times(1))
.where(JUROR_POOL.pool.owner.ne("400"));
.where(JUROR_POOL.owner.ne("400"));

verify(jpaQuery, times(1)).leftJoin(PANEL);
verify(jpaQuery, times(1)).on(
Expand Down Expand Up @@ -466,7 +466,7 @@ void positiveSimpleResponseWithTrialNumber() {
.where(JUROR_POOL.pool.courtLocation.locCode.eq(TestConstants.VALID_COURT_LOCATION));
verify(jpaQuery, times(1)).where(JUROR_POOL.isActive.isTrue());
verify(jpaQuery, times(1))
.where(JUROR_POOL.pool.owner.ne("400"));
.where(JUROR_POOL.owner.ne("400"));

verify(jpaQuery, times(1)).leftJoin(PANEL);
verify(jpaQuery, times(1)).on(
Expand Down

0 comments on commit 19b5af2

Please sign in to comment.