ShareIntentNoBuilder extends OptionalExtraBuilder<ShareIntentNoBuilder> implements AcceptsExtraText<TextBuilder>, AcceptsExtraStream<StreamBuilder> { @NonNull public TextBuilder text(@NonNull String text) { return new TextBuilder(builder).text(text); } ShareIntentNoBuilder(ShareIntentBuilder builder); TextAndStreamNoBuilder ignoreSpecification(); @NonNull TextBuilder text(@NonNull String text); @NonNull TextBuilder text(@NonNull Collection<String> texts); @NonNull StreamBuilder stream(@NonNull Uri stream); @NonNull StreamBuilder stream(@NonNull Uri stream, @NonNull String type);  }
@Test public void textShouldCreateTextBuilder() { TextBuilder returnedBuilder = shareIntentNoBuilder.text(DEMO_TEXT); verify(builder).text(DEMO_TEXT); assertThat(returnedBuilder.builder).isSameAs(builder); }
@Test public void textWithCollectionShouldCreateTextBuilder() { TextBuilder returnedBuilder = shareIntentNoBuilder.text(DEMO_TEXTS); verify(builder).text(DEMO_TEXTS); assertThat(returnedBuilder.builder).isSameAs(builder); }