-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ajuste no atributo user.name para user.first_name #64
- Loading branch information
1 parent
b2a7c0c
commit fe5ea66
Showing
15 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,14 @@ public static void main(String[] args) { | |
|
||
User analista = new User(); | ||
analista.setId(1L); | ||
analista.setName("Taciano"); | ||
analista.setFirstName("Taciano"); | ||
analista.setLastName("Morais Silva"); | ||
analista.setEmail("[email protected]"); | ||
analista.setPassword("12345"); | ||
|
||
User desenvolvedor = new User(); | ||
desenvolvedor.setId(2L); | ||
desenvolvedor.setName("Zé"); | ||
desenvolvedor.setFirstName("Zé"); | ||
desenvolvedor.setLastName("Silva"); | ||
desenvolvedor.setEmail("[email protected]"); | ||
desenvolvedor.setPassword("12345"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,21 +54,21 @@ public void conceitos() throws BusinessRuleException { | |
System.out.println("Criando o usuário ..."); | ||
|
||
User analista = new User(); | ||
analista.setName("Taciano"); | ||
analista.setFirstName("Taciano"); | ||
analista.setLastName("Silva"); | ||
analista.setEmail("[email protected]"); | ||
analista.setPassword("12345"); | ||
analista.setActive(1); | ||
|
||
User developer = new User(); | ||
developer.setName("Zé"); | ||
developer.setFirstName("Zé"); | ||
developer.setLastName("Silva"); | ||
developer.setEmail("[email protected]"); | ||
developer.setPassword("12345"); | ||
developer.setActive(1); | ||
|
||
User developerMaria = new User(); | ||
developerMaria.setName("Maria"); | ||
developerMaria.setFirstName("Maria"); | ||
developerMaria.setLastName("Silva"); | ||
developerMaria.setEmail("[email protected]"); | ||
developerMaria.setPassword("12345"); | ||
|
@@ -181,7 +181,7 @@ public void conceitos() throws BusinessRuleException { | |
Set<Member> team = project.getTeam(); | ||
|
||
for (Member member : team) { | ||
System.out.println("Membro ID = " + member.getId() + ", Name = " + member.getUser().getName()); | ||
System.out.println("Membro ID = " + member.getId() + ", Name = " + member.getUser().getFirstName()); | ||
} | ||
|
||
System.out.println("Listar os User Stories do Projeto ID = " + project.getId()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,7 @@ public void findByName() { | |
private User createUser() { | ||
user1 = new User(); | ||
|
||
user1.setName("Taciano Silva"); | ||
user1.setFirstName("Taciano"); | ||
user1.setLastName("Silva"); | ||
user1.setEmail("[email protected]"); | ||
user1.setPassword("12345"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,19 +48,19 @@ public void startTest() throws BusinessRuleException { | |
softAssert = new SoftAssert(); | ||
|
||
analista = new User(); | ||
analista.setName("Taciano"); | ||
analista.setFirstName("Taciano"); | ||
analista.setLastName("Morais Silva"); | ||
analista.setEmail("[email protected]"); | ||
analista.setPassword("12345"); | ||
|
||
desenvolvedor = new User(); | ||
desenvolvedor.setName("Zé"); | ||
desenvolvedor.setFirstName("Zé"); | ||
desenvolvedor.setLastName("Silva"); | ||
desenvolvedor.setEmail("[email protected]"); | ||
desenvolvedor.setPassword("12345"); | ||
|
||
dev2 = new User(); | ||
dev2.setName("dev2"); | ||
dev2.setFirstName("dev2"); | ||
dev2.setLastName("Silva"); | ||
dev2.setEmail("[email protected]"); | ||
dev2.setPassword("12345"); | ||
|
@@ -179,7 +179,7 @@ public void save() throws BusinessRuleException { | |
softAssert.assertFalse(team1.contains(m2), "T02.4 - False:"); | ||
|
||
for (Member member : team1) { | ||
System.out.println(member.getUser().getName()); | ||
System.out.println(member.getUser().getFirstName()); | ||
System.out.println(member.getProject().getName()); | ||
} | ||
System.out.println("Team 1 contais m1: " + team1.contains(m1)); | ||
|
@@ -212,7 +212,7 @@ public void save() throws BusinessRuleException { | |
System.out.println("Team contais m1: " + team2.contains(m1)); | ||
System.out.println("Team contais m2: " + team2.contains(m2)); | ||
for (Member member : team2) { | ||
System.out.println(member.getUser().getName()); | ||
System.out.println(member.getUser().getFirstName()); | ||
System.out.println(member.getProject().getName()); | ||
} | ||
|
||
|
@@ -265,7 +265,7 @@ public void saveMember() throws BusinessRuleException { | |
softAssert.assertFalse(team1.contains(m2), "T02.4 - False:"); | ||
|
||
for (Member member : team1) { | ||
System.out.println(member.getUser().getName()); | ||
System.out.println(member.getUser().getFirstName()); | ||
System.out.println(member.getProject().getName()); | ||
} | ||
System.out.println("Team 1 contais m1: " + team1.contains(m1)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ public void startTest() { | |
|
||
user1 = new User(); | ||
|
||
user1.setName("Taciano Silva"); | ||
user1.setFirstName("Taciano Silva"); | ||
user1.setLastName("Silva"); | ||
user1.setEmail("[email protected]"); | ||
user1.setPassword("12345"); | ||
|
@@ -64,7 +64,7 @@ public void findOne() { | |
|
||
softAssert.assertNotNull(found, "T01 - NotNull:"); | ||
|
||
softAssert.assertEquals(found.getName(), user1.getName(), "T03 - Equals:"); | ||
softAssert.assertEquals(found.getFirstName(), user1.getFirstName(), "T03 - Equals:"); | ||
softAssert.assertEquals(found.getLastName(), user1.getLastName(), "T04 - Equals:"); | ||
softAssert.assertEquals(found.getEmail(), user1.getEmail(), "T05 - Equals:"); | ||
|
||
|
@@ -82,7 +82,7 @@ public void findUserByEmail() { | |
|
||
softAssert.assertNotNull(found, "T01 - NotNull:"); | ||
|
||
softAssert.assertEquals(found.getName(), user1.getName(), "T03 - Equals:"); | ||
softAssert.assertEquals(found.getFirstName(), user1.getFirstName(), "T03 - Equals:"); | ||
softAssert.assertEquals(found.getLastName(), user1.getLastName(), "T04 - Equals:"); | ||
softAssert.assertEquals(found.getEmail(), user1.getEmail(), "T05 - Equals:"); | ||
softAssert.assertNotNull(found.getActive(), "T06 - NotNull:"); | ||
|
@@ -95,7 +95,7 @@ public void findUserByEmail() { | |
public void save() { | ||
User user2 = new User(); | ||
|
||
user2.setName("Zé"); | ||
user2.setFirstName("Zé"); | ||
user2.setLastName("Brasil"); | ||
user2.setEmail("[email protected]"); | ||
user2.setPassword("345"); | ||
|
@@ -114,7 +114,7 @@ public void save() { | |
softAssert.assertNotNull(usuarios, "T03 - NotNull:"); | ||
softAssert.assertEquals(usuarios.size(), 2, "T04 - Equals:"); | ||
|
||
softAssert.assertEquals(found.getName(), user2.getName(), "T05 - Equals:"); | ||
softAssert.assertEquals(found.getFirstName(), user2.getFirstName(), "T05 - Equals:"); | ||
softAssert.assertEquals(found.getLastName(), user2.getLastName(), "T06 - Equals:"); | ||
softAssert.assertEquals(found.getEmail(), user2.getEmail(), "T07 - Equals:"); | ||
|
||
|
@@ -132,7 +132,7 @@ public void update() { | |
|
||
User update = service.findOne(id); | ||
|
||
update.setName("Marcos"); | ||
update.setFirstName("Marcos"); | ||
update.setLastName("Morais"); | ||
update.setEmail("[email protected]"); | ||
// Simular o não preenchimento da senha | ||
|
@@ -143,8 +143,8 @@ public void update() { | |
User found = service.findOne(id); | ||
|
||
softAssert.assertNotNull(found, "T01 - NotNull:"); | ||
softAssert.assertEquals(found.getName(), "Marcos", "T02 - Equals:"); | ||
softAssert.assertNotEquals(found.getName(), "Taciano", "T03 - Equals:"); | ||
softAssert.assertEquals(found.getFirstName(), "Marcos", "T02 - Equals:"); | ||
softAssert.assertNotEquals(found.getFirstName(), "Taciano", "T03 - Equals:"); | ||
softAssert.assertEquals(found.getLastName(), "Morais", "T04 - Equals:"); | ||
softAssert.assertNotEquals(found.getLastName(), "Silva", "T05 - Equals:"); | ||
softAssert.assertEquals(found.getEmail(), "[email protected]", "T06 - Equals:"); | ||
|
@@ -170,7 +170,7 @@ public void update() { | |
User found2 = service.findOne(id); | ||
|
||
softAssert.assertNotNull(found2, "T10 - NotNull:"); | ||
softAssert.assertEquals(found2.getName(), "Marcos", "T11 - Equals:"); | ||
softAssert.assertEquals(found2.getFirstName(), "Marcos", "T11 - Equals:"); | ||
softAssert.assertEquals(found2.getLastName(), "Morais", "T12 - Equals:"); | ||
softAssert.assertEquals(found2.getEmail(), "[email protected]", "T13 - Equals:"); | ||
softAssert.assertEquals(found2.getActive(), 1, "T14 - Equals:"); | ||
|
@@ -184,7 +184,7 @@ public void update() { | |
public void delete() { | ||
User user3 = new User(); | ||
|
||
user3.setName("Test Project"); | ||
user3.setFirstName("Test Project"); | ||
user3.setLastName("TestNG Project"); | ||
user3.setEmail("[email protected]"); | ||
user3.setPassword("123"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,7 +214,7 @@ public void delete() throws BusinessRuleException { | |
private User createUser() { | ||
User user = new User(); | ||
|
||
user.setName("Taciano Silva"); | ||
user.setFirstName("Taciano"); | ||
user.setLastName("Silva"); | ||
user.setEmail("[email protected]"); | ||
user.setPassword("12345"); | ||
|