// Path: src/main/java/net/joelinn/riot/game/GameClient.java
// public class GameClient extends AbstractClient{
// 
//     public GameClient(String apiKey, Region region) {
//         super(apiKey, region);
//     }
// 
//     @Override
//     protected String getVersion() {
//         return "1.3";
//     }
// 
//     /**
//      * @param summonerId id of the desired summoner
//      * @return an object containing a list of the given summoner's most recent games
//      * @see <a href="https://developer.riotgames.com/api/methods#!/292/1029">https://developer.riotgames.com/api/methods#!/292/1029</a>
//      */
//     public RecentGames getRecentGamesBySummoner(long summonerId){
//         return get(String.format("by-summoner/%s/recent", summonerId)).getEntity(RecentGames.class);
//     }
// 
//     @Override
//     protected ClientResponse request(String method, String url, MultivaluedMapImpl queryParams, MultivaluedMapImpl data) {
//         return super.request(method, "game/" + url, queryParams, data);
//     }
// }
// 
// Path: src/main/java/net/joelinn/riot/game/dto/RecentGames.java
// public class RecentGames {
//     public Game[] games;
//     public long summonerId;
// }
// 
// Path: src/test/java/net/joelinn/riot/test/BaseTest.java
// public abstract class BaseTest {
//     protected static final long THE_ODD_ONE = 60783;
//     protected static final long PHREAK = 7428;
//     protected static final long C9_METEOS = 390600;
//     protected static final long XPECIAL = 19199530;
// 
//     protected static final String TSM = "TEAM-e4936d7b-b80e-4367-a76c-5ccf7388c995";
//     protected static final String C9 = "TEAM-9baaf74e-ea61-4ebc-82d9-b013d29399fa";
// 
//     private Properties properties;
// 
//     @Before
//     public void setUpBefore(){
//         properties = new Properties();
//         try {
//             properties.load(BaseTest.class.getResourceAsStream("/junit.properties"));
//         } catch (IOException e) {
//             e.printStackTrace();
//         }
// 
//     }
// 
//     public String getApiKey(){
//         return properties.getProperty("apiKey", "");
//     }
// 
//     public Region getRegion(){
//         return Region.valueOf(properties.getProperty("region", Region.NA.toString()).toUpperCase());
//     }
// 
//     public long getSummonerId(){
//         return Long.parseLong(properties.getProperty("summonerId", "2"));
//     }
// 
//     public String getSummonerName(){
//         return properties.getProperty("summonerName", "Udyr");
//     }
// }


import junit.framework.TestCase;
import net.joelinn.riot.game.GameClient;
import net.joelinn.riot.game.dto.RecentGames;
import net.joelinn.riot.test.BaseTest;
import org.junit.Before;
import org.junit.Test;
package net.joelinn.riot.test.game;


/**
 * Joe Linn
 * 12/10/13
 */
public class GameClientTest extends BaseTest{
    public GameClient client;

// Path: src/main/java/net/joelinn/riot/game/GameClient.java
// public class GameClient extends AbstractClient{
// 
//     public GameClient(String apiKey, Region region) {
//         super(apiKey, region);
//     }
// 
//     @Override
//     protected String getVersion() {
//         return "1.3";
//     }
// 
//     /**
//      * @param summonerId id of the desired summoner
//      * @return an object containing a list of the given summoner's most recent games
//      * @see <a href="https://developer.riotgames.com/api/methods#!/292/1029">https://developer.riotgames.com/api/methods#!/292/1029</a>
//      */
//     public RecentGames getRecentGamesBySummoner(long summonerId){
//         return get(String.format("by-summoner/%s/recent", summonerId)).getEntity(RecentGames.class);
//     }
// 
//     @Override
//     protected ClientResponse request(String method, String url, MultivaluedMapImpl queryParams, MultivaluedMapImpl data) {
//         return super.request(method, "game/" + url, queryParams, data);
//     }
// }
// 
// Path: src/main/java/net/joelinn/riot/game/dto/RecentGames.java
// public class RecentGames {
//     public Game[] games;
//     public long summonerId;
// }
// 
// Path: src/test/java/net/joelinn/riot/test/BaseTest.java
// public abstract class BaseTest {
//     protected static final long THE_ODD_ONE = 60783;
//     protected static final long PHREAK = 7428;
//     protected static final long C9_METEOS = 390600;
//     protected static final long XPECIAL = 19199530;
// 
//     protected static final String TSM = "TEAM-e4936d7b-b80e-4367-a76c-5ccf7388c995";
//     protected static final String C9 = "TEAM-9baaf74e-ea61-4ebc-82d9-b013d29399fa";
// 
//     private Properties properties;
// 
//     @Before
//     public void setUpBefore(){
//         properties = new Properties();
//         try {
//             properties.load(BaseTest.class.getResourceAsStream("/junit.properties"));
//         } catch (IOException e) {
//             e.printStackTrace();
//         }
// 
//     }
// 
//     public String getApiKey(){
//         return properties.getProperty("apiKey", "");
//     }
// 
//     public Region getRegion(){
//         return Region.valueOf(properties.getProperty("region", Region.NA.toString()).toUpperCase());
//     }
// 
//     public long getSummonerId(){
//         return Long.parseLong(properties.getProperty("summonerId", "2"));
//     }
// 
//     public String getSummonerName(){
//         return properties.getProperty("summonerName", "Udyr");
//     }
// }


// Path: src/test/java/net/joelinn/riot/test/game/GameClientTest.java
import junit.framework.TestCase;
import net.joelinn.riot.game.GameClient;
import net.joelinn.riot.game.dto.RecentGames;
import net.joelinn.riot.test.BaseTest;
import org.junit.Before;
import org.junit.Test;

package net.joelinn.riot.test.game;


/**
 * Joe Linn
 * 12/10/13
 */
public class GameClientTest extends BaseTest{
    public GameClient client;

    @Before