Skip to content

Commit ac2df15

Browse files
committed
Merge pull request #1 from eviltester/master
Update
2 parents 8c67434 + 338c22b commit ac2df15

File tree

111 files changed

+2226
-929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+2226
-929
lines changed

source/src/main/java/com/javafortesters/classes/AnEmptyClass.java

Lines changed: 0 additions & 4 deletions
This file was deleted.

source/src/main/java/com/javafortesters/domainentities/User.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
public class User {
44

5-
65
private String username;
76
private String password;
87

98
public User(){
109
this("username", "password");
1110
}
1211

13-
1412
public User(String username, String password) {
1513
this.username = username;
1614
this.password = password;
@@ -31,4 +29,4 @@ public void setPassword(String password) {
3129
public String getPermission() {
3230
return "Normal";
3331
}
34-
}
32+
}

source/src/main/java/com/javafortesters/domainentities/UserComparator.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,3 @@ public int compare(Object oUser1, Object oUser2) {
3636
return val;
3737
}
3838
}
39-
40-
/*
41-
// add the following line just before return val; to see the comparator in action
42-
System.out.println("Compare " + user1.getUsername() +
43-
" with " + user2.getUsername() + " = " + val);
44-
*/

source/src/main/java/com/javafortesters/domainentities/interim/User.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ public User(){
1717
password = "password";
1818
}
1919

20+
public User(String username, String password) {
21+
this.username = username;
22+
this.password = password;
23+
}
24+
2025
public String getUsername() {
2126
return username;
2227
}

source/src/main/java/com/javafortesters/domainentities/interim/exceptions/custom/User.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public User(String username, String password) throws InvalidPassword{
2727
}
2828

2929
public void setPassword(String password) throws InvalidPassword {
30-
3130
if(password.length()<7){
3231
throw new InvalidPassword("Password must be > 6 chars");
3332
}

source/src/test/java/com/javafortesters/unusedCode/UserPasswordExceptionsTest.java renamed to source/src/test/java/com/javafortesters/booksupport/unusedCode/UserPasswordExceptionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.javafortesters.unusedCode;
1+
package com.javafortesters.booksupport.unusedCode;
22

33

44
import com.javafortesters.domainentities.interim.exceptions.User;

source/src/main/java/com/javafortesters/classes/AClassWithAMethod.java renamed to source/src/test/java/com/javafortesters/chap001basicsofjava/examples/classes/AClassWithAMethod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.javafortesters.classes;
1+
package com.javafortesters.chap001basicsofjava.examples.classes;
22

33
public class AClassWithAMethod {
44

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.javafortesters.chap001basicsofjava.examples.classes;
2+
3+
public class AnEmptyClass {
4+
}

source/src/test/java/com/javafortesters/myfirsttest/MyFirstTest.java renamed to source/src/test/java/com/javafortesters/chap003myfirsttest/examples/MyFirstTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.javafortesters.myfirsttest;
1+
package com.javafortesters.chap003myfirsttest.examples;
22
import org.junit.Test;
33
import static org.junit.Assert.assertEquals;
44

source/src/test/java/com/javafortesters/myfirsttest/examples/MyFirstTestDifferentAsserts.java renamed to source/src/test/java/com/javafortesters/chap003myfirsttest/examples/MyFirstTestDifferentAsserts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.javafortesters.myfirsttest.examples;
1+
package com.javafortesters.chap003myfirsttest.examples;
22

33
import org.junit.Test;
44

0 commit comments

Comments
 (0)