Creación de un test para el envio

parent 71a1023d
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package es.ujaen.dae.Ujapack.beans;
import es.ujaen.dae.Ujapack.UjapackApplication;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
/**
*
* @author Rafael
*/
@Autowired
ServicioUjaPackImpl ujaPack;
@SpringBootTest(classes={UjapackApplication.class})
public class ServicioUjapackImplIntegrationTest {
@Test
public void testcrearEnvio(){
Assertions.assertTrue(ujaPack.crearEnvio("Jose","Maria","Castellon","Islas Baleares",0.5f,20.4f,20.4f,20.4f));
Assertions.assertFalse(ujaPack.crearEnvio("Jose","Maria","Linares","Sevilla",0.5f,20.4f,20.4f,20.4f));
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package es.ujaen.dae.Ujapack.entidades;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Assertions;
/**
*
* @author Rafael
*/
public class EnvioTest {
@Test
public void testEnvioCorrecto(){}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment