Unit tests for ModemPlugin.

This commit is contained in:
akwizgran
2012-12-16 02:05:39 +00:00
parent 3c32c3ecf1
commit 2d6a9fa310
3 changed files with 290 additions and 0 deletions

View File

@@ -96,6 +96,8 @@ class ModemPlugin implements DuplexPlugin, Modem.Callback {
private boolean resetModem() {
if(!running) return false;
for(String portName : serialPortList.getPortNames()) {
if(LOG.isLoggable(INFO))
LOG.info("Trying to initialise modem on " + portName);
modem = modemFactory.createModem(this, portName);
try {
if(!modem.start()) continue;