Skip to content

Commit

Permalink
refs #1 - Correção do teste LoadUserByUsarnameTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ruan-pb committed Feb 11, 2021
1 parent 21dc6b1 commit 10a7481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import org.ayty.hatcher.api.v1.user.entity.Profile;
import org.ayty.hatcher.api.v1.user.entity.User;
import org.ayty.hatcher.api.v1.user.exception.UsernameNotFoundException;
import org.ayty.hatcher.api.v1.user.exception.IncorrectUserOrPassword;
import org.ayty.hatcher.api.v1.user.jpa.UserRepository;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -59,8 +59,8 @@ void UserRolesTests() {

@Test
void UserNamenonexistent() {
assertThrows(UsernameNotFoundException.class,() -> load.loadUserByUsername("cleyson"));

assertThrows(IncorrectUserOrPassword.class,() -> load.loadUserByUsername("cleyson"));
}


Expand Down

This file was deleted.

0 comments on commit 10a7481

Please sign in to comment.