@Test public void testInitialize() { final CardComponent card = mock(CardComponent.class); doNothing().when(cardFrame).refreshView(); cardFrame.initialize(grid, card); assertEquals(card, cardFrame.getCard()); verify(cardFrame).refreshView(); }
public void initialize(final CardsGridComponent grid, final CardComponent card) { this.grid = grid; this.card = card; refreshView(); }
CardFrameComponent { public void initialize(final CardsGridComponent grid, final CardComponent card) { this.grid = grid; this.card = card; refreshView(); } }
CardFrameComponent { public void initialize(final CardsGridComponent grid, final CardComponent card) { this.grid = grid; this.card = card; refreshView(); } @Inject  CardFrameComponent(final View view); }
CardFrameComponent { public void initialize(final CardsGridComponent grid, final CardComponent card) { this.grid = grid; this.card = card; refreshView(); } @Inject  CardFrameComponent(final View view); void initialize(final CardsGridComponent grid,
                           final CardComponent card); HTMLElement getElement(); void refreshView(); void enableEditMode(); void enableReadOnlyMode(); View getView(); }
CardFrameComponent { public void initialize(final CardsGridComponent grid, final CardComponent card) { this.grid = grid; this.card = card; refreshView(); } @Inject  CardFrameComponent(final View view); void initialize(final CardsGridComponent grid,
                           final CardComponent card); HTMLElement getElement(); void refreshView(); void enableEditMode(); void enableReadOnlyMode(); View getView();  }