You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:47:22 UTC

[sling-org-apache-sling-jcr-contentloader] 19/36: Clean up code

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.contentloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-contentloader.git

commit 30e1775dcdc69765818f1caeaf10fbf20033a535
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Nov 3 23:40:11 2009 +0000

    Clean up code
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/contentloader@832609 13f79535-47bb-0310-9956-ffa450edef68
---
 .../contentloader/internal/readers/XmlReaderTest.java  | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/test/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReaderTest.java b/src/test/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReaderTest.java
index 2ef7482..bc40cec 100644
--- a/src/test/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReaderTest.java
+++ b/src/test/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReaderTest.java
@@ -18,10 +18,6 @@
  */
 package org.apache.sling.jcr.contentloader.internal.readers;
 
-import junit.framework.TestCase;
-import org.apache.sling.jcr.contentloader.internal.ContentCreator;
-
-import javax.jcr.RepositoryException;
 import java.io.BufferedReader;
 import java.io.File;
 import java.io.IOException;
@@ -33,6 +29,12 @@ import java.util.Date;
 import java.util.List;
 import java.util.Map;
 
+import javax.jcr.RepositoryException;
+
+import junit.framework.TestCase;
+
+import org.apache.sling.jcr.contentloader.internal.ContentCreator;
+
 public class XmlReaderTest extends TestCase {
 
     private XmlReader reader;
@@ -91,14 +93,12 @@ public class XmlReaderTest extends TestCase {
 	private static class MockContentCreator extends ArrayList<String> implements ContentCreator {
 
         public static class FileDescription {
-            public String name;
             public InputStream data;
             public String mimeType;
             public long lastModified;
             public String content;
 
-            public FileDescription(String name, InputStream data, String mimeType, long lastModified) throws IOException {
-                this.name = name;
+            public FileDescription(InputStream data, String mimeType, long lastModified) throws IOException {
                 this.data = data;
                 this.mimeType = mimeType;
                 this.lastModified = lastModified;
@@ -134,7 +134,7 @@ public class XmlReaderTest extends TestCase {
 
         public void createFileAndResourceNode(String name, InputStream data, String mimeType, long lastModified) throws RepositoryException {
             try {
-                this.filesCreated.add(new FileDescription(name, data, mimeType, lastModified));
+                this.filesCreated.add(new FileDescription( data, mimeType, lastModified));
             } catch (IOException e) {
                 throw new RuntimeException(e);
             }
@@ -143,7 +143,7 @@ public class XmlReaderTest extends TestCase {
         public boolean switchCurrentNode(String subPath, String newNodeType) throws RepositoryException {
             return true;
         }
-        
+
 		public void createAce(String principal,
 				String[] grantedPrivileges, String[] deniedPrivileges)
 				throws RepositoryException {

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.