@Test public void testGetSubject() { Uri uri = Uri.parse("mailto:?subject=Hello"); MailTo mailToHelper = MailTo.parse(uri); String subject = mailToHelper.getSubject(); assertEquals(subject, "Hello"); }
public String getSubject() { return subject; }
MailTo { public String getSubject() { return subject; } }
MailTo { public String getSubject() { return subject; } private  MailTo(Address[] toAddresses, Address[] ccAddresses, Address[] bccAddresses, String subject, String body); }
MailTo { public String getSubject() { return subject; } private  MailTo(Address[] toAddresses, Address[] ccAddresses, Address[] bccAddresses, String subject, String body); static boolean isMailTo(Uri uri); static MailTo parse(Uri uri); Address[] getTo(); Address[] getCc(); Address[] getBcc(); String getSubject(); String getBody(); }
MailTo { public String getSubject() { return subject; } private  MailTo(Address[] toAddresses, Address[] ccAddresses, Address[] bccAddresses, String subject, String body); static boolean isMailTo(Uri uri); static MailTo parse(Uri uri); Address[] getTo(); Address[] getCc(); Address[] getBcc(); String getSubject(); String getBody();  }