I2CDeviceImpl implements I2CDevice { @Override public int getAddress() { return deviceAddress; } I2CDeviceImpl(I2CBusImpl bus, int address); @Override int getAddress(); @Override void write(final byte data); @Override void write(final byte[] data, final int offset, final int size); @Override void write(byte[] buffer); @Override void write(final int address, final byte data); @Override void write(final int address, final byte[] data, final int offset, final int size); void write(int address, byte[] buffer); @Override int read(); @Override int read(final byte[] data, final int offset, final int size); @Override int read(final int address); @Override int read(final int address, final byte[] data, final int offset, final int size); @Override void ioctl(long command, int value); @Override void ioctl(long command, ByteBuffer data, IntBuffer offsets); @Override int read(final byte[] writeData, final int writeOffset, final int writeSize, final byte[] readData, final int readOffset, final int readSize);  }
@Test public void testBasics() throws IOException { int address = device.getAddress(); assertEquals("'getAddress()' returns another address that the " + "device was constructed with", ADDRESS, address); }