Exemplo n.º 1
0
 public static void assertMidiNoteEqual(
     MidiNote mn, int pitch, int velocity, long startTime, long duration, int channel) {
   assertEquals(pitch, mn.getPitch());
   assertEquals(velocity, mn.getVelocity());
   assertEquals(startTime, mn.getStartTime());
   assertEquals(duration, mn.getDuration());
   assertEquals(channel, mn.getChannel());
 }
Exemplo n.º 2
0
 /** Test of getChannel method, of class MidiNote. */
 @Test
 public void getChannel() {
   System.out.println("getChannel");
   int expResult = 3;
   MidiNote instance = new MidiNote(76, 10, 10, expResult, 64);
   int result = instance.getChannel();
   assertEquals(expResult, result);
 }
Exemplo n.º 3
0
 /** Test of setChannel method, of class MidiNote. */
 @Test
 public void setChannel() {
   System.out.println("setChannel");
   int channel = 4;
   MidiNote instance = new MidiNote();
   instance.setChannel(channel);
   int result = instance.getChannel();
   assertEquals(channel, result);
 }
Exemplo n.º 4
0
 @Test
 public void defaultChannelValue() {
   System.out.println("defaultChannelValue");
   MidiNote instance = new MidiNote();
   assertEquals(MidiNote.DEFAULT_CHANNEL, instance.getChannel());
 }