You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by rd...@apache.org on 2009/05/18 23:42:06 UTC

svn commit: r776107 - in /incubator/rat/main/trunk/apache-rat-core/src: main/java/org/apache/rat/document/ test/java/org/apache/rat/document/impl/zip/ test/java/org/apache/rat/test/utils/

Author: rdonkin
Date: Mon May 18 21:42:06 2009
New Revision: 776107

URL: http://svn.apache.org/viewvc?rev=776107&view=rev
Log:
Preparations for elimination of IDocumentCollection

Removed:
    incubator/rat/main/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/zip/ZipDocumentFactoryTest.java
    incubator/rat/main/trunk/apache-rat-core/src/test/java/org/apache/rat/test/utils/RATCase.java
Modified:
    incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/IDocumentCollection.java
    incubator/rat/main/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/zip/ZipDirectoryTest.java

Modified: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/IDocumentCollection.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/IDocumentCollection.java?rev=776107&r1=776106&r2=776107&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/IDocumentCollection.java (original)
+++ incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/document/IDocumentCollection.java Mon May 18 21:42:06 2009
@@ -18,7 +18,6 @@
  */ 
 package org.apache.rat.document;
 
-import java.util.Iterator;
 
 /**
  * Collects documents.
@@ -26,15 +25,4 @@
  */
 public interface IDocumentCollection extends IResource {
 
-	/**
-	 * Iterates <code>IDocument</code>'s contained.
-	 * @return <code>Iterator</code>, not null
-	 */
-	public Iterator documentIterator();
-	
-	/**
-	 * Iterates <code>IDocumentCollection</code>'s contained.
-	 * @return <code>Iterator</code>, not null
-	 */
-	public Iterator subcollectionIterator();
 }

Modified: incubator/rat/main/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/zip/ZipDirectoryTest.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/zip/ZipDirectoryTest.java?rev=776107&r1=776106&r2=776107&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/zip/ZipDirectoryTest.java (original)
+++ incubator/rat/main/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/zip/ZipDirectoryTest.java Mon May 18 21:42:06 2009
@@ -59,26 +59,6 @@
         super.tearDown();
     }
 
-    public void testDocumentIterator() {
-        Iterator iterator = directory.documentIterator();
-        assertNotNull("Iterator should be not null", iterator);
-        assertTrue("Iteration has two elements", iterator.hasNext());
-        assertEquals("Iteration returned in order", documentOne, iterator.next());
-        assertTrue("Iteration has two elements", iterator.hasNext());
-        assertEquals("Iteration returned in order", documentTwo, iterator.next()); 
-        assertFalse("Iteration has two elements", iterator.hasNext());
-    }
-
-    public void testSubcollectionIterator() {
-        Iterator iterator = directory.subcollectionIterator();
-        assertNotNull("Iterator should be not null", iterator);
-        assertTrue("Iteration has two elements", iterator.hasNext());
-        assertEquals("Iteration returned in order", subcollectionOne, iterator.next());
-        assertTrue("Iteration has two elements", iterator.hasNext());
-        assertEquals("Iteration returned in order", subcollectionTwo, iterator.next()); 
-        assertFalse("Iteration has two elements", iterator.hasNext());
-    }
-
     public void testGetName() {
         assertEquals(NAME, directory.getName());
     }