Пример #1
0
 /*
  * Test that the getOptions() method gives data matching the constructor.
  */
 @Test
 public void testGetOptions() {
   assertEquals(optionsList, page.getOptions());
 }
Пример #2
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());
 }