Commit 75bdca43 by Antonio Rueda

Cambios menores

parent 3e59c914
......@@ -44,6 +44,7 @@ public class Cliente implements Serializable {
/** Dirección del domicilio */
@NotBlank
String direccion;
/** Teléfono */
@NotNull
@Size(min=9, max=13)
......
......@@ -4,7 +4,7 @@ spring.datasource.url: jdbc:mysql://localhost:33060/ujacoin
spring.datasource.username: ujacoin
spring.datasource.password: secret
spring.jpa.properties.javax.persistence.schema-generation.database.action: none
spring.jpa.properties.javax.persistence.schema-generation.database.action: drop-and-create
spring.data.jpa.repositories.bootstrap-mode: default
......
......@@ -69,7 +69,7 @@ public class ControladorRESTTest {
"jeegmail.com",
"clave");
TestRestTemplate restTemplate = new TestRestTemplate(restTemplateBuilder);
TestRestTemplate restTemplate = new TestRestTemplate(restTemplateBuilder);
ResponseEntity<DTOCuenta> respuesta = restTemplate.postForEntity(
"/clientes",
cliente,
......@@ -156,7 +156,7 @@ public class ControladorRESTTest {
).getBody();
TestRestTemplate restTemplateAutenticado = new TestRestTemplate(restTemplateBuilder.basicAuthentication(cliente.getDni(), cliente.getClave()));
// Acceso con credenciales del primer cliente a la información del segundo
ResponseEntity<DTOCliente> respuestaLogin = restTemplateAutenticado
.getForEntity(
......
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