Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
DAE-Ujapack
/
Ujapack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dd30f9a0
authored
Oct 26, 2020
by
Rafael Ortega Chica
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Creación de un test para el envio
parent
71a1023d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
src/test/java/es/ujaen/dae/Ujapack/beans/ServicioUjapackImplIntegrationTest.java
src/test/java/es/ujaen/dae/Ujapack/entidades/EnvioTest.java
src/test/java/es/ujaen/dae/Ujapack/beans/ServicioUjapackImplIntegrationTest.java
0 → 100644
View file @
dd30f9a0
/*
* 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
));
}
}
src/test/java/es/ujaen/dae/Ujapack/entidades/EnvioTest.java
0 → 100644
View file @
dd30f9a0
/*
* 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
(){}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment