Example #1
0
 /**
  * Test case for the method setTitle(String myTitle) which changes the tablature's title to the
  * string myTitle
  */
 @Test
 public void testSetTitle() {
   assertEquals(test.getTitle(), "Default");
   test.setTitle("Remembering rain");
   assertEquals(test.getTitle(), "Remembering rain");
 }
Example #2
0
 /**
  * Test case for the constructor of Tablature which creates a new instance of Tablature with both
  * the title and subtitle set as the string "Default". This method is tested by asserting the
  * title and subtitle are equal to the string "Default"
  */
 @Test
 public void testTablature() {
   assertEquals(test.getTitle(), "Default");
   assertEquals(test.getSubtitle(), "Default");
 }
Example #3
0
 /** Test case for the method getTitle() which returns the title of the Tablature */
 @Test
 public void testGetTitle() {
   assertEquals(test.getTitle(), "Default");
 }