コード例 #1
0
ファイル: TablatureTest.java プロジェクト: sirajrauff/Tab2PDF
 /**
  * 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");
 }
コード例 #2
0
ファイル: TablatureTest.java プロジェクト: sirajrauff/Tab2PDF
 /**
  * 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");
 }
コード例 #3
0
ファイル: TablatureTest.java プロジェクト: sirajrauff/Tab2PDF
 /** Test case for the method getTitle() which returns the title of the Tablature */
 @Test
 public void testGetTitle() {
   assertEquals(test.getTitle(), "Default");
 }