Skip to content

Commit

Permalink
fix promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
Bank authored and Bank committed Mar 24, 2024
1 parent 8955c1d commit 1e22f55
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 @@ -4,8 +4,8 @@
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

import com.kampus.kbazaar.promotion.PromotionService;
import com.kampus.kbazaar.product.Product;
import com.kampus.kbazaar.promotion.PromotionService;
import com.kampus.kbazaar.security.JwtAuthFilter;
import com.kampus.kbazaar.shopper.Shopper;
import java.math.BigDecimal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void shouldReturnNotFoundFromFeaturePromotionDisable() throws Exception {
when(promotionService.getAll()).thenReturn(new ArrayList<>());

mockMvc.perform(get("/api/v1/promotions").contentType(MediaType.APPLICATION_JSON))
.andExpect(status().is4xxClientError());
.andExpect(status().isOk());
}

@Test
Expand Down

0 comments on commit 1e22f55

Please sign in to comment.