@Test public void HasContentIsFalseWhenActivityTextHasNoContent() { Activity activity = createActivity(); boolean result = activity.hasContent(); Assert.assertEquals(result, false); }
public boolean hasContent() { if (!StringUtils.isBlank(this.getText())) { return true; } if (!StringUtils.isBlank(this.getSummary())) { return true; } if (this.getAttachments() != null && this.getAttachments().size() > 0) { return true; } if (this.getChannelData() != null) { return true; } return false; }
Activity { public boolean hasContent() { if (!StringUtils.isBlank(this.getText())) { return true; } if (!StringUtils.isBlank(this.getSummary())) { return true; } if (this.getAttachments() != null && this.getAttachments().size() > 0) { return true; } if (this.getChannelData() != null) { return true; } return false; } }
Activity { public boolean hasContent() { if (!StringUtils.isBlank(this.getText())) { return true; } if (!StringUtils.isBlank(this.getSummary())) { return true; } if (this.getAttachments() != null && this.getAttachments().size() > 0) { return true; } if (this.getChannelData() != null) { return true; } return false; } protected  Activity();  Activity(String withType); }
Activity { public boolean hasContent() { if (!StringUtils.isBlank(this.getText())) { return true; } if (!StringUtils.isBlank(this.getSummary())) { return true; } if (this.getAttachments() != null && this.getAttachments().size() > 0) { return true; } if (this.getChannelData() != null) { return true; } return false; } protected  Activity();  Activity(String withType); static Activity createTraceActivity(String withName); static Activity createTraceActivity(
        String withName,
        String withValueType,
        Object withValue,
        String withLabel
    ); static Activity createMessageActivity(); static Activity createContactRelationUpdateActivity(); static Activity createConversationUpdateActivity(); static Activity createTypingActivity(); static Activity createHandoffActivity(); static Activity createEndOfConversationActivity(); static Activity createEventActivity(); static Activity createInvokeActivity(); static Activity clone(Activity activity); String getType(); void setType(String withType); boolean isType(String compareTo); String getId(); void setId(String withId); OffsetDateTime getTimestamp(); void setTimestamp(OffsetDateTime withTimestamp); OffsetDateTime getLocalTimestamp(); void setLocalTimestamp(OffsetDateTime withLocalTimestamp); String getLocalTimezone(); void setLocalTimeZone(String withLocalTimezone); String getCallerId(); void setCallerId(String withCallerId); String getServiceUrl(); void setServiceUrl(String withServiceUrl); String getChannelId(); void setChannelId(String withChannelId); ChannelAccount getFrom(); void setFrom(ChannelAccount withFrom); ConversationAccount getConversation(); void setConversation(ConversationAccount withConversation); ChannelAccount getRecipient(); void setRecipient(ChannelAccount withRecipient); TextFormatTypes getTextFormat(); void setTextFormat(TextFormatTypes withTextFormat); AttachmentLayoutTypes getAttachmentLayout(); void setAttachmentLayout(AttachmentLayoutTypes withAttachmentLayout); List<MessageReaction> getReactionsAdded(); void setReactionsAdded(List<MessageReaction> withReactionsAdded); List<MessageReaction> getReactionsRemoved(); void setReactionsRemoved(List<MessageReaction> withReactionsRemoved); String getLocale(); void setLocale(String withLocale); String getText(); void setText(String withText); String getSpeak(); void setSpeak(String withSpeak); InputHints getInputHint(); void setInputHint(InputHints withInputHint); String getSummary(); void setSummary(String withSummary); SuggestedActions getSuggestedActions(); void setSuggestedActions(SuggestedActions withSuggestedActions); List<Attachment> getAttachments(); void setAttachments(List<Attachment> withAttachments); void setAttachment(Attachment withAttachment); List<Entity> getEntities(); void setEntities(List<Entity> withEntities); void setMentions(List<Mention> withMentions); Object getChannelData(); void setChannelData(Object withChannelData); String getReplyToId(); void setReplyToId(String withReplyToId); EndOfConversationCodes getCode(); void setCode(EndOfConversationCodes withCode); LocalDateTime getExpiration(); void setExpiration(LocalDateTime withExpiration); String getImportance(); void setImportance(String withImportance); String getDeliveryMode(); void setDeliveryMode(String withDeliveryMode); List<String> getListenFor(); void setListenFor(List<String> withListenFor); List<TextHighlight> getTextHighlights(); void setTextHighlights(List<TextHighlight> withTextHighlights); @JsonAnyGetter Map<String, JsonNode> getProperties(); @JsonAnySetter void setProperties(String key, JsonNode withValue); String getTopicName(); void setTopicName(String withTopicName); boolean getHistoryDisclosed(); void setHistoryDisclosed(boolean withHistoryDisclosed); List<ChannelAccount> getMembersAdded(); void setMembersAdded(List<ChannelAccount> withMembersAdded); List<ChannelAccount> getMembersRemoved(); void setMembersRemoved(List<ChannelAccount> withMembersRemoved); String getLabel(); void setLabel(String withLabel); String getValueType(); void setValueType(String withValueType); Object getValue(); void setValue(Object withValue); String getName(); void setName(String withName); ConversationReference getRelatesTo(); void setRelatesTo(ConversationReference withRelatesTo); String getAction(); void setAction(String withAction); Activity createTrace(String withName); Activity createTrace(
        String withName,
        Object withValue,
        String withValueType,
        String withLabel
    ); Activity createReply(); Activity createReply(String withText); Activity createReply(String withText, String withLocale); boolean hasContent(); @JsonIgnore List<Mention> getMentions(); TypeT getChannelData(Class<TypeT> classType); ResultPair<TypeT> tryGetChannelData(Class<TypeT> clsType); @JsonIgnore ConversationReference getConversationReference(); @JsonIgnore ConversationReference getReplyConversationReference(ResourceResponse reply); final Activity applyConversationReference(ConversationReference reference); final Activity applyConversationReference(
        ConversationReference reference,
        boolean isIncoming
    ); Boolean isFromStreamingConnection(); String removeRecipientMention(); String removeMentionText(String withId); static String removeRecipientMentionImmutable(Activity activity); static String removeMentionTextImmutable(Activity activity, String id); boolean isTeamsActivity(); String teamsGetChannelId(); String teamsGetTeamId(); TeamInfo teamsGetTeamInfo(); void teamsNotifyUser(); Activity asMessageActivity(); Activity asContactRelationUpdateActivity(); Activity asInstallationUpdateActivity(); Activity asConversationUpdateActivity(); Activity asTypingActivity(); Activity asEndOfConversationActivity(); Activity asEventActivity(); Activity asInvokeActivity(); Activity asMessageUpdateActivity(); Activity asMessageDeleteActivity(); Activity asMessageReactionActivity(); Activity asSuggestionActivity(); Activity asTraceActivity(); Activity asHandoffActivity(); }
Activity { public boolean hasContent() { if (!StringUtils.isBlank(this.getText())) { return true; } if (!StringUtils.isBlank(this.getSummary())) { return true; } if (this.getAttachments() != null && this.getAttachments().size() > 0) { return true; } if (this.getChannelData() != null) { return true; } return false; } protected  Activity();  Activity(String withType); static Activity createTraceActivity(String withName); static Activity createTraceActivity(
        String withName,
        String withValueType,
        Object withValue,
        String withLabel
    ); static Activity createMessageActivity(); static Activity createContactRelationUpdateActivity(); static Activity createConversationUpdateActivity(); static Activity createTypingActivity(); static Activity createHandoffActivity(); static Activity createEndOfConversationActivity(); static Activity createEventActivity(); static Activity createInvokeActivity(); static Activity clone(Activity activity); String getType(); void setType(String withType); boolean isType(String compareTo); String getId(); void setId(String withId); OffsetDateTime getTimestamp(); void setTimestamp(OffsetDateTime withTimestamp); OffsetDateTime getLocalTimestamp(); void setLocalTimestamp(OffsetDateTime withLocalTimestamp); String getLocalTimezone(); void setLocalTimeZone(String withLocalTimezone); String getCallerId(); void setCallerId(String withCallerId); String getServiceUrl(); void setServiceUrl(String withServiceUrl); String getChannelId(); void setChannelId(String withChannelId); ChannelAccount getFrom(); void setFrom(ChannelAccount withFrom); ConversationAccount getConversation(); void setConversation(ConversationAccount withConversation); ChannelAccount getRecipient(); void setRecipient(ChannelAccount withRecipient); TextFormatTypes getTextFormat(); void setTextFormat(TextFormatTypes withTextFormat); AttachmentLayoutTypes getAttachmentLayout(); void setAttachmentLayout(AttachmentLayoutTypes withAttachmentLayout); List<MessageReaction> getReactionsAdded(); void setReactionsAdded(List<MessageReaction> withReactionsAdded); List<MessageReaction> getReactionsRemoved(); void setReactionsRemoved(List<MessageReaction> withReactionsRemoved); String getLocale(); void setLocale(String withLocale); String getText(); void setText(String withText); String getSpeak(); void setSpeak(String withSpeak); InputHints getInputHint(); void setInputHint(InputHints withInputHint); String getSummary(); void setSummary(String withSummary); SuggestedActions getSuggestedActions(); void setSuggestedActions(SuggestedActions withSuggestedActions); List<Attachment> getAttachments(); void setAttachments(List<Attachment> withAttachments); void setAttachment(Attachment withAttachment); List<Entity> getEntities(); void setEntities(List<Entity> withEntities); void setMentions(List<Mention> withMentions); Object getChannelData(); void setChannelData(Object withChannelData); String getReplyToId(); void setReplyToId(String withReplyToId); EndOfConversationCodes getCode(); void setCode(EndOfConversationCodes withCode); LocalDateTime getExpiration(); void setExpiration(LocalDateTime withExpiration); String getImportance(); void setImportance(String withImportance); String getDeliveryMode(); void setDeliveryMode(String withDeliveryMode); List<String> getListenFor(); void setListenFor(List<String> withListenFor); List<TextHighlight> getTextHighlights(); void setTextHighlights(List<TextHighlight> withTextHighlights); @JsonAnyGetter Map<String, JsonNode> getProperties(); @JsonAnySetter void setProperties(String key, JsonNode withValue); String getTopicName(); void setTopicName(String withTopicName); boolean getHistoryDisclosed(); void setHistoryDisclosed(boolean withHistoryDisclosed); List<ChannelAccount> getMembersAdded(); void setMembersAdded(List<ChannelAccount> withMembersAdded); List<ChannelAccount> getMembersRemoved(); void setMembersRemoved(List<ChannelAccount> withMembersRemoved); String getLabel(); void setLabel(String withLabel); String getValueType(); void setValueType(String withValueType); Object getValue(); void setValue(Object withValue); String getName(); void setName(String withName); ConversationReference getRelatesTo(); void setRelatesTo(ConversationReference withRelatesTo); String getAction(); void setAction(String withAction); Activity createTrace(String withName); Activity createTrace(
        String withName,
        Object withValue,
        String withValueType,
        String withLabel
    ); Activity createReply(); Activity createReply(String withText); Activity createReply(String withText, String withLocale); boolean hasContent(); @JsonIgnore List<Mention> getMentions(); TypeT getChannelData(Class<TypeT> classType); ResultPair<TypeT> tryGetChannelData(Class<TypeT> clsType); @JsonIgnore ConversationReference getConversationReference(); @JsonIgnore ConversationReference getReplyConversationReference(ResourceResponse reply); final Activity applyConversationReference(ConversationReference reference); final Activity applyConversationReference(
        ConversationReference reference,
        boolean isIncoming
    ); Boolean isFromStreamingConnection(); String removeRecipientMention(); String removeMentionText(String withId); static String removeRecipientMentionImmutable(Activity activity); static String removeMentionTextImmutable(Activity activity, String id); boolean isTeamsActivity(); String teamsGetChannelId(); String teamsGetTeamId(); TeamInfo teamsGetTeamInfo(); void teamsNotifyUser(); Activity asMessageActivity(); Activity asContactRelationUpdateActivity(); Activity asInstallationUpdateActivity(); Activity asConversationUpdateActivity(); Activity asTypingActivity(); Activity asEndOfConversationActivity(); Activity asEventActivity(); Activity asInvokeActivity(); Activity asMessageUpdateActivity(); Activity asMessageDeleteActivity(); Activity asMessageReactionActivity(); Activity asSuggestionActivity(); Activity asTraceActivity(); Activity asHandoffActivity();  }