コード例 #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>();
 }
コード例 #2
0
 @Before
 protected void setUp() {
   goToPage = new Page(goToPageTitle, goToPageDescription, goToPageId);
   option = new Option(description, goToPage.getPageId());
 }
コード例 #3
0
 /*
  * Test that the getOptions() method gives data matching the constructor.
  */
 @Test
 public void testGetOptions() {
   assertEquals(optionsList, page.getOptions());
 }
コード例 #4
0
 /*
  * Test that the getPageDescription() method gives data matching the constructor.
  */
 @Test
 public void testGetPageDescription() {
   assertEquals(pageDescription, page.getPageDescription());
 }
コード例 #5
0
 /*
  * Test that the getPageTitle() method gives data matching the constructor.
  */
 @Test
 public void testGetPageTitle() {
   assertEquals(pageTitle, page.getTitle());
 }
コード例 #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());
 }