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());
}
Aggregations