@Test public void body_with_only_texts() throws JSONException { givenFlexBubbleContainer(FlexBubbleContainer.newBuilder().setBody(FlexBoxComponent.newBuilder( FlexMessageComponent.Layout.HORIZONTAL, Arrays.asList(textComponent, textComponent) ).build())); messageShouldBe("{" + " \"type\": \"bubble\"," + " \"body\": {" + " \"type\": \"box\"," + " \"layout\": \"horizontal\"," + " \"contents\": [" + " {" + " \"type\": \"text\"," + " \"text\": \"Hello !\"" + " }," + " {" + " \"type\": \"text\"," + " \"text\": \"Hello !\"" + " }" + " ]" + " }" + "}"); }
public static Builder newBuilder() { return new Builder(); }
FlexBubbleContainer extends FlexMessageContainer { public static Builder newBuilder() { return new Builder(); } }
FlexBubbleContainer extends FlexMessageContainer { public static Builder newBuilder() { return new Builder(); } private  FlexBubbleContainer(); private  FlexBubbleContainer(Builder builder); }
FlexBubbleContainer extends FlexMessageContainer { public static Builder newBuilder() { return new Builder(); } private  FlexBubbleContainer(); private  FlexBubbleContainer(Builder builder); static Builder newBuilder(); @NonNull @Override JSONObject toJsonObject(); }
FlexBubbleContainer extends FlexMessageContainer { public static Builder newBuilder() { return new Builder(); } private  FlexBubbleContainer(); private  FlexBubbleContainer(Builder builder); static Builder newBuilder(); @NonNull @Override JSONObject toJsonObject();  }