Search in sources :

Example 6 with TestBase

use of com.microsoft.graph.functional.TestBase in project msgraph-sdk-java by microsoftgraph.

the class ParameterSets method testFunctionOptionsFromBuilder.

@Test
public void testFunctionOptionsFromBuilder() {
    final TestBase base = new TestBase(false);
    final Request request = base.graphClient.reports().getMailboxUsageStorage(ReportRootGetMailboxUsageStorageParameterSet.newBuilder().withPeriod("somePeriod").build()).buildRequest().withHttpMethod(HttpMethod.GET).getHttpRequest();
    assertEquals("https://graph.microsoft.com/v1.0/reports/microsoft.graph.getMailboxUsageStorage(period='somePeriod')", request.url().toString());
}
Also used : TestBase(com.microsoft.graph.functional.TestBase) Request(okhttp3.Request) CalendarGetScheduleCollectionRequest(com.microsoft.graph.requests.CalendarGetScheduleCollectionRequest) Test(org.junit.jupiter.api.Test)

Aggregations

TestBase (com.microsoft.graph.functional.TestBase)6 Test (org.junit.jupiter.api.Test)6 CalendarGetScheduleCollectionRequest (com.microsoft.graph.requests.CalendarGetScheduleCollectionRequest)4 Request (okhttp3.Request)3 CalendarGetScheduleParameterSet (com.microsoft.graph.models.CalendarGetScheduleParameterSet)2 DateTimeTimeZone (com.microsoft.graph.models.DateTimeTimeZone)2 IHttpRequest (com.microsoft.graph.http.IHttpRequest)1