Skip to content

Commit d3213a9

Browse files
committed
- removes reference to removed mobile phone property
1 parent 8e7f09a commit d3213a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/java/com/microsoft/graph/functional/OutlookTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private ItemAttachment getItemAttachmentWithEvent() {
201201
private ItemAttachment getItemAttachmentWithContact() {
202202
Contact contact = new Contact();
203203
contact.displayName = "displayname";
204-
contact.mobilePhone="123456890";
204+
contact.officeLocation="Montreal";
205205
ItemAttachment itemAttachmentContact = new ItemAttachment();
206206
itemAttachmentContact.oDataType = "#microsoft.graph.itemAttachment";
207207
itemAttachmentContact.name = "Attachment name";

src/test/java/com/microsoft/graph/serializer/AttachmentCollectionPageSerializerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)