Package com.jbidwatcher.auction.server.ebay

Source Code of com.jbidwatcher.auction.server.ebay.ebayServerTest

package com.jbidwatcher.auction.server.ebay;

import com.jbidwatcher.auction.server.AuctionServer;
import junit.framework.TestCase;

/**
* Created by IntelliJ IDEA.
* User: mrs
* Date: Apr 26, 2010
* Time: 12:54:48 AM
* To change this template use File | Settings | File Templates.
*/
public class ebayServerTest extends TestCase {
  public void testExtractIdentifierFromURLString() throws Exception {
    AuctionServer ebay = new ebayServer();
    String id = ebay.extractIdentifierFromURLString("http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=220594110651");
    assertEquals("220594110651", id);
    id = ebay.extractIdentifierFromURLString("http://cgi.ebay.com/Panasonic-Lumix-20mm-/220594110651?cmd=ViewItem&pt=Camera_Lenses&hash=item335c6f00bb");
    assertEquals("220594110651", id);
    id = ebay.extractIdentifierFromURLString("http://cgi.ebay.com/220594110651");
    assertEquals("220594110651", id);
  }

  public void testGetStringURLFromItem() throws Exception {
  }

  public void testGetBrowsableURLFromItem() throws Exception {
  }

  public void testIsDefaultUser() throws Exception {
  }

  public void testGetUserId() throws Exception {
  }
}
TOP

Related Classes of com.jbidwatcher.auction.server.ebay.ebayServerTest

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.