Revert fields from public to protected in tests

This commit is contained in:
Travis Burtrum 2018-04-17 23:42:21 -04:00
parent 2be8f073a4
commit 337abc8c6d
6 changed files with 19 additions and 15 deletions

View File

@ -6,8 +6,8 @@ import java.util.Date;
* Created by mopar on 6/10/14.
*/
public class FieldBoss extends FieldPerson implements Boss {
public String department;
public String first_name;
protected String department;
protected String first_name;
public FieldBoss() {
super();

View File

@ -9,8 +9,8 @@ public class FieldPerson implements Person {
protected long personNo;
protected Date birthDate;
public String firstName;
public String lastName;
protected String firstName;
protected String lastName;
public FieldPerson(){
}
@ -64,4 +64,10 @@ public class FieldPerson implements Person {
", lastName='" + lastName + '\'' +
'}';
}
public FieldPerson cleanThyself() {
this.firstName += " " + this.lastName;
this.lastName = null;
return this;
}
}

View File

@ -6,8 +6,8 @@ import java.util.Date;
* Created by mopar on 6/10/14.
*/
public class ReverseFieldBoss extends ReverseFieldPerson implements Boss {
public String department;
public String firstName;
protected String department;
protected String firstName;
public ReverseFieldBoss() {
super();

View File

@ -7,10 +7,10 @@ import java.util.Date;
*/
public class ReverseFieldPerson implements Person {
public long personNo;
public Date birthDate;
public String first_name;
public String lastName;
protected long personNo;
protected Date birthDate;
protected String first_name;
protected String lastName;
public ReverseFieldPerson(){
}

View File

@ -6,8 +6,8 @@ import java.util.Date;
* Created by mopar on 6/10/14.
*/
public class ReverseSetBoss extends ReverseSetPerson implements Boss {
public String department;
public String firstName;
protected String department;
protected String firstName;
public ReverseSetBoss() {
super();

View File

@ -57,9 +57,7 @@ public class CleaningQueryMapperTest {
final Cleaner<FieldPerson> personCleaner = new Cleaner<FieldPerson>() {
@Override
public FieldPerson clean(final FieldPerson dto) {
dto.firstName += " " + dto.lastName;
dto.lastName = null;
return dto;
return dto.cleanThyself();
}
};
return Arrays.asList(new Object[][] {