@Test public void testToString() { Language lang = new Language("aLang"); CharSequence context = "aContext"; LanguageSample sample = new LanguageSample(lang, context); Assert.assertEquals(lang.getLang() + "\t" + context, sample.toString()); }
@Override public String toString() { return language.getLang() + '\t' + context; }
LanguageSample implements Serializable { @Override public String toString() { return language.getLang() + '\t' + context; } }
LanguageSample implements Serializable { @Override public String toString() { return language.getLang() + '\t' + context; } LanguageSample(Language language, CharSequence context); }
LanguageSample implements Serializable { @Override public String toString() { return language.getLang() + '\t' + context; } LanguageSample(Language language, CharSequence context); Language getLanguage(); CharSequence getContext(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
LanguageSample implements Serializable { @Override public String toString() { return language.getLang() + '\t' + context; } LanguageSample(Language language, CharSequence context); Language getLanguage(); CharSequence getContext(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }