@Test public void EachDeck_MustBeInAChosenFormat(){ Card identity = new Card(); int expectedFormatId = 1; Format format = new FormatBuilder().withId(expectedFormatId).Build(); Deck deck = new Deck(identity, format); Format f = deck.getFormat(); assertNotNull(f); assertEquals(expectedFormatId, f.getId()); }
public Format getFormat() { return format; }
Deck implements Serializable, HeaderListItemInterface { public Format getFormat() { return format; } }
Deck implements Serializable, HeaderListItemInterface { public Format getFormat() { return format; } Deck(Card identity, Format format); }
Deck implements Serializable, HeaderListItemInterface { public Format getFormat() { return format; } Deck(Card identity, Format format); String getName(); String getFileSafeName(); void setName(String name); Card getIdentity(); void setIdentity(Card card); String getFactionCode(); String getNotes(); void setNotes(String notes); String getSide(); @Override int getItemType(); @Override String getItemName(); void updateCardCount(Card card, int count); void setCardCount(Card card, int count); ArrayList<Card> getCards(); Integer getCardCount(Card card); int getCardCountByType(String type); int getCardCountByFaction(String faction); int getCardCountBySubTypeAndFaction(String subtype, String faction); ArrayList<CardCount> getCardsToAdd(); ArrayList<CardCount> getCardsToRemove(); int getCardsToAddCount(Card card); int getCardsToRemoveCount(Card card); int getDeckSize(); int getDeckInfluence(); int getMinimumDeckSize(); int getInfluenceLimit(); int getDeckAgenda(); int getDeckAgendaMinimum(); void clearCardsToAddAndRemove(); void clearCardsToAddAndRemove(boolean onlyChecked); boolean isInfluenceOk(); boolean isCardCountOk(); boolean isAgendaOk(); UUID getUUID(); Long getRowId(); void setRowId(Long newRowId); void setCardsToAdd(ArrayList<CardCount> list); void setCardsToRemove(ArrayList<CardCount> list); JSONObject toJSON(); static Deck fromJSON(JSONObject json, CardRepository repo); boolean isStarred(); void setStarred(boolean starred); boolean isApex(); void setHasUnknownCards(); boolean hasUnknownCards(); ArrayList<CardCount> getCardCounts(); boolean isFaction(String factionCode); void ReduceCard(Card card); void AddCard(Card card, int maxAllowed); Format getFormat(); void setFormat(Format format); ArrayList<String> getPackFilter(); void setPackFilter(ArrayList<String> packFilter); int getCoreCount(); void setCoreCount(int coreCount); void replaceCard(Card card, Card replacement); String getSideCode(); int getNrdbId(); void setNrdbId(int nrdbId); boolean isSide(@NotNull String side); }
Deck implements Serializable, HeaderListItemInterface { public Format getFormat() { return format; } Deck(Card identity, Format format); String getName(); String getFileSafeName(); void setName(String name); Card getIdentity(); void setIdentity(Card card); String getFactionCode(); String getNotes(); void setNotes(String notes); String getSide(); @Override int getItemType(); @Override String getItemName(); void updateCardCount(Card card, int count); void setCardCount(Card card, int count); ArrayList<Card> getCards(); Integer getCardCount(Card card); int getCardCountByType(String type); int getCardCountByFaction(String faction); int getCardCountBySubTypeAndFaction(String subtype, String faction); ArrayList<CardCount> getCardsToAdd(); ArrayList<CardCount> getCardsToRemove(); int getCardsToAddCount(Card card); int getCardsToRemoveCount(Card card); int getDeckSize(); int getDeckInfluence(); int getMinimumDeckSize(); int getInfluenceLimit(); int getDeckAgenda(); int getDeckAgendaMinimum(); void clearCardsToAddAndRemove(); void clearCardsToAddAndRemove(boolean onlyChecked); boolean isInfluenceOk(); boolean isCardCountOk(); boolean isAgendaOk(); UUID getUUID(); Long getRowId(); void setRowId(Long newRowId); void setCardsToAdd(ArrayList<CardCount> list); void setCardsToRemove(ArrayList<CardCount> list); JSONObject toJSON(); static Deck fromJSON(JSONObject json, CardRepository repo); boolean isStarred(); void setStarred(boolean starred); boolean isApex(); void setHasUnknownCards(); boolean hasUnknownCards(); ArrayList<CardCount> getCardCounts(); boolean isFaction(String factionCode); void ReduceCard(Card card); void AddCard(Card card, int maxAllowed); Format getFormat(); void setFormat(Format format); ArrayList<String> getPackFilter(); void setPackFilter(ArrayList<String> packFilter); int getCoreCount(); void setCoreCount(int coreCount); void replaceCard(Card card, Card replacement); String getSideCode(); int getNrdbId(); void setNrdbId(int nrdbId); boolean isSide(@NotNull String side); static final String JSON_DECK_UUID; static final String JSON_DECK_NAME; static final String JSON_DECK_NOTES; static final String JSON_DECK_STARRED; static final String JSON_DECK_IDENTITY_CODE; static final String JSON_DECK_CARD_CODE; static final String JSON_DECK_CARD_COUNT; static final String JSON_DECK_CARDS; static final String JSON_DECK_CARDS_TO_ADD; static final String JSON_DECK_CARDS_TO_REMOVE; static final String JSON_DECK_CARDS_DONE; static final String JSON_DECK_FORMAT; static final String JSON_DECK_PACK_FILTER; static final String JSON_DECK_CORE_COUNT; static final int BASE_AGENDA; }