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()); }
/** 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); }
/** 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); }
@Test public void defaultChannelValue() { System.out.println("defaultChannelValue"); MidiNote instance = new MidiNote(); assertEquals(MidiNote.DEFAULT_CHANNEL, instance.getChannel()); }