File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/test/java/com/microsoft/graph/functional Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 3838import com .microsoft .graph .requests .extensions .IOrganizationCollectionPage ;
3939import com .microsoft .graph .requests .extensions .IUsedInsightCollectionPage ;
4040import com .microsoft .graph .requests .extensions .IUserCollectionPage ;
41+ import com .microsoft .graph .requests .extensions .IUserCollectionWithReferencesPage ;
4142@ Ignore
4243public class UserTests {
4344 IGraphServiceClient graphServiceClient = null ;
@@ -216,10 +217,9 @@ public void emptyPostContentType() {
216217 public void castTest () {
217218 final IGroupCollectionPage groups = graphServiceClient .groups ().buildRequest ().top (1 ).get ();
218219 final Group group = groups .getCurrentPage ().get (0 );
219- final IUserCollectionPage usersPage = graphServiceClient
220+ final IUserCollectionWithReferencesPage usersPage = graphServiceClient
220221 .groups (group .id )
221- .members ()
222- .castToUser ()
222+ .membersAsUser ()
223223 .buildRequest ()
224224 .get ();
225225 assertNotNull (usersPage );
@@ -234,8 +234,7 @@ public void castTest() {
234234
235235 final User user = graphServiceClient
236236 .groups (group .id )
237- .members (testUser .id )
238- .castToUser ()
237+ .membersAsUser (testUser .id )
239238 .buildRequest ()
240239 .get ();
241240 assertNotNull (user );
You can’t perform that action at this time.
0 commit comments