Exemplo n.º 1
0
 public void testAddShouldAddEntry() {
   // GIVEN
   // WHEN
   underTest.add(info);
   // THEN
   Assert.assertTrue(underTest.getEntries().contains(info));
 }
Exemplo n.º 2
0
 public void testGetLocaleShouldReturnLocale() {
   // GIVEN
   underTest.setLocale("en");
   // WHEN
   final String returned = underTest.getLocale();
   // THEN
   Assert.assertEquals(returned, "en");
 }
Exemplo n.º 3
0
 public void testGetSeriesTitleShouldReturnSeriesTitle() {
   // GIVEN
   underTest.setSeriesTitle("Series title");
   // WHEN
   final String returned = underTest.getSeriesTitle();
   // THEN
   Assert.assertEquals(returned, "Series title");
 }
Exemplo n.º 4
0
 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);
 }