mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-21 23:08:52 -05:00
Revert fields from public to protected in tests
This commit is contained in:
parent
2be8f073a4
commit
337abc8c6d
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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(){
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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[][] {
|
||||
|
Loading…
Reference in New Issue
Block a user