Skip to content

Commit

Permalink
[refactor] altera alguns arquivos para testes
Browse files Browse the repository at this point in the history
  • Loading branch information
magnoazneto committed Apr 26, 2021
1 parent 3aff5dd commit d5854ee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.time.LocalDateTime;

@Entity
@Table(name = "USUARIO")
public class Usuario {

@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.zupacademy.magno.mercadolivre.usuario.cadastro;

import com.zupacademy.magno.mercadolivre.usuario.Usuario;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand All @@ -17,7 +16,7 @@
@RequestMapping("/usuario")
public class CadastroUsuarioController {

@PersistenceContext
@PersistenceContext
EntityManager manager;

@PostMapping
Expand Down

0 comments on commit d5854ee

Please sign in to comment.