Package org.as.jtrello.cards

Examples of org.as.jtrello.cards.Card


  //TODO Check returned object values
 
  @Test
  public void testGet() {
    try {
      Card card = client.getCards().get(props.getProperty("TRELLO_CARD1"));
      System.out.println("DEBUG card=" + card.toString());
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
    try {
      Card card = client.getCards().get(props.getProperty("TRELLO_CARD2"));
      System.out.println("DEBUG card=" + card.toString());
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
  }
View Full Code Here


    }
  }
 
  @Test
  public void testGetByBoard() {
    Card card;
    try {
      List<Card> cards = client.getCards().getByBoard(props.getProperty("TRELLO_BOARD_PRIVATE"));
      Iterator<Card> iterator = cards.iterator();
      while (iterator.hasNext()) {
        card = iterator.next();
        System.out.println("DEBUG card=" + card.toString());
      }
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
View Full Code Here

    }
  }
 
  @Test
  public void testGetByUser() {
    Card card;
    try {
      List<Card> cards = client.getCards().getByUser(props.getProperty("TRELLO_MEMBER"));
      Iterator<Card> iterator = cards.iterator();
      while (iterator.hasNext()) {
        card = iterator.next();
        System.out.println("DEBUG card=" + card.toString());
      }
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
View Full Code Here

    }
  }
 
  @Test
  public void testGetByUserMe() {
    Card card;
    try {
      List<Card> cards = client.getCards().getByUser("me");
      Iterator<Card> iterator = cards.iterator();
      while (iterator.hasNext()) {
        card = iterator.next();
        System.out.println("DEBUG card=" + card.toString());
      }
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
View Full Code Here

    }
  }

  @Test
  public void testCreate() {
    Card card = new Card();
    card.setName("TestCard");
    card.setDesc("This card is created for test purposes.");
    card.setIdList(props.getProperty("TRELLO_LIST_TOWRITE"));
    try {
      Card newCard = client.getCards().create(card);
      System.out.println("DEBUG card=" + card.toString());
      System.out.println("DEBUG newCard=" + newCard.toString());
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
  }
View Full Code Here

TOP

Related Classes of org.as.jtrello.cards.Card

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.