@Test public void getPitch() { System.out.println("getPitch"); int expResult = 60; MidiNote instance = new MidiNote(expResult, 10, 10); int result = instance.getPitch(); assertEquals(expResult, result); }
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 setPitch method, of class MidiNote. */ @Test public void setPitch() { System.out.println("setPitch"); int pitch = 50; MidiNote instance = new MidiNote(); instance.setPitch(pitch); int result = instance.getPitch(); assertEquals(pitch, result); }