@Test public void testGetSerialPort() { MockedBoard board = new MockedBoard(); TestCase.assertNotNull(board.getSerialPort("Serial1")); TestCase.assertNull(board.getI2cBus("Serial999")); }
public SerialPort getSerialPort(String name) { return (SerialPort)this.getIOPortByName(name); }
AbstractBoard extends AbstractPinProvider implements Board { public SerialPort getSerialPort(String name) { return (SerialPort)this.getIOPortByName(name); } }
AbstractBoard extends AbstractPinProvider implements Board { public SerialPort getSerialPort(String name) { return (SerialPort)this.getIOPortByName(name); } AbstractBoard(); }
AbstractBoard extends AbstractPinProvider implements Board { public SerialPort getSerialPort(String name) { return (SerialPort)this.getIOPortByName(name); } AbstractBoard(); IOPort getIOPortByAlias(String alias); IOPort getIOPortByName(String name); List<IOPort> getAllIOPorts(); List<I2cBus> getI2cBuses(); List<SerialPort> getSerialPorts(); List<SpiBus> getSpiBuses(); SpiBus getSpiBus(String name); SerialPort getSerialPort(String name); I2cBus getI2cBus(String name); boolean hasProperty(String propertyName); String getProperty(String propertyName); Properties getProperties(); void setProperty(String propertyName, String value); abstract String getName(); void shutdown(); void cleanup(); void createShutdownHook(); }
AbstractBoard extends AbstractPinProvider implements Board { public SerialPort getSerialPort(String name) { return (SerialPort)this.getIOPortByName(name); } AbstractBoard(); IOPort getIOPortByAlias(String alias); IOPort getIOPortByName(String name); List<IOPort> getAllIOPorts(); List<I2cBus> getI2cBuses(); List<SerialPort> getSerialPorts(); List<SpiBus> getSpiBuses(); SpiBus getSpiBus(String name); SerialPort getSerialPort(String name); I2cBus getI2cBus(String name); boolean hasProperty(String propertyName); String getProperty(String propertyName); Properties getProperties(); void setProperty(String propertyName, String value); abstract String getName(); void shutdown(); void cleanup(); void createShutdownHook();  }