public void testAddShouldAddEntry() { // GIVEN // WHEN underTest.add(info); // THEN Assert.assertTrue(underTest.getEntries().contains(info)); }
public void testGetLocaleShouldReturnLocale() { // GIVEN underTest.setLocale("en"); // WHEN final String returned = underTest.getLocale(); // THEN Assert.assertEquals(returned, "en"); }
public void testGetSeriesTitleShouldReturnSeriesTitle() { // GIVEN underTest.setSeriesTitle("Series title"); // WHEN final String returned = underTest.getSeriesTitle(); // THEN Assert.assertEquals(returned, "Series title"); }
public void testCompareToShouldCompareByTitle() { // GIVEN underTest.setSeriesTitle("Book 1"); final HelpSeriesBooks other = new HelpSeriesBooks(); other.setSeriesTitle("Book 2"); // WHEN final int returned = underTest.compareTo(other); // THEN Assert.assertTrue(returned < 0); }