GitItemUi implements SwtItemUi<GitItem> { @Override public void update() { time.setText( getPrettyTime() ); } GitItemUi( Composite parent, GitItem item, int index );   GitItemUi( Composite parent, GitItem item, int index, NiceTime niceTime ); @Override Control getControl(); @Override void update();  }
@Test public void update() { equipNiceTimeFormat( niceTime, SOME_TIME_AGO ); gitItemUi.update(); String actual = gitItemUi.getTime(); assertThat( actual ).isEqualTo( SOME_TIME_AGO ); }