/**
* @test
* @bug 6660470
* @author Alex Menkov
*/
public class SequencerImplicitSynthOpen {
try {
log("getting sequencer...");
// obtain connected device (usually synthesizer)
log("could not get connected device, returning");
return;
}
int success = 0;
for (int i=0; i<TEST_COUNT; i++) {
success++;
}
}
if (success != TEST_COUNT) {
throw new RuntimeException("test FAILS");
}
} catch (MidiUnavailableException ex) {
// this is not a failure
log("Could not get Sequencer");
}
log("test PASSED.");
}
log("");
log("opening sequencer...");
log("closing sequencer...");
log("FAIL.");
return false;
}
log("OK.");
return true;
}
if (r instanceof MidiDeviceReceiver) {
return dev;
} else {
log(" - does NOT implement MidiDeviceReceiver");
}
}
return null;
}
if (o == null) {
return "<null>";
}
}
return "NULL";
}
}
}
}