@Test public void testSetupCardsWhenCardsListIsEmptyAndEmptyStateElementIsNotPresent() { cardsGrid.setupCards(emptyList()); verify(view).clearGrid(); verifyNoMoreInteractions(view); }
public void setupCards(final List<CardComponent> cards) { setCardFrames(asFrames(cards)); getView().clearGrid(); asElements(getCardFrames()).forEach(getView()::appendCard); setupEmptyState(getCardFrames().isEmpty()); }
CardsGridComponent { public void setupCards(final List<CardComponent> cards) { setCardFrames(asFrames(cards)); getView().clearGrid(); asElements(getCardFrames()).forEach(getView()::appendCard); setupEmptyState(getCardFrames().isEmpty()); } }
CardsGridComponent { public void setupCards(final List<CardComponent> cards) { setCardFrames(asFrames(cards)); getView().clearGrid(); asElements(getCardFrames()).forEach(getView()::appendCard); setupEmptyState(getCardFrames().isEmpty()); } @Inject  CardsGridComponent(final View view,
                              final ManagedInstance<CardFrameComponent> cardFrameInstances); }
CardsGridComponent { public void setupCards(final List<CardComponent> cards) { setCardFrames(asFrames(cards)); getView().clearGrid(); asElements(getCardFrames()).forEach(getView()::appendCard); setupEmptyState(getCardFrames().isEmpty()); } @Inject  CardsGridComponent(final View view,
                              final ManagedInstance<CardFrameComponent> cardFrameInstances); void setupCards(final List<CardComponent> cards); void setEmptyState(final HTMLElement emptyStateElement); void enableReadOnlyModeForAllCards(); HTMLElement getElement(); }
CardsGridComponent { public void setupCards(final List<CardComponent> cards) { setCardFrames(asFrames(cards)); getView().clearGrid(); asElements(getCardFrames()).forEach(getView()::appendCard); setupEmptyState(getCardFrames().isEmpty()); } @Inject  CardsGridComponent(final View view,
                              final ManagedInstance<CardFrameComponent> cardFrameInstances); void setupCards(final List<CardComponent> cards); void setEmptyState(final HTMLElement emptyStateElement); void enableReadOnlyModeForAllCards(); HTMLElement getElement();  }