ShareIntentNoBuilder extends OptionalExtraBuilder<ShareIntentNoBuilder> implements AcceptsExtraText<TextBuilder>, AcceptsExtraStream<StreamBuilder> { @NonNull public StreamBuilder stream(@NonNull Uri stream) { return new StreamBuilder(builder).stream(stream); } 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 streamShouldCallThroughToShareIntentBuilder() { StreamBuilder returnedBuilder = shareIntentNoBuilder.stream(DEMO_STREAM); verify(builder).stream(DEMO_STREAM); assertThat(returnedBuilder.builder).isSameAs(builder); }
@Test public void streamWithTypeShouldCallThroughToShareIntentBuilder() { StreamBuilder returnedBuilder = shareIntentNoBuilder.stream(DEMO_STREAM, DEMO_TYPE); verify(builder).stream(DEMO_STREAM, DEMO_TYPE); assertThat(returnedBuilder.builder).isSameAs(builder); }