Ejemplo n.º 1
0
 @Before
 protected void setUp() {
   page = new Page(pageTitle, pageDescription, uuid);
   goToPage = new Page(goToPageTitle, goToPageDescription, goToPageId);
   option = new Option(optionDescription, goToPage.getPageId());
   optionsList = new ArrayList<Option>();
 }
Ejemplo n.º 2
0
 @Before
 protected void setUp() {
   goToPage = new Page(goToPageTitle, goToPageDescription, goToPageId);
   option = new Option(description, goToPage.getPageId());
 }
Ejemplo n.º 3
0
 /*
  * Test that the getOptions() method gives data matching the constructor.
  */
 @Test
 public void testGetOptions() {
   assertEquals(optionsList, page.getOptions());
 }
Ejemplo n.º 4
0
 /*
  * Test that the getPageDescription() method gives data matching the constructor.
  */
 @Test
 public void testGetPageDescription() {
   assertEquals(pageDescription, page.getPageDescription());
 }
Ejemplo n.º 5
0
 /*
  * Test that the getPageTitle() method gives data matching the constructor.
  */
 @Test
 public void testGetPageTitle() {
   assertEquals(pageTitle, page.getTitle());
 }
Ejemplo n.º 6
0
 /*
  * Test that the addOption() method adds an option to the list of options
  */
 @Test
 public void testAddOption() {
   optionsList.add(option);
   page.addOption(option);
   assertEquals(optionsList, page.getOptions());
 }