@@ -533,9 +533,15 @@ public void unfurl_with_work_object_from_object() throws Exception {
533533 EntityPayload .Timestamp dateCreated = EntityPayload .Timestamp .builder ().value (1756166400 ).build ();
534534 FileFields fields = FileFields .builder ().createdBy (createdBy ).dateCreated (dateCreated ).build ();
535535
536+ EntityPayload .StringField [] stringArray = {
537+ EntityPayload .StringField .builder ().value ("Hello" ).tagColor ("red" ).build (),
538+ EntityPayload .StringField .builder ().value ("World" ).tagColor ("green" ).build () };
536539 EntityPayload .CustomField [] customFields = {
537540 EntityPayload .CustomField .builder ().type ("string" ).key ("hello_world" ).label ("Message" )
538- .value ("Hello World" ).build () };
541+ .value ("Hello World" ).build (),
542+ EntityPayload .CustomField .builder ().type ("array" ).key ("array_field" )
543+ .label ("Array Field" ).itemType ("string" )
544+ .value (stringArray ).build () };
539545 EntityPayload payload = EntityPayload .builder ()
540546 .attributes (attributes )
541547 .fileFields (fields )
@@ -898,7 +904,8 @@ public void postMessage_with_work_object_from_json() throws Exception {
898904 List <Attachment > attachments = postResponse .getMessage ().getAttachments ();
899905 assertThat (attachments , is (not (nullValue ())));
900906 assertThat (attachments .get (0 ), is (not (nullValue ())));
901- assertThat (attachments .get (0 ).getFromUrl (), is ("https://myappdomain.com/admin/slack/workobject/94/change/" ));
907+ assertThat (attachments .get (0 ).getFromUrl (),
908+ is ("https://myappdomain.com/admin/slack/workobject/94/change/" ));
902909
903910 // Verify if the message can be parsed by the JSON parser
904911 String ts = postResponse .getTs ();
@@ -944,7 +951,8 @@ public void postMessage_with_work_object_from_object() throws Exception {
944951 .entityPayload (payload )
945952 .build ();
946953 EntityMetadata [] entities = { entity };
947- Message .EventAndEntityMetadata metadata = Message .EventAndEntityMetadata .builder ().entities (entities ).build ();
954+ Message .EventAndEntityMetadata metadata = Message .EventAndEntityMetadata .builder ().entities (entities )
955+ .build ();
948956
949957 // Post the message
950958
@@ -959,7 +967,8 @@ public void postMessage_with_work_object_from_object() throws Exception {
959967 List <Attachment > attachments = postResponse .getMessage ().getAttachments ();
960968 assertThat (attachments , is (not (nullValue ())));
961969 assertThat (attachments .get (0 ), is (not (nullValue ())));
962- assertThat (attachments .get (0 ).getFromUrl (), is ("https://myappdomain.com/admin/slack/workobject/94/change/" ));
970+ assertThat (attachments .get (0 ).getFromUrl (),
971+ is ("https://myappdomain.com/admin/slack/workobject/94/change/" ));
963972
964973 // Verify if the message can be parsed by the JSON parser
965974 String ts = postResponse .getTs ();
0 commit comments