@Test public void only_action() throws JSONException { givenButtonComponent(FlexButtonComponent .newBuilder(new UriAction("https: "View details"))); messageShouldBe("{" + " \"type\": \"button\"," + " \"action\": {" + " \"type\": \"uri\"," + " \"label\": \"View details\"," + " \"uri\": \"https: " }" + "}"); }
public static Builder newBuilder(@NonNull Action action) { return new Builder(action); }
FlexButtonComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull Action action) { return new Builder(action); } }
FlexButtonComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull Action action) { return new Builder(action); } private  FlexButtonComponent(); private  FlexButtonComponent(@NonNull Builder builder); }
FlexButtonComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull Action action) { return new Builder(action); } private  FlexButtonComponent(); private  FlexButtonComponent(@NonNull Builder builder); static Builder newBuilder(@NonNull Action action); @NonNull @Override JSONObject toJsonObject(); }
FlexButtonComponent extends FlexMessageComponent { public static Builder newBuilder(@NonNull Action action) { return new Builder(action); } private  FlexButtonComponent(); private  FlexButtonComponent(@NonNull Builder builder); static Builder newBuilder(@NonNull Action action); @NonNull @Override JSONObject toJsonObject();  }