Skip to content

Commit

Permalink
Replace junit assertthat with hamcrest asserthat
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd committed Jan 21, 2025
1 parent da5795c commit 482d4fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public OppfolgingsenhetEndringService(OppfolgingsenhetHistorikkRepository enhetH
public void behandleBrukerEndring(EndringPaaOppfoelgingsBrukerV2 brukerV2) {
AktorId aktorId = authService.getAktorIdOrThrow(Fnr.of(brukerV2.getFodselsnummer()));
String enhetString = brukerV2.getOppfolgingsenhet();
if (enhetString == null) {
if (enhetString == null || enhetString.isBlank()) {
return;
}
EnhetId arenaNavKontor = EnhetId.of(enhetString);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

import java.util.List;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

Expand Down

0 comments on commit 482d4fd

Please sign in to comment.