@Test public void setColonEnabled() throws IOException { TextUtilsMock.mockStatic(); NumericDisplay display = new NumericDisplay(mDevice); final byte zero = Font.DATA[0]; final byte zeroColon = (byte) (zero | Font.COLON); final byte[] expected = new byte[] {zero, zeroColon, zero, zero}; display.setColonEnabled(true); assertTrue(display.getColonEnabled()); display.display("0000"); Mockito.verify(mDevice).writeRegBuffer(eq(0xc0), aryEq(expected), eq(4)); Mockito.reset(mDevice); expected[1] = zero; display.setColonEnabled(false); assertFalse(display.getColonEnabled()); display.display("0000"); Mockito.verify(mDevice).writeRegBuffer(eq(0xc0), aryEq(expected), eq(4)); }
public void setColonEnabled(boolean b) { mColonEnabled = b; }
NumericDisplay extends Tm1637 { public void setColonEnabled(boolean b) { mColonEnabled = b; } }
NumericDisplay extends Tm1637 { public void setColonEnabled(boolean b) { mColonEnabled = b; } NumericDisplay(String dataPin, String clockPin); @VisibleForTesting  NumericDisplay(I2cBitBangDevice device); }
NumericDisplay extends Tm1637 { public void setColonEnabled(boolean b) { mColonEnabled = b; } 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 setColonEnabled(boolean b) { mColonEnabled = b; } 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);  }