Skip to content

Commit

Permalink
fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stormer-wc committed Mar 31, 2024
1 parent c274d7b commit 8693a57
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@ComponentScan.Filter(
type = FilterType.ASSIGNABLE_TYPE,
classes = JwtAuthFilter.class))
public class CartControllerTest {
class CartControllerTest {

@Autowired private MockMvc mockMvc;

Expand All @@ -46,13 +46,13 @@ public void setup() {
}

@Test
public void getCart_ReturnsOk() throws Exception {
void getCart_ReturnsOk() throws Exception {
mockMvc.perform(get("/api/v1/carts").contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isOk());
}

@Test
public void getCards_ReturnsCorrectResponse() throws Exception {
void getCards_ReturnsCorrectResponse() throws Exception {
when(cartService.getAllCart())
.thenReturn(
List.of(
Expand Down

0 comments on commit 8693a57

Please sign in to comment.