Author: thomas.heute(a)jboss.com
Date: 2007-12-11 18:16:09 -0500 (Tue, 11 Dec 2007)
New Revision: 9337
Modified:
tags/JBoss_Portal_2_6_3/widget/src/main/org/jboss/portal/test/widget/netvibes/NetvibesQueryTestCase.java
tags/JBoss_Portal_2_6_3/widget/src/main/org/jboss/portal/widget/netvibes/provider/NetvibesQuery.java
Log:
Netvibes, don't break the contracts
Modified:
tags/JBoss_Portal_2_6_3/widget/src/main/org/jboss/portal/test/widget/netvibes/NetvibesQueryTestCase.java
===================================================================
---
tags/JBoss_Portal_2_6_3/widget/src/main/org/jboss/portal/test/widget/netvibes/NetvibesQueryTestCase.java 2007-12-11
16:40:16 UTC (rev 9336)
+++
tags/JBoss_Portal_2_6_3/widget/src/main/org/jboss/portal/test/widget/netvibes/NetvibesQueryTestCase.java 2007-12-11
23:16:09 UTC (rev 9337)
@@ -36,14 +36,14 @@
public void test01() throws Exception
{
NetvibesQuery q = new NetvibesQuery(0, 10, "14", "top",
"foo");
-
assertEquals("http://eco.netvibes.com/rss.php?synd=jboss&type=uw...;,
q.buildQueryURL().toString());
+
assertEquals("http://eco.netvibes.com/rss-partner.php?synd=jboss&...;,
q.buildQueryURL().toString());
}
public void test02() throws Exception
{
NetvibesQuery q = new NetvibesQuery(1, 11, "5", "foo",
"bar");
-
assertEquals("http://eco.netvibes.com/rss.php?synd=jboss&type=uw...;,
q.buildQueryURL().toString());
+
assertEquals("http://eco.netvibes.com/rss-partner.php?synd=jboss&...;,
q.buildQueryURL().toString());
}
public void test03()
Modified:
tags/JBoss_Portal_2_6_3/widget/src/main/org/jboss/portal/widget/netvibes/provider/NetvibesQuery.java
===================================================================
---
tags/JBoss_Portal_2_6_3/widget/src/main/org/jboss/portal/widget/netvibes/provider/NetvibesQuery.java 2007-12-11
16:40:16 UTC (rev 9336)
+++
tags/JBoss_Portal_2_6_3/widget/src/main/org/jboss/portal/widget/netvibes/provider/NetvibesQuery.java 2007-12-11
23:16:09 UTC (rev 9337)
@@ -133,7 +133,7 @@
public URL buildQueryURL() throws MalformedURLException
{
// Building url - and only allow UWA compatible widgets (type=uwa)
- StringBuffer buffer = new
StringBuffer("http://eco.netvibes.com/rss.php?synd=jboss&type=&q... + type);
+ StringBuffer buffer = new
StringBuffer("http://eco.netvibes.com/rss-partner.php?synd=jboss&... +
type);
if( start > 0 )
{
buffer.append("&start=").append(start);