añadido test

This commit is contained in:
2025-11-14 13:55:29 +01:00
parent 4f1b3f2bb6
commit 3086a6de41
2 changed files with 209 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package com.imprimelibros.erp.cart;
import java.util.Locale;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
public class envioCarroTest {
@Autowired
CartService cartService;
private final Long carritoId = 64L;
@Test
void addPedido(){
Locale locale = Locale.forLanguageTag("es-ES");
cartService.crearPedido(carritoId, locale);
}
}