Package org.as.jtrello.tests

Source Code of org.as.jtrello.tests.JTrelloClientTest

package org.as.jtrello.tests;

import static org.junit.Assert.assertNotNull;

import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;

import org.as.jtrello.JTrelloClient;
import org.junit.Test;

public class JTrelloClientTest {
 
  private Properties props;
 
  public JTrelloClientTest() {
    props = new Properties();
    try {
      props.load(new InputStreamReader(JTrelloClientTest.class.getClassLoader().getResourceAsStream("resources/testvalues.properties")));
    } catch (IOException e) {
      e.printStackTrace();
    }
  }

  @Test
  public void testJTrelloClientString() {
    JTrelloClient client = new JTrelloClient(props.getProperty("TRELLO_API_KEY"), null);
    assertNotNull(client);
  }
 
  @Test
  public void testJTrelloClientStringStringString() {
    JTrelloClient client = new JTrelloClient(props.getProperty("TRELLO_API_KEY"),
        props.getProperty("TRELLO_SECRET_KEY"), props.getProperty("TRELLO_USER_TOKEN"));
    assertNotNull(client);
  }

}
TOP

Related Classes of org.as.jtrello.tests.JTrelloClientTest

TOP
Copyright © 2018 www.massapi.com. 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.