Search in sources :

Example 1 with DriveCollectionPage

use of com.microsoft.graph.requests.DriveCollectionPage in project msgraph-sdk-java by microsoftgraph.

the class SharePointTests method testNonDefaultLibrary.

@Test
public void testNonDefaultLibrary() {
    DriveCollectionPage drives = testBase.graphClient.sites(testSite.id).drives().buildRequest().get();
    DriveItemCollectionPage driveItems = testBase.graphClient.sites(testSite.id).drives(drives.getCurrentPage().get(0).id).root().children().buildRequest().get();
    assertNotNull(driveItems);
}
Also used : DriveCollectionPage(com.microsoft.graph.requests.DriveCollectionPage) DriveItemCollectionPage(com.microsoft.graph.requests.DriveItemCollectionPage) Test(org.junit.jupiter.api.Test)

Example 2 with DriveCollectionPage

use of com.microsoft.graph.requests.DriveCollectionPage in project msgraph-beta-sdk-java by microsoftgraph.

the class SharePointTests method testNonDefaultLibrary.

@Test
public void testNonDefaultLibrary() {
    DriveCollectionPage drives = testBase.graphClient.sites(testSite.id).drives().buildRequest().get();
    DriveItemCollectionPage driveItems = testBase.graphClient.sites(testSite.id).drives(drives.getCurrentPage().get(0).id).root().children().buildRequest().get();
    assertNotNull(driveItems);
}
Also used : DriveCollectionPage(com.microsoft.graph.requests.DriveCollectionPage) DriveItemCollectionPage(com.microsoft.graph.requests.DriveItemCollectionPage) Test(org.junit.jupiter.api.Test)

Example 3 with DriveCollectionPage

use of com.microsoft.graph.requests.DriveCollectionPage in project msgraph-sdk-java by microsoftgraph.

the class SharePointTests method testDrives.

@Test
public void testDrives() {
    DriveCollectionPage drives = testBase.graphClient.sites(testSite.id).drives().buildRequest().get();
    assertNotNull(drives);
}
Also used : DriveCollectionPage(com.microsoft.graph.requests.DriveCollectionPage) Test(org.junit.jupiter.api.Test)

Example 4 with DriveCollectionPage

use of com.microsoft.graph.requests.DriveCollectionPage in project msgraph-beta-sdk-java by microsoftgraph.

the class SharePointTests method testDrives.

@Test
public void testDrives() {
    DriveCollectionPage drives = testBase.graphClient.sites(testSite.id).drives().buildRequest().get();
    assertNotNull(drives);
}
Also used : DriveCollectionPage(com.microsoft.graph.requests.DriveCollectionPage) Test(org.junit.jupiter.api.Test)

Aggregations

DriveCollectionPage (com.microsoft.graph.requests.DriveCollectionPage)4 Test (org.junit.jupiter.api.Test)4 DriveItemCollectionPage (com.microsoft.graph.requests.DriveItemCollectionPage)2