Skip to content

Commit

Permalink
GRAD2-2949 - Adding test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal-mohammed committed Nov 18, 2024
1 parent 5e36999 commit 719fd37
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.mockito.Mockito;
import org.mockito.junit.MockitoJUnitRunner;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;

import java.util.ArrayList;
Expand Down Expand Up @@ -90,7 +91,7 @@ public void whenGetDistrictDetailsByDistNo_ReturnNULL() {

districtControllerV2.getDistrictDetailsByDistNo(distNo);
Mockito.verify(districtServiceV2, never()).getDistrictByDistNoFromRedisCache(distNo);
Assertions.assertEquals(null, districtControllerV2.getDistrictDetailsByDistNo(distNo));
Assertions.assertEquals(new ResponseEntity<>(HttpStatus.NOT_FOUND), districtControllerV2.getDistrictDetailsByDistNo(distNo));
}

@Test
Expand Down

0 comments on commit 719fd37

Please sign in to comment.