@Test public void all_fields() throws JSONException { component = FlexSeparatorComponent.newBuilder() .setMargin(FlexMessageComponent.Margin.XL) .setColor("#00ffff") .build(); messageShouldBe("{" + " \"type\": \"separator\"," + " \"margin\": \"xl\"," + " \"color\": \"#00ffff\"" + "}"); }
public static Builder newBuilder() { return new Builder(); }
FlexSeparatorComponent extends FlexMessageComponent { public static Builder newBuilder() { return new Builder(); } }
FlexSeparatorComponent extends FlexMessageComponent { public static Builder newBuilder() { return new Builder(); } FlexSeparatorComponent(); private  FlexSeparatorComponent(@NonNull Builder builder); }
FlexSeparatorComponent extends FlexMessageComponent { public static Builder newBuilder() { return new Builder(); } FlexSeparatorComponent(); private  FlexSeparatorComponent(@NonNull Builder builder); static Builder newBuilder(); @NonNull @Override JSONObject toJsonObject(); }
FlexSeparatorComponent extends FlexMessageComponent { public static Builder newBuilder() { return new Builder(); } FlexSeparatorComponent(); private  FlexSeparatorComponent(@NonNull Builder builder); static Builder newBuilder(); @NonNull @Override JSONObject toJsonObject();  }