You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/04/19 23:05:36 UTC
svn commit: r395396 - in /incubator/roller/trunk: build.xml
tests/org/roller/business/IndexManagerTest.java
tests/org/roller/business/TestAll.java
Author: agilliland
Date: Wed Apr 19 14:05:35 2006
New Revision: 395396
URL: http://svn.apache.org/viewcvs?rev=395396&view=rev
Log:
cleanup and enable IndexManagerTest.
remove old TestAll class which is not used.
Removed:
incubator/roller/trunk/tests/org/roller/business/TestAll.java
Modified:
incubator/roller/trunk/build.xml
incubator/roller/trunk/tests/org/roller/business/IndexManagerTest.java
Modified: incubator/roller/trunk/build.xml
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/build.xml?rev=395396&r1=395395&r2=395396&view=diff
==============================================================================
--- incubator/roller/trunk/build.xml (original)
+++ incubator/roller/trunk/build.xml Wed Apr 19 14:05:35 2006
@@ -816,7 +816,6 @@
<formatter type="xml"/>
<batchtest toDir="${build.reports}/business/xml">
<fileset dir="${build.tests}/WEB-INF/classes">
- <!-- UserManager Tests -->
<include name="org/roller/business/UserTest.class"/>
<include name="org/roller/business/WeblogTest.class"/>
<include name="org/roller/business/PermissionTest.class"/>
@@ -827,6 +826,7 @@
<include name="org/roller/business/WeblogCategoryTest.class"/>
<include name="org/roller/business/CommentTest.class"/>
<include name="org/roller/business/FileManagerTest.class"/>
+ <include name="org/roller/business/IndexManagerTest.class"/>
<include name="org/roller/business/PlanetManagerTest.class"/>
<include name="org/roller/business/BookmarkManagerTest.class"/>
<include name="org/roller/business/RefererManagerTest.class"/>
Modified: incubator/roller/trunk/tests/org/roller/business/IndexManagerTest.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/tests/org/roller/business/IndexManagerTest.java?rev=395396&r1=395395&r2=395396&view=diff
==============================================================================
--- incubator/roller/trunk/tests/org/roller/business/IndexManagerTest.java (original)
+++ incubator/roller/trunk/tests/org/roller/business/IndexManagerTest.java Wed Apr 19 14:05:35 2006
@@ -1,18 +1,19 @@
package org.roller.business;
import junit.framework.Test;
+import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.roller.RollerTestBase;
import org.roller.business.search.operations.AddEntryOperation;
import org.roller.business.search.operations.SearchOperation;
import org.roller.model.IndexManager;
+import org.roller.model.RollerFactory;
import org.roller.pojos.WeblogEntryData;
/**
* Test Search Manager business layer operations.
*/
-public class IndexManagerTest extends RollerTestBase {
+public class IndexManagerTest extends TestCase {
public IndexManagerTest(String name) {
@@ -27,7 +28,7 @@
public void testSearch() throws Exception {
try {
- IndexManager imgr = getRoller().getIndexManager();
+ IndexManager imgr = RollerFactory.getRoller().getIndexManager();
WeblogEntryData wd1 = new WeblogEntryData();
wd1.setId("dummy");