Skip to content

Commit 742ef90

Browse files
committed
remove empty company arrays on user update
1 parent 262baf1 commit 742ef90

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

intercom-java/src/test/java/io/intercom/api/UserTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ public static void beforeClass() {
1919
mapper = MapperSupport.objectMapper();
2020
}
2121

22+
@Test
23+
public void TestUserUpdateEmptyCompanies() throws Exception {
24+
final User user = new User().setEmail("wash@serenity.io");
25+
final User.UserUpdate userUpdate = User.UserUpdate.buildFrom(user);
26+
assertEquals(null, userUpdate.getCompanyCollection());
27+
}
28+
2229
@Test
2330
public void TestUserUpdate() throws Exception {
2431

0 commit comments

Comments
 (0)