Code example for TextView

Methods: setLines, getLineCount, measure

0
  } 
 
  @Ignore("not yet working in 2.0, sorry :-(") // todo 2.0-cleanup 
  @Test 
  public void setLines_setsTheLines() throws Exception { 
    textView.measure(100, 100);
    textView.setLines(1);
    assertThat(textView.getLineCount()).isEqualTo(1);
    textView.setLines(4);
    assertThat(textView.getLineCount()).isEqualTo(4);
  } 
 
  @Test 
  public void getPaintFlagsAndSetPaintFlags_shouldWork() { 
    assertThat(textView.getPaintFlags()).isEqualTo(0);
    textView.setPaintFlags(100);
    assertThat(textView.getPaintFlags()).isEqualTo(100);
  } 
 
  private List<MockTextWatcher> anyNumberOfTextWatchers() {
    List<MockTextWatcher> mockTextWatchers = new ArrayList<MockTextWatcher>();