DialerIntent extends BaseIntent<DialerIntent> { public DialerIntent phoneNumber(@Nullable final String number) { this.phoneNumber = number; return this; }  DialerIntent phoneNumber(@Nullable final String number); @NonNull String phoneNumber(); static final String URI_SCHEME; }
@Test public void testInstantiation() { final DialerIntent intent = new DialerIntent(); assertThat(intent.phoneNumber(), is("")); }
@Test public void testPhoneNumber() { final DialerIntent intent = new DialerIntent(); intent.phoneNumber("00124456"); assertThat(intent.phoneNumber(), is("00124456")); }
@Test public void testBuild() { final DialerIntent dialerIntent = new DialerIntent(); dialerIntent.phoneNumber("02644569874"); final Intent intent = dialerIntent.build(context); assertThat(intent, is(notNullValue())); assertThat(intent.getAction(), is(Intent.ACTION_DIAL)); assertThat(intent.getData(), is(Uri.parse("tel:02644569874"))); }