Skip to content

Commit

Permalink
Updated tests for the new users with their emails.
Browse files Browse the repository at this point in the history
  • Loading branch information
oluizeduardo committed Nov 19, 2021
1 parent 7970937 commit 92efb99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,13 @@ void naoDeveriaCadastrarUsuarioComDadosIncompletos() throws Exception
@Test
void deveriaCadastrarUsuarioComDadosCompletos() throws Exception
{
String json = "{\"nome\":\"pessoa\",\"login\":\"pessoa@email.com\",\"perfilId\":1}";
String jsonReturn = "{\"nome\":\"pessoa\",\"login\":\"pessoa@email.com\"}";
String json = "{\"nome\":\"pessoa\","
+ "\"login\":\"@pessoa\","
+ "\"perfilId\":1,"
+ "\"email\":\"pessoa@email.com\"}";

String jsonReturn = "{\"nome\":\"pessoa\","
+ "\"login\":\"@pessoa\"}";

mvc
.perform(post("/usuarios")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private Transacao criaTransacao(BigDecimal preco, Integer quantidade, TipoTransa
LocalDate.now(),
BigDecimal.ZERO,
tipo,
new Usuario(1, "Juliana", "juliana@gmail.com", "123789", null));
new Usuario(1, "Juliana", "juliana@gmail.com", "123789", "test@test.com",null));
}


Expand Down

0 comments on commit 92efb99

Please sign in to comment.