// Path: src/main/java/net/joelinn/asana/teams/Team.java
// public class Team {
//     public long id;
//     public String name;
// }
// 
// Path: src/main/java/net/joelinn/asana/teams/Teams.java
// @JsonRootName("data")
// public class Teams extends ArrayList<Team>{
// }
// 
// Path: src/main/java/net/joelinn/asana/teams/TeamsClient.java
// public class TeamsClient extends AbstractClient{
//     public TeamsClient(String apiKey) {
//         super(apiKey);
//     }
// 
//     /**
//      * @param apiKey            your Asana API key
//      * @param connectionTimeout the connection timeout in MILLISECONDS
//      * @param readTimeout       the read timeout in MILLISECONDS
//      */
//     public TeamsClient(String apiKey, int connectionTimeout, int readTimeout) {
//         super(apiKey, connectionTimeout, readTimeout);
//     }
// 
//     /**
//      * Retrieve all teams of which the current user is a member within the given organization
//      * @param organizationId an organization id
//      * @return a list of Team objects
//      */
//     public Teams getTeams(long organizationId){
//         return get(String.format("organizations/%s/teams", organizationId)).getEntity(Teams.class);
//     }
// }
// 
// Path: src/test/java/net/joelinn/asana/test/BaseTest.java
// public abstract class BaseTest {
//     protected String getApiKey(){
//         return "";  //enter your api key here to run the tests
//     }
// }


import net.joelinn.asana.teams.Team;
import net.joelinn.asana.teams.Teams;
import net.joelinn.asana.teams.TeamsClient;
import net.joelinn.asana.test.BaseTest;
import org.junit.Before;
import org.junit.Test;
package net.joelinn.asana.test.teams;


/**
 * Joe Linn
 * 11/20/13
 */
public class TeamsClientTest extends BaseTest{
    protected TeamsClient client;

    @Before
    public void setUp(){
        client = new TeamsClient(getApiKey());
    }

    @Test
    public void testTeams(){
        if(getApiKey().equals("")){
            // skip the test if no api key has been provided
            return;
        }
// Path: src/main/java/net/joelinn/asana/teams/Team.java
// public class Team {
//     public long id;
//     public String name;
// }
// 
// Path: src/main/java/net/joelinn/asana/teams/Teams.java
// @JsonRootName("data")
// public class Teams extends ArrayList<Team>{
// }
// 
// Path: src/main/java/net/joelinn/asana/teams/TeamsClient.java
// public class TeamsClient extends AbstractClient{
//     public TeamsClient(String apiKey) {
//         super(apiKey);
//     }
// 
//     /**
//      * @param apiKey            your Asana API key
//      * @param connectionTimeout the connection timeout in MILLISECONDS
//      * @param readTimeout       the read timeout in MILLISECONDS
//      */
//     public TeamsClient(String apiKey, int connectionTimeout, int readTimeout) {
//         super(apiKey, connectionTimeout, readTimeout);
//     }
// 
//     /**
//      * Retrieve all teams of which the current user is a member within the given organization
//      * @param organizationId an organization id
//      * @return a list of Team objects
//      */
//     public Teams getTeams(long organizationId){
//         return get(String.format("organizations/%s/teams", organizationId)).getEntity(Teams.class);
//     }
// }
// 
// Path: src/test/java/net/joelinn/asana/test/BaseTest.java
// public abstract class BaseTest {
//     protected String getApiKey(){
//         return "";  //enter your api key here to run the tests
//     }
// }


// Path: src/test/java/net/joelinn/asana/test/teams/TeamsClientTest.java
import net.joelinn.asana.teams.Team;
import net.joelinn.asana.teams.Teams;
import net.joelinn.asana.teams.TeamsClient;
import net.joelinn.asana.test.BaseTest;
import org.junit.Before;
import org.junit.Test;

package net.joelinn.asana.test.teams;


/**
 * Joe Linn
 * 11/20/13
 */
public class TeamsClientTest extends BaseTest{
    protected TeamsClient client;

    @Before
    public void setUp(){
        client = new TeamsClient(getApiKey());
    }

    @Test
    public void testTeams(){
        if(getApiKey().equals("")){
            // skip the test if no api key has been provided
            return;
        }
        Teams teams = client.getTeams(4440299545542L);