001: //
002: //Informa -- RSS Library for Java
003: //Copyright (c) 2002-2003 by Niko Schmuck
004: //
005: //Niko Schmuck
006: //http://sourceforge.net/projects/informa
007: //mailto:niko_schmuck@users.sourceforge.net
008: //
009: //This library is free software.
010: //
011: //You may redistribute it and/or modify it under the terms of the GNU
012: //Lesser General Public License as published by the Free Software Foundation.
013: //
014: //Version 2.1 of the license should be included with this distribution in
015: //the file LICENSE. If the license is not included with this distribution,
016: //you may find a copy at the FSF web site at 'www.gnu.org' or 'www.fsf.org',
017: //or you may write to the Free Software Foundation, 675 Mass Ave, Cambridge,
018: //MA 02139 USA.
019: //
020: //This library is distributed in the hope that it will be useful,
021: //but WITHOUT ANY WARRANTY; without even the implied waranty of
022: //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
023: //Lesser General Public License for more details.
024: //
025: package de.nava.informa.utils;
026:
027: /**
028: * Handy Dandy Test Data generator. There are two ways of using this. By calling 'generate()' we
029: * just generate a stream of different rss urls to use for testing. The stream wraps around
030: * eventually. Calling reset() we start the stream up again. Or, you can just call 'get(int)' to get
031: * the nth url.
032: *
033: */
034: public class RssUrlTestData {
035:
036: static int current = 0;
037: static String[] xmlURLs = {
038: "http://www.7nights.com/asterisk/index.xml",
039: "http://barlow.typepad.com/barlowfriendz/index.rdf",
040: "http://www.edithere.com/barry/xml/rss.xml",
041: "http://cyber.law.harvard.edu/blogs/audio/lydonRss.xml",
042: "http://comdig2.de/test/issue_rss2.php?id_issue=2003.46",
043: "http://danbricklin.com/log_rss.xml",
044: "http://weblog.siliconvalley.com/column/dangillmor/index.rdf",
045: "http://blog.ziffdavis.com/coursey/Rss.aspx",
046: "http://blog.fastcompany.com/index.xml",
047: "http://isen.com/blog/index.rdf",
048: "http://weblogs.cs.cornell.edu/AllThingsDistributed/",
049: "http://seems2shel.typepad.com/itseemstome/index.rdf",
050: "http://www.zeldman.com/feed/zeldman.xml",
051: "http://joi.ito.com/index.xml",
052: "http://www.meskill.net/weblogs/index.xml",
053: "http://www.lessig.org/blog/index.rdf",
054: "http://www.librarystuff.net/index.rdf",
055: "http://www.lifewithalacrity.com/index.rdf",
056: "http://blogs.law.harvard.edu/lydon/xml/rss.xml",
057: "http://www.corante.com/many/index.rdf",
058: "http://microdoc-news.info/rss",
059: "http://novaspivack.typepad.com/nova_spivacks_weblog/index.rdf",
060: "http://blogs.osafoundation.org/mitch/index.rdf",
061: "http://www.tbray.org/ongoing/ongoing.rss",
062: "http://paolo.evectors.it/rss.xml",
063: "http://www.edventure.com/rss/R1feed.xml",
064: "http://satn.org/satn_rss.xml",
065: "http://partners.userland.com/people/docSearls.xml",
066: "http://feedster.com/blog/rss.php?version=2.0",
067: "http://www.neward.net/ted/weblog/rss.jsp",
068: "http://www.theshiftedlibrarian.com/rss.xml",
069: "http://socialsoftware.weblogsinc.com/entries.xml",
070: "http://blog.zmag.org/ttt/index.rdf",
071: "http://www.decafbad.com/blog/index.rdf",
072: "http://www.activewin.com/awin/headlines.rss",
073: "http://www.adambosworth.net/index.rdf",
074: "http://weblog.anthonyeden.com/index.xml",
075: "http://enthusiasm.cozy.org/index.rdf",
076: "http://chris.pirillo.com/index.rdf",
077: "http://cshipley.typepad.com/chris_shipley_group/index.rdf",
078: "http://reviews.cnet.com/4924-3000_7-0.xml?orderBy=-7eRating&7rType=70-80&9lwPrc=0-\\",
079: "http://www.ipadventures.com/blog/index.rdf",
080: "http://grumet.net/weblog/rsstv.xml",
081: "http://michaelthompson.org/news/gms.xml",
082: "http://www.rassoc.com/gregr/weblog/rss.aspx",
083: "http://weblog.infoworld.com/techwatch/index.rdf",
084: "http://lockergnome.com/rss/windows.php",
085: "http://rss.lockergnome.com/feed/",
086: "http://www.lockergnome.com/lockergnome.xml",
087: "http://blogs.it/0100198/rss.xml",
088: "http://blogs.msdn.com/michael_howard/Rss.aspx",
089: "http://rssnewsapps.ziffdavis.com/msw.xml",
090: "http://blogs.msdn.com/MainFeed.aspx",
091: "http://www.nedbatchelder.com/blog/rss.xml",
092: "http://www.tbray.org/ongoing/ongoing.rss",
093: "http://raindrop.msresearch.us/rss.aspx",
094: "http://www.intertwingly.net/blog/index.rss",
095: "http://www.kunal.org/scoble/index.rdf",
096: "http://weblogs.asp.net/smguest/Rss.aspx",
097: "http://www.telepocalypse.net/index.rdf",
098: "http://www.officeletter.com/tolrss.xml",
099: "http://www.theregister.co.uk/tonys/slashdot.rdf",
100: "http://werbach.com/blog/rss.xml",
101: "http://www.windley.com/rss.xml" };
102:
103: static public String get(int i) {
104: return xmlURLs[i % xmlURLs.length];
105: }
106:
107: static public String generate() {
108: return get(current++);
109: }
110:
111: static public void reset() {
112: current = 0;
113: }
114:
115: }
|