roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r515345 - in /incubator/roller/trunk/apps/planet: src/java/org/apache/roller/planet/pojos/PlanetData.java test/java/org/apache/roller/planet/TestUtils.java test/java/org/apache/roller/planet/business/PlanetTest.java
Date Tue, 06 Mar 2007 23:08:40 GMT
Author: agilliland
Date: Tue Mar  6 15:08:40 2007
New Revision: 515345

URL: http://svn.apache.org/viewvc?view=rev&rev=515345
Log:
PlanetData constructor should accept handle, title, description.


Modified:
    incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/pojos/PlanetData.java
    incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/TestUtils.java
    incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/PlanetTest.java

Modified: incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/pojos/PlanetData.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/pojos/PlanetData.java?view=diff&rev=515345&r1=515344&r2=515345
==============================================================================
--- incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/pojos/PlanetData.java
(original)
+++ incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/pojos/PlanetData.java
Tue Mar  6 15:08:40 2007
@@ -40,9 +40,10 @@
     }
     
     
-    public PlanetData(String name, String handle) {
-        this.title = name;
+    public PlanetData(String handle, String title, String desc) {
+        this.title = title;
         this.handle = handle;
+        this.description = desc;
     }
     
 

Modified: incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/TestUtils.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/TestUtils.java?view=diff&rev=515345&r1=515344&r2=515345
==============================================================================
--- incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/TestUtils.java (original)
+++ incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/TestUtils.java Tue
Mar  6 15:08:40 2007
@@ -53,7 +53,7 @@
      */
     public static PlanetData setupPlanet(String handle) throws Exception {
         
-        PlanetData testPlanet = new PlanetData(handle, handle);
+        PlanetData testPlanet = new PlanetData(handle, handle, handle);
         
         // store
         PlanetManager mgr = PlanetFactory.getPlanet().getPlanetManager();

Modified: incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/PlanetTest.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/PlanetTest.java?view=diff&rev=515345&r1=515344&r2=515345
==============================================================================
--- incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/PlanetTest.java
(original)
+++ incubator/roller/trunk/apps/planet/test/java/org/apache/roller/planet/business/PlanetTest.java
Tue Mar  6 15:08:40 2007
@@ -35,7 +35,7 @@
         
         PlanetManager mgr = PlanetFactory.getPlanet().getPlanetManager();
         
-        PlanetData testPlanet = new PlanetData("testPlanet", "testPlanet");
+        PlanetData testPlanet = new PlanetData("testPlanet", "testPlanet", "testPlanet");
         PlanetData planet = null;
         
         planet = mgr.getPlanet("testPlanet");
@@ -80,7 +80,7 @@
         
         PlanetManager mgr = PlanetFactory.getPlanet().getPlanetManager();
         
-        PlanetData testPlanet = new PlanetData("testPlanet", "testPlanet");
+        PlanetData testPlanet = new PlanetData("testPlanet", "testPlanet", "testPlanet");
         PlanetData planet = null;
         
         // add



Mime
View raw message