@@ -32,7 +32,7 @@ public void setUp() {
3232
3333 @ Test
3434 public void testAttachmentCollectionPageSerialization () throws Exception {
35- String expectedString = "[{\" contentBytes\" :\" ZGF0YQ==\" ,\" name\" :\" document.pdf\" ,\" @odata.type\" :\" #microsoft.graph.fileAttachment\" ,\" id\" :\" 54321\" },{\" item\" :{\" end\" :{\" dateTime\" :\" 2018-11-18T07:30:26.544Z\" ,\" timeZone\" :\" UTC\" },\" start\" :{\" dateTime\" :\" 2018-10-16T06:15:26.544Z\" ,\" timeZone\" :\" UTC\" },\" subject\" :\" Test Event Subject\" ,\" @odata.type\" :\" microsoft.graph.event\" ,\" id\" :\" 1234\" },\" name\" :\" Holiday event\" ,\" @odata.type\" :\" #microsoft.graph.itemAttachment\" },{\" item\" :{\" displayName\" :\" displayname\" ,\" mobilePhone \" :\" 123456890 \" ,\" @odata.type\" :\" microsoft.graph.contact\" },\" name\" :\" Attachment name\" ,\" @odata.type\" :\" #microsoft.graph.itemAttachment\" }]" ;
35+ String expectedString = "[{\" contentBytes\" :\" ZGF0YQ==\" ,\" name\" :\" document.pdf\" ,\" @odata.type\" :\" #microsoft.graph.fileAttachment\" ,\" id\" :\" 54321\" },{\" item\" :{\" end\" :{\" dateTime\" :\" 2018-11-18T07:30:26.544Z\" ,\" timeZone\" :\" UTC\" },\" start\" :{\" dateTime\" :\" 2018-10-16T06:15:26.544Z\" ,\" timeZone\" :\" UTC\" },\" subject\" :\" Test Event Subject\" ,\" @odata.type\" :\" microsoft.graph.event\" ,\" id\" :\" 1234\" },\" name\" :\" Holiday event\" ,\" @odata.type\" :\" #microsoft.graph.itemAttachment\" },{\" item\" :{\" displayName\" :\" displayname\" ,\" officeLocation \" :\" Montreal \" ,\" @odata.type\" :\" microsoft.graph.contact\" },\" name\" :\" Attachment name\" ,\" @odata.type\" :\" #microsoft.graph.itemAttachment\" }]" ;
3636 AttachmentCollectionResponse response = new AttachmentCollectionResponse ();
3737 response .value = Arrays .asList (getFileAttachment (),getItemAttachmentWithEvent (),getItemAttachmentWithContact ());
3838 AttachmentCollectionPage attachmentCollectionPage = new AttachmentCollectionPage (response , null );
@@ -63,7 +63,7 @@ else if(attachment instanceof ItemAttachment) {
6363 else if (itemAttachment .item instanceof Contact ) {
6464 Contact actual = (Contact )itemAttachment .item ;
6565 Contact expected = (Contact ) getItemAttachmentWithContact ().item ;
66- assertEquals (expected .mobilePhone , actual .mobilePhone );
66+ assertEquals (expected .officeLocation , actual .officeLocation );
6767 }
6868 }
6969 }
@@ -90,7 +90,7 @@ private ItemAttachment getItemAttachmentWithEvent() {
9090 private ItemAttachment getItemAttachmentWithContact () {
9191 Contact contact = new Contact ();
9292 contact .displayName = "displayname" ;
93- contact .mobilePhone = "123456890 " ;
93+ contact .officeLocation = "Montreal " ;
9494 ItemAttachment itemAttachmentContact = new ItemAttachment ();
9595 itemAttachmentContact .oDataType = "#microsoft.graph.itemAttachment" ;
9696 itemAttachmentContact .name = "Attachment name" ;
0 commit comments