@@ -39,8 +39,8 @@ class UserRelationshipControllerTest extends BaseControllerTest {
39
39
Relationship r1 = new Relationship (id : 1 , follower : follower, followed : followed1)
40
40
Relationship r2 = new Relationship (id : 2 , follower : follower, followed : followed2)
41
41
relationshipService. findFollowings(follower. id, new PageParams ()) >> [
42
- RelatedUserDTO . newInstance (followed1, r1, null , null ),
43
- RelatedUserDTO . newInstance (followed2, r2, null , null ),
42
+ RelatedUserDTO . builder2 (followed1, r1, null ) . build( ),
43
+ RelatedUserDTO . builder2 (followed2, r2, null ) . build( ),
44
44
]
45
45
46
46
when :
@@ -66,8 +66,8 @@ class UserRelationshipControllerTest extends BaseControllerTest {
66
66
Relationship r1 = new Relationship (id : 1 , follower : follower1, followed : followed)
67
67
Relationship r2 = new Relationship (id : 2 , follower : follower2, followed : followed)
68
68
relationshipService. findFollowers(followed. id, new PageParams ()) >> [
69
- RelatedUserDTO . newInstance (follower1, r1, null , null ),
70
- RelatedUserDTO . newInstance (follower2, r2, null , null ),
69
+ RelatedUserDTO . builder2 (follower1, r1, null ) . build( ),
70
+ RelatedUserDTO . builder2 (follower2, r2, null ) . build( ),
71
71
]
72
72
73
73
when :
0 commit comments