@Test public void displayString_spacesOk() throws IOException { TextUtilsMock.mockStatic(); NumericDisplay display = new NumericDisplay(mDevice); display.display("4 1"); Mockito.verify(mDevice).writeRegBuffer(eq(0xc0), aryEq(new byte[]{Font.DATA[4], 0, 0, Font.DATA[1]}), eq(4)); }
public void display(int n) throws IOException { display(String.format("%4s", n)); }
NumericDisplay extends Tm1637 { public void display(int n) throws IOException { display(String.format("%4s", n)); } }
NumericDisplay extends Tm1637 { public void display(int n) throws IOException { display(String.format("%4s", n)); } NumericDisplay(String dataPin, String clockPin); @VisibleForTesting  NumericDisplay(I2cBitBangDevice device); }
NumericDisplay extends Tm1637 { public void display(int n) throws IOException { display(String.format("%4s", n)); } NumericDisplay(String dataPin, String clockPin); @VisibleForTesting  NumericDisplay(I2cBitBangDevice device); void clear(); void setColonEnabled(boolean b); boolean getColonEnabled(); void display(int n); void display(String s); }
NumericDisplay extends Tm1637 { public void display(int n) throws IOException { display(String.format("%4s", n)); } NumericDisplay(String dataPin, String clockPin); @VisibleForTesting  NumericDisplay(I2cBitBangDevice device); void clear(); void setColonEnabled(boolean b); boolean getColonEnabled(); void display(int n); void display(String s);  }