@@ -113,7 +113,7 @@ void testGetUserWithNoRelations() {
113113 void testGetUserWithRelations () {
114114 // Arrange
115115 Object managerObject = Directory .buildObject ("user" , "rick@the-citadel.com" );
116- Relation managerRelation = Directory .buildRelation ("user" , "morty @the-citadel.com" , "manager" , "user" , "rick @the-citadel.com" );
116+ Relation managerRelation = Directory .buildRelation ("user" , "rick @the-citadel.com" , "manager" , "user" , "morty @the-citadel.com" );
117117 Relation adminRelation = Directory .buildRelation ("group" , "admin" , "member" , "user" , "rick@the-citadel.com" );
118118
119119 // Act
@@ -169,15 +169,15 @@ void testGetUserManyRequest() {
169169 @ Test
170170 void testGetRelation () {
171171 // Arrange
172- Relation expectedRelation = Directory .buildRelation ("user" , "morty @the-citadel.com" , "manager" , "user" , "rick @the-citadel.com" );
172+ Relation expectedRelation = Directory .buildRelation ("user" , "rick @the-citadel.com" , "manager" , "user" , "morty @the-citadel.com" );
173173
174174 // Act
175175 GetRelationResponse getRelationResponse = directoryClient .getRelation (
176176 "user" ,
177- "morty @the-citadel.com" ,
177+ "rick @the-citadel.com" ,
178178 "manager" ,
179179 "user" ,
180- "rick @the-citadel.com" );
180+ "morty @the-citadel.com" );
181181
182182 // Assert
183183 Relation relation = getRelationResponse .getResult ();
@@ -190,15 +190,15 @@ void testGetRelation() {
190190 @ Test
191191 void testGetRelations () {
192192 // Arrange
193- Relation expectedManagerRelation = Directory .buildRelation ("user" , "morty @the-citadel.com" , "manager" , "user" , "rick @the-citadel.com" );
194- Relation expectedFriendRelation = Directory .buildRelation ("user" , "morty @the-citadel.com" , "friend" , "user" , "rick @the-citadel.com" );
193+ Relation expectedManagerRelation = Directory .buildRelation ("user" , "rick @the-citadel.com" , "manager" , "user" , "morty @the-citadel.com" );
194+ Relation expectedFriendRelation = Directory .buildRelation ("user" , "rick @the-citadel.com" , "friend" , "user" , "morty @the-citadel.com" );
195195
196196 directoryClient .setRelation (
197197 "user" ,
198- "morty @the-citadel.com" ,
198+ "rick @the-citadel.com" ,
199199 "friend" ,
200200 "user" ,
201- "rick @the-citadel.com" );
201+ "morty @the-citadel.com" );
202202
203203 GetRelationsRequest getRelationsRequest = GetRelationsRequest .newBuilder ().setObjectType ("user" ).build ();
204204
@@ -217,10 +217,10 @@ void testCheckRelationManager() {
217217 // Arrange & Act
218218 CheckRelationResponse checkRelationResponse = directoryClient .checkRelation (
219219 "user" ,
220- "morty @the-citadel.com" ,
220+ "rick @the-citadel.com" ,
221221 "manager" ,
222222 "user" ,
223- "rick @the-citadel.com" );
223+ "morty @the-citadel.com" );
224224
225225 // Assert
226226 assertTrue (checkRelationResponse .getCheck ());
@@ -231,10 +231,10 @@ void testCheckRelationFriend() {
231231 // Arrange & Act
232232 CheckRelationResponse checkRelationResponse = directoryClient .checkRelation (
233233 "user" ,
234- "morty @the-citadel.com" ,
234+ "rick @the-citadel.com" ,
235235 "friend" ,
236236 "user" ,
237- "rick @the-citadel.com" );
237+ "morty @the-citadel.com" );
238238
239239 // Assert
240240 assertFalse (checkRelationResponse .getCheck ());
@@ -245,10 +245,10 @@ void testCheckManager() {
245245 // Arrange & Act
246246 CheckResponse checkResponse = directoryClient .check (
247247 "user" ,
248- "morty @the-citadel.com" ,
248+ "rick @the-citadel.com" ,
249249 "manager" ,
250250 "user" ,
251- "rick @the-citadel.com" );
251+ "morty @the-citadel.com" );
252252
253253 // Assert
254254 assertTrue (checkResponse .getCheck ());
@@ -259,18 +259,18 @@ void testGetGraph() {
259259 // Arrange
260260 GetGraphRequest getGraphRequest = GetGraphRequest .newBuilder ()
261261 .setAnchorType ("user" )
262- .setAnchorId ("morty @the-citadel.com" )
262+ .setAnchorId ("rick @the-citadel.com" )
263263 .setObjectType ("user" )
264- .setObjectId ("morty @the-citadel.com" )
264+ .setObjectId ("rick @the-citadel.com" )
265265 .build ();
266266
267267 List <ObjectDependency > objectDependencyList = Arrays .asList (
268268 ObjectDependency .newBuilder ()
269269 .setObjectType ("user" )
270- .setObjectId ("morty @the-citadel.com" )
270+ .setObjectId ("rick @the-citadel.com" )
271271 .setRelation ("manager" )
272272 .setSubjectType ("user" )
273- .setSubjectId ("rick @the-citadel.com" )
273+ .setSubjectId ("morty @the-citadel.com" )
274274 .build ()
275275 );
276276
@@ -426,7 +426,7 @@ private List<ImportElement> importCitadelDataList() {
426426 Object editorGroup = Directory .buildObject ("group" , "editor" );
427427 Relation rickAdminRelation = Directory .buildRelation ("group" , "admin" , "member" , "user" , "rick@the-citadel.com" );
428428 Relation mortyEditorRelation = Directory .buildRelation ("group" , "editor" , "member" , "user" , "morty@the-citadel.com" );
429- Relation managerRelation = Directory .buildRelation ("user" , "morty @the-citadel.com" , "manager" , "user" , "rick @the-citadel.com" );
429+ Relation managerRelation = Directory .buildRelation ("user" , "rick @the-citadel.com" , "manager" , "user" , "morty @the-citadel.com" );
430430
431431 importElements .add (new ImportElement (rick ));
432432 importElements .add (new ImportElement (morty ));
0 commit comments