@Test public void displayInt_truncates() throws IOException { TextUtilsMock.mockStatic(); AlphanumericDisplay display = new AlphanumericDisplay(mI2c); display.display(8675309); Mockito.verify(mI2c).writeRegWord(0, (short) Font.DATA['8']); Mockito.verify(mI2c).writeRegWord(2, (short) Font.DATA['6']); Mockito.verify(mI2c).writeRegWord(4, (short) Font.DATA['7']); Mockito.verify(mI2c).writeRegWord(6, (short) Font.DATA['5']); }
public void display(char c, int index, boolean dot) throws IOException { int val = Font.DATA[c]; if (dot) { val |= Font.DATA['.']; } writeColumn(index, (short) val); }
AlphanumericDisplay extends Ht16k33 { public void display(char c, int index, boolean dot) throws IOException { int val = Font.DATA[c]; if (dot) { val |= Font.DATA['.']; } writeColumn(index, (short) val); } }
AlphanumericDisplay extends Ht16k33 { public void display(char c, int index, boolean dot) throws IOException { int val = Font.DATA[c]; if (dot) { val |= Font.DATA['.']; } writeColumn(index, (short) val); } AlphanumericDisplay(String bus);  AlphanumericDisplay(String bus, int i2cAddress); @VisibleForTesting  AlphanumericDisplay(I2cDevice device); }
AlphanumericDisplay extends Ht16k33 { public void display(char c, int index, boolean dot) throws IOException { int val = Font.DATA[c]; if (dot) { val |= Font.DATA['.']; } writeColumn(index, (short) val); } AlphanumericDisplay(String bus);  AlphanumericDisplay(String bus, int i2cAddress); @VisibleForTesting  AlphanumericDisplay(I2cDevice device); void clear(); void display(char c, int index, boolean dot); void display(double n); void display(int n); void display(String s); }
AlphanumericDisplay extends Ht16k33 { public void display(char c, int index, boolean dot) throws IOException { int val = Font.DATA[c]; if (dot) { val |= Font.DATA['.']; } writeColumn(index, (short) val); } AlphanumericDisplay(String bus);  AlphanumericDisplay(String bus, int i2cAddress); @VisibleForTesting  AlphanumericDisplay(I2cDevice device); void clear(); void display(char c, int index, boolean dot); void display(double n); void display(int n); void display(String s);  }