Package com.dragontek.mygpoclient.extras

Source Code of com.dragontek.mygpoclient.extras.iTunesSearchApiTest

package com.dragontek.mygpoclient.extras;

import java.io.IOException;
import java.util.List;

import org.apache.http.client.ClientProtocolException;
import org.junit.Test;

import com.dragontek.mygpoclient.extras.iTunesSearchApi;
import com.dragontek.mygpoclient.simple.IPodcast;

import junit.framework.TestCase;

public class iTunesSearchApiTest extends TestCase {
  iTunesSearchApi client;
  public iTunesSearchApiTest(String name) throws ClientProtocolException, IOException
  {
    super(name);
    client = new iTunesSearchApi();
   
  }
 
  @Test
  public void testSearch() throws Exception {
    List<IPodcast> podcasts = client.searchPodcast("Crime Central");
    for(IPodcast p : podcasts)
    {
      System.out.println(p.getUrl());
    }
  }
 
 
}
TOP

Related Classes of com.dragontek.mygpoclient.extras.iTunesSearchApiTest

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.