use of com.microsoft.graph.requests.extensions.ISiteCollectionPage in project msgraph-sdk-java by microsoftgraph.
the class SharePointTests method testSearch.
@Test
public void testSearch() {
List<Option> requestOptions = new LinkedList<Option>();
requestOptions.add(new QueryOption("search", "Contoso"));
ISiteCollectionPage sites = testBase.graphClient.sites().buildRequest(requestOptions).get();
assertNotNull(sites);
}
use of com.microsoft.graph.requests.extensions.ISiteCollectionPage in project msgraph-sdk-java by microsoftgraph.
the class SharePointTests method setUp.
@Before
public void setUp() {
testBase = new TestBase();
List<Option> requestOptions = new LinkedList<Option>();
requestOptions.add(new QueryOption("search", "Contoso"));
ISiteCollectionPage sites = testBase.graphClient.sites().buildRequest(requestOptions).get();
testSite = sites.getCurrentPage().get(0);
}
Aggregations