Support mocking HTTP requests out for testing. Essentially you register URLs to mock, and the URL to direct to instead. (Generally this would be a local HTTP server.) It can't be mocked to a file URL because we cast to HttpURLConnection in places, but it can be built to not hit eBay.

by mrs, 08 Nov, 2009 09:24 AM
File name Revision
browser/ 1000 Updated by mrs 06 Aug, 2009 09:21 AM Remove code that handled dutch items, old page formats, high bidder email, all bidder names (not available anymore), saving deleted listing ids in the XML file, large swaths of dead and/or obsolete code, and all the DB Time Queue code. Abstracted the XMLElement code out to an interface, which XMLSerialize now uses, avoiding a circular dependency/tangle. Made all my email addresses point to the same address, NOT at SourceForge anymore.
config/ 1012 Updated by mrs 09 Aug, 2009 06:57 AM Fix a stupid mistake that will bite new installs. [#862 tagged:committed]
db/ 1000 Updated by mrs 06 Aug, 2009 09:21 AM Remove code that handled dutch items, old page formats, high bidder email, all bidder names (not available anymore), saving deleted listing ids in the XML file, large swaths of dead and/or obsolete code, and all the DB Time Queue code. Abstracted the XMLElement code out to an interface, which XMLSerialize now uses, avoiding a circular dependency/tangle. Made all my email addresses point to the same address, NOT at SourceForge anymore.
html/ 1004 Updated by mrs 06 Aug, 2009 09:53 PM Reduce the verbosity of the form-parsing error now that form parsing failures are recoverable.
http/ 1032 Updated by mrs 08 Nov, 2009 09:24 AM Support mocking HTTP requests out for testing. Essentially you register URLs to mock, and the URL to direct to instead. (Generally this would be a local HTTP server.) It can't be mocked to a file URL because we cast to HttpURLConnection in places, but it can be built to not hit eBay.
queue/ 1000 Updated by mrs 06 Aug, 2009 09:21 AM Remove code that handled dutch items, old page formats, high bidder email, all bidder names (not available anymore), saving deleted listing ids in the XML file, large swaths of dead and/or obsolete code, and all the DB Time Queue code. Abstracted the XMLElement code out to an interface, which XMLSerialize now uses, avoiding a circular dependency/tangle. Made all my email addresses point to the same address, NOT at SourceForge anymore.
script/ 869 Updated by mrs 17 Apr, 2009 02:20 AM Set the ARGV for the Ruby process so the internal scripting manager will do the Right Thing w/r/t setting up Readline, in case the user uses it.
services/ 854 Updated by mrs 05 Apr, 2009 10:21 AM Juggle some classes around to clean up dependency cycles. There's now a 'services' area under util that I can put general purpose queue services.
xml/ 1029 Updated by mrs 08 Nov, 2009 09:12 AM Make decodeString static, so it can be used by other parts of the system to decode HTML-encoded entities.
ByteBuffer.java 693 Updated by mrs 21 Dec, 2008 01:04 AM Finally clean up the previously deep tangle between JConfig and ErrorManagement. All error logging is now handled through JConfig.log(), so ErrorManagement doesn't need to be a static block of functions anymore. Much cleaner, imo, but a pretty far-reaching change.
Comparison.java 24 Updated by cyberfox 26 Jan, 2007 12:14 AM Change the software license copyright header to something much simpler for now. Instead of LGPL, it's now simply an 'All Rights Reserved' license.
Constants.java 1023 Updated by mrs 07 Nov, 2009 10:07 PM Increase the vertical spacing slightly for thumbnail view and center the icon better.
Currency.java 945 Updated by mrs 06 Jun, 2009 05:53 AM Provide a default persistence delegate for currency objects, so they can be serialized and sent through the queues.
ErrorMonitor.java 693 Updated by mrs 21 Dec, 2008 01:04 AM Finally clean up the previously deep tangle between JConfig and ErrorManagement. All error logging is now handled through JConfig.log(), so ErrorManagement doesn't need to be a static block of functions anymore. Much cleaner, imo, but a pretty far-reaching change.
Externalized.java 517 Updated by mrs 21 Jun, 2008 09:26 PM Went on a warning-killing spree.
GZip.java 693 Updated by mrs 21 Dec, 2008 01:04 AM Finally clean up the previously deep tangle between JConfig and ErrorManagement. All error logging is now handled through JConfig.log(), so ErrorManagement doesn't need to be a static block of functions anymore. Much cleaner, imo, but a pretty far-reaching change.
HashBacked.java 1000 Updated by mrs 06 Aug, 2009 09:21 AM Remove code that handled dutch items, old page formats, high bidder email, all bidder names (not available anymore), saving deleted listing ids in the XML file, large swaths of dead and/or obsolete code, and all the DB Time Queue code. Abstracted the XMLElement code out to an interface, which XMLSerialize now uses, avoiding a circular dependency/tangle. Made all my email addresses point to the same address, NOT at SourceForge anymore.
IconFactory.java 693 Updated by mrs 21 Dec, 2008 01:04 AM Finally clean up the previously deep tangle between JConfig and ErrorManagement. All error logging is now handled through JConfig.log(), so ErrorManagement doesn't need to be a static block of functions anymore. Much cleaner, imo, but a pretty far-reaching change.
Pair.java 900 Updated by mrs 16 May, 2009 10:44 PM Make the Pair class public and available to the rest of the app in the .util package.
Parameters.java 497 Updated by mrs 18 Jun, 2008 03:24 AM Lots of refactorings to make the bidding process more consistent, and more comprehensible code. It also should have fewer side effects, which should help sniping a bit.
Record.java 349 Updated by mrs 05 Mar, 2008 10:40 AM Remove and clean up a few more tangles of code interdependencies, as indicated by Structure101.
ScrollingBuffer.java 938 Updated by mrs 30 May, 2009 10:52 PM Show when the log was closed/reset in the scrolling buffer that backs the log view component.
SortedList.java 692 Updated by mrs 21 Dec, 2008 01:03 AM Eliminate a lot of compile-time warnings by improving the use of generics in a third-party piece of code...
StringTools.java 884 Updated by mrs 10 May, 2009 03:02 AM Merge single_entry to trunk.
Task.java 884 Updated by mrs 10 May, 2009 03:02 AM Merge single_entry to trunk.
ToolInterface.java 1000 Updated by mrs 06 Aug, 2009 09:21 AM Remove code that handled dutch items, old page formats, high bidder email, all bidder names (not available anymore), saving deleted listing ids in the XML file, large swaths of dead and/or obsolete code, and all the DB Time Queue code. Abstracted the XMLElement code out to an interface, which XMLSerialize now uses, avoiding a circular dependency/tangle. Made all my email addresses point to the same address, NOT at SourceForge anymore.
TT.java 973 Updated by mrs 09 Jul, 2009 11:32 AM Allow retrieving the bundle name, as an informational proxy for which server is currently active.
UpdateBlocker.java 517 Updated by mrs 21 Jun, 2008 09:26 PM Went on a warning-killing spree.
ZoneDate.java 58 Updated by cyberfox 26 Feb, 2007 04:12 AM Serious work to shrink the out-of-control ebayServer class, and break it up into functional helper classes. Moved the ebayAuction parsing cleanup code into a cleaner of its own. Moved the searching code into a search-specific class. Moved the login logic into its own class, created an interface to talk to it, and use that everywhere instead of building it into ebayServer. Extracted several string-processing blocks into the StringTools class, and disconnected them from the logic of the eBay server.

Bookmark this directory

Cancel

Check out the code: svn co jbidwatcher/trunk/src/com/jbidwatcher/util