Search in sources :

Example 1 with ISiteCollectionPage

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);
}
Also used : ISiteCollectionPage(com.microsoft.graph.requests.extensions.ISiteCollectionPage) QueryOption(com.microsoft.graph.options.QueryOption) Option(com.microsoft.graph.options.Option) QueryOption(com.microsoft.graph.options.QueryOption) LinkedList(java.util.LinkedList)

Example 2 with ISiteCollectionPage

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);
}
Also used : ISiteCollectionPage(com.microsoft.graph.requests.extensions.ISiteCollectionPage) QueryOption(com.microsoft.graph.options.QueryOption) Option(com.microsoft.graph.options.Option) QueryOption(com.microsoft.graph.options.QueryOption) LinkedList(java.util.LinkedList)

Aggregations

Option (com.microsoft.graph.options.Option)2 QueryOption (com.microsoft.graph.options.QueryOption)2 ISiteCollectionPage (com.microsoft.graph.requests.extensions.ISiteCollectionPage)2 LinkedList (java.util.LinkedList)2