Search in sources :

Example 1 with UserDeltaCollectionResponse

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

the class CollectionPageSerializerTests method deltaLinkEndtoEndTest.

@Test
public void deltaLinkEndtoEndTest() throws Exception {
    final String jsonString = "{\"@odata.context\":\"https://graph.microsoft.com/v1.0/$metadata#users\",\"@odata.deltaLink\":\"https://graph.microsoft.com/v1.0/users/delta?$deltatoken=iW6HI4gRQf_CNwkN_2YR_wZsbUvU92el3RLdsbOM_4ZSC9GlnuDQvR2Xy0DDbLeJHde01ChMf5TmFQhCNFFwoil_n6kD8qDh5afldOw_CAj71jPUSP5Fwi3_PqeWMhN3LdX6oFBE5T-RyeUJaXsP9b4DLxYnmOrlb9EyOd4LP-kffRADZDN30aTt402EhIx-s0UWAEkKuSEVw2C2QyzqWQFO_PrC5wRXXVi6DiQf715QDXkxDmpNkgcS_jzINs2u9HbZzIpj170ZOx52vE_3eaI150SAd8qXOg9DEFPc5KUwAeOyEruCnqGuN07TuOc7L8eXa96_R-snlCNjB4R7qOWXQcbhRejm0izYC8w7g3uu1l3cPdhZURDsioOlO1xQGTa_upsvqMiVZBaNgMzZlRvy3GZmNTW-zQA1PFfKgwaVpWB8DcvG2CagEXE_Run7zFav00LHlKc8mEpQnfzYrbNct_sgpBGdK7-alRFg_-x0gHqMuzIznmYn6mQ_Nh_e-s57wtHDNgTYAKKMjlJlOoHig2G3aTHc4zdg0zQ_LFTi1EiIxh5a1tZQuGhxp2-ky4_kfnl0qekJvkchqHquWMRm0iQ4Dja3VEFI7AIBxhNG4VBDibOm_HZd7Jtm9nxT_bCI5ji5aaaFMvy16Ei11sAWf9390ly9-HscR2zr2RHu1hReVxkVt-nUA-lhXmxWBrM64NJUae0JbF5s68QWCEBhWvGBYYclMjMvQfHG5R7yJ7Kosp_Afxg4Vna1cvCXuHLBe0RiCCMg88dnQreMiFC6rWRmltuJ8Ryk7u_ZFU_g0mPc904dhnJ5SfUJRnjQAkL-4I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sFP_Vhjem5Cum9xzAjq_NXkabHBU56GpHf0G8RpnRTabIqXx-bCgfLlF9wwpuupu7hINPNmdBJI1ZyqiWqeWG7KD47k7OBtPQ7Yuq.ElDr4hD2Tb9PoZex2ONMAModMdlpfXqklPlnRuLo5QA\",\"value\":[]}";
    final DefaultSerializer defaultSerializer = new DefaultSerializer(logger);
    final UserDeltaCollectionResponse response = defaultSerializer.deserializeObject(jsonString, UserDeltaCollectionResponse.class);
    final UserDeltaCollectionPage page = new UserDeltaCollectionPage(response, null);
    assertNotNull(page.deltaLink);
}
Also used : DefaultSerializer(com.microsoft.graph.serializer.DefaultSerializer) UserDeltaCollectionPage(com.microsoft.graph.requests.UserDeltaCollectionPage) UserDeltaCollectionResponse(com.microsoft.graph.requests.UserDeltaCollectionResponse) Test(org.junit.jupiter.api.Test)

Example 2 with UserDeltaCollectionResponse

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

the class CollectionPageSerializerTests method deltaLinkEndtoEndTest.

@Test
public void deltaLinkEndtoEndTest() throws Exception {
    final String jsonString = "{\"@odata.context\":\"https://graph.microsoft.com/v1.0/$metadata#users\",\"@odata.deltaLink\":\"https://graph.microsoft.com/v1.0/users/delta?$deltatoken=iW6HI4gRQf_CNwkN_2YR_wZsbUvU92el3RLdsbOM_4ZSC9GlnuDQvR2Xy0DDbLeJHde01ChMf5TmFQhCNFFwoil_n6kD8qDh5afldOw_CAj71jPUSP5Fwi3_PqeWMhN3LdX6oFBE5T-RyeUJaXsP9b4DLxYnmOrlb9EyOd4LP-kffRADZDN30aTt402EhIx-s0UWAEkKuSEVw2C2QyzqWQFO_PrC5wRXXVi6DiQf715QDXkxDmpNkgcS_jzINs2u9HbZzIpj170ZOx52vE_3eaI150SAd8qXOg9DEFPc5KUwAeOyEruCnqGuN07TuOc7L8eXa96_R-snlCNjB4R7qOWXQcbhRejm0izYC8w7g3uu1l3cPdhZURDsioOlO1xQGTa_upsvqMiVZBaNgMzZl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1oKmnTw3Y4BYMH-3rTgem5ijVONIsWywat82CXl5bZLdzNlybt8Ia1FJORVe-SeFGlqStmh62URSW0XpdZd8HPXYZn3LDlFvbx7DeQye_1tN0n-hG2htNwwb3mAmJISPPMDkDLtiN8Bu5IvTtatOMLtsplhw8q2WNBXuF800NKPQujJ1T6mMcfCaAY_19trmzulKLFglaOEyF42iQ8o7XvoCZSIRRbVMVPWWr8ccM7rjObUbIH7B09ObHMtw_qbSgedFqWJXIurzMCQb0d62uIKPqRTIjnOr_jf1gQn4phtrEMsGrd05n2mRk_aYknzR3Fziq827KQonQicTmUI2i9NI34QYh9zBPgVovvpdZmmS58BpEEN3aKmEUHLrS5nGJ0zYuSfLxHo3CrANoamLglSOA3uX5j5s9t71tu-aDhspkcnRePxeFGbX080kh31fgR4k4etgtwsFP_Vhjem5Cum9xzAjq_NXkabHBU56GpHf0G8RpnRTabIqXx-bCgfLlF9wwpuupu7hINPNmdBJI1ZyqiWqeWG7KD47k7OBtPQ7Yuq.ElDr4hD2Tb9PoZex2ONMAModMdlpfXqklPlnRuLo5QA\",\"value\":[]}";
    final DefaultSerializer defaultSerializer = new DefaultSerializer(logger);
    final UserDeltaCollectionResponse response = defaultSerializer.deserializeObject(jsonString, UserDeltaCollectionResponse.class);
    final UserDeltaCollectionPage page = new UserDeltaCollectionPage(response, null);
    assertNotNull(page.deltaLink);
}
Also used : DefaultSerializer(com.microsoft.graph.serializer.DefaultSerializer) UserDeltaCollectionPage(com.microsoft.graph.requests.UserDeltaCollectionPage) UserDeltaCollectionResponse(com.microsoft.graph.requests.UserDeltaCollectionResponse) Test(org.junit.jupiter.api.Test)

Aggregations

UserDeltaCollectionPage (com.microsoft.graph.requests.UserDeltaCollectionPage)2 UserDeltaCollectionResponse (com.microsoft.graph.requests.UserDeltaCollectionResponse)2 DefaultSerializer (com.microsoft.graph.serializer.DefaultSerializer)2 Test (org.junit.jupiter.api.Test)2