You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/08/13 23:51:32 UTC
cvs commit: jakarta-commons-sandbox/feedparser/tests locate5.html locate7.html
burton 2004/08/13 14:51:32
Modified: feedparser/src/java/org/apache/commons/feedparser/locate
FeedLocator.java LinkLocator.java
Added: feedparser/tests locate5.html locate7.html
Log:
Found a unit test that DOESN'T work
Revision Changes Path
1.14 +4 -2 jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/locate/FeedLocator.java
Index: FeedLocator.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/locate/FeedLocator.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- FeedLocator.java 13 Aug 2004 19:34:27 -0000 1.13
+++ FeedLocator.java 13 Aug 2004 21:51:32 -0000 1.14
@@ -47,7 +47,7 @@
ResourceRequest request = ResourceRequestFactory.getResourceRequest( resource );
String content = request.getInputStreamAsString();
-
+
//return resources
return locate( resource, content );
@@ -83,13 +83,15 @@
//String resource = "file:///projects/feedparser/tests/locate4.html";
//String resource = "file:///projects/feedparser/tests/locate5.html";
- String resource = "file:///projects/feedparser/tests/locate6.html";
+ //String resource = "file:///projects/feedparser/tests/locate6.html";
//String resource = "http://blogs.sun.com/roller/page/gonzo";
//String resource = "http://gonze.com/weblog/";
//String resource = "http://codinginparadise.org/";
+
+ String resource = "http://georgewbush.com/blog";
//String resource = "http://carolinascl.blogspot.com/";
1.6 +2 -1 jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/locate/LinkLocator.java
Index: LinkLocator.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/locate/LinkLocator.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- LinkLocator.java 6 Aug 2004 01:22:12 -0000 1.5
+++ LinkLocator.java 13 Aug 2004 21:51:32 -0000 1.6
@@ -90,7 +90,8 @@
// http://peerfear.org/index.rdf
//this is on a different site.
- if ( ! getSite( current ).equals( site ) ) {
+
+ if ( ! site.equals( getSite( current ) ) ) {
return true;
}
1.1 jakarta-commons-sandbox/feedparser/tests/locate5.html
Index: locate5.html
===================================================================
<!-- test for basic RSS with an internal RSS 0.90 index.xml link. -->
<html>
<head>
</head>
<body>
<p>
<a href="/roller/rss/foobar">RSS</a>
</p>
</body>
</html>
1.1 jakarta-commons-sandbox/feedparser/tests/locate7.html
Index: locate7.html
===================================================================
<!-- test for basic RSS with an internal RSS 0.90 index.xml link. -->
<html>
<head>
<link rel="alternate"
href="http://www.codinginparadise.org/weblog/atom.xml"
type="application/atom+xml"
title="ATOM" />
</head>
<body>
<p>
</p>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org