예제 #1
0
 @Test
 public void testGetHighestOctave4() {
   s1.addNote(0, 2, 5, 50, 1, 100);
   s1.addNote(5, 7, 5, 5, 2, 100);
   assertEquals(s1.getHighestOctave(), 7);
   s1.removeNote(5, 7, 5, 5, 2, 100);
   assertEquals(s1.getHighestOctave(), 2);
 }
예제 #2
0
 @Test
 public void testGetHighestOctave3() {
   s1.addNote(0, 2, 5, 50, 1, 100);
   s1.addNote(5, 7, 5, 5, 2, 100);
   assertEquals(s1.getHighestOctave(), 7);
   s1.changeNote(0, 2, 5, 50, 1, 100, 0, 8, 10, 12, 1, 100);
   assertEquals(s1.getHighestOctave(), 8);
 }