Package com.jbidwatcher.auction.server

Examples of com.jbidwatcher.auction.server.AuctionServer$ReloadItemException


* 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);
  }
View Full Code Here


  }

  private static void eBayServerSetup() {
    boolean nonUS = JConfig.queryConfiguration("ebay.non_us", Boolean.toString(!Platform.isUSBased())).equals("true");
    String homeSite = nonUS ? JConfig.queryConfiguration("ebay.alternate", "ebay.co.uk") : "ebay.com";
    AuctionServer ebay = new ebayServer(homeSite);
    AuctionServerManager.getInstance().setServer(ebay);
  }
View Full Code Here

    }
    //  Pause updates for 20 seconds
    PauseManager.getInstance().pause(20);

    //  In 25 seconds, log back in.  This is because networking usually takes 15-20 seconds to restart after a sleep event.
    AuctionServer mainServer = AuctionServerManager.getInstance().getServer();
    long wakeUp = System.currentTimeMillis() + (25 * Constants.ONE_SECOND);
    AuctionQObject updateEvent = new AuctionQObject(AuctionQObject.MENU_CMD, AuctionServer.UPDATE_LOGIN_COOKIE, null);

    SuperQueue.getInstance().getQueue().add(updateEvent, mainServer.getFriendlyName(), wakeUp);
  }
View Full Code Here

    //  If the device has verified itself, then we're okay.
    if(deviceVerify(user, pass)) return true;

    //  TODO -- Actually, validate against ASM, and it can *find* the correct
    //  TODO -- server/user combination and restrict the display/interaction to that server.
    AuctionServer aucServ = AuctionServerManager.getInstance().getServer();
    return aucServ.validate(user, pass);
  }
View Full Code Here

    int activeCount = AuctionEntry.activeCount();

    MQFactory.getConcrete("splash").enqueue("WIDTH " + activeCount);
    MQFactory.getConcrete("splash").enqueue("SET 0");

    AuctionServer newServer = AuctionServerManager.getInstance().getServer();
    AuctionServerManager.setEntryManager(this);
    if (totalCount == 0) {
      if(JConfig.queryConfiguration("stats.auctions") == null) JConfig.setConfiguration("stats.auctions", "0");
      return 0;
    }
View Full Code Here

TOP

Related Classes of com.jbidwatcher.auction.server.AuctionServer$ReloadItemException

Copyright © 2018 www.massapicom. 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.