Author: justin
Date: Mon Feb 24 16:05:17 2014
New Revision: 1571326
URL: http://svn.apache.org/r1571326
Log:
tabs -> spaces
Modified:
sling/trunk/bundles/scripting/javascript/src/test/java/org/apache/sling/scripting/wrapper/ScriptableResourceTest.java
Modified:
sling/trunk/bundles/scripting/javascript/src/test/java/org/apache/sling/scripting/wrapper/ScriptableResourceTest.java
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/javascript/src/test/java/org/apache/sling/scripting/wrapper/ScriptableResourceTest.java?rev=1571326&r1=1571325&r2=1571326&view=diff
==============================================================================
---
sling/trunk/bundles/scripting/javascript/src/test/java/org/apache/sling/scripting/wrapper/ScriptableResourceTest.java
(original)
+++
sling/trunk/bundles/scripting/javascript/src/test/java/org/apache/sling/scripting/wrapper/ScriptableResourceTest.java
Mon Feb 24 16:05:17 2014
@@ -223,56 +223,56 @@ public class ScriptableResourceTest exte
return ResourceUtil.getName(getPath());
}
- public Resource getChild(String relPath) {
- try
- {
- Node childNode = node.getNode( relPath );
- if ( childNode != null ) {
- return new TestResource( childNode );
- } else {
- return null;
- }
- } catch ( RepositoryException re )
- {
- return null;
- }
- }
-
- public Resource getParent() {
- try
- {
- Node parentNode = node.getParent();
- if ( parentNode != null ) {
- return new TestResource( parentNode );
- } else {
- return null;
- }
- } catch ( RepositoryException re )
- {
- return null;
- }
- }
-
- public boolean isResourceType(String resourceType) {
- return getResourceType().equals( resourceType );
- }
-
- public Iterator<Resource> listChildren() {
- try
- {
- List<Resource> childList = new ArrayList();
- NodeIterator it = node.getNodes();
- while ( it.hasNext() )
- {
- Node nextNode = it.nextNode();
- childList.add( new TestResource(
nextNode ) );
- }
- return childList.iterator();
- } catch ( RepositoryException re )
- {
- return null;
- }
- }
+ public Resource getChild(String relPath) {
+ try
+ {
+ Node childNode = node.getNode( relPath );
+ if ( childNode != null ) {
+ return new TestResource( childNode );
+ } else {
+ return null;
+ }
+ } catch ( RepositoryException re )
+ {
+ return null;
+ }
+ }
+
+ public Resource getParent() {
+ try
+ {
+ Node parentNode = node.getParent();
+ if ( parentNode != null ) {
+ return new TestResource( parentNode );
+ } else {
+ return null;
+ }
+ } catch ( RepositoryException re )
+ {
+ return null;
+ }
+ }
+
+ public boolean isResourceType(String resourceType) {
+ return getResourceType().equals( resourceType );
+ }
+
+ public Iterator<Resource> listChildren() {
+ try
+ {
+ List<Resource> childList = new ArrayList<Resource>();
+ NodeIterator it = node.getNodes();
+ while ( it.hasNext() )
+ {
+ Node nextNode = it.nextNode();
+ childList.add( new TestResource( nextNode ) );
+ }
+ return childList.iterator();
+ } catch ( RepositoryException re )
+ {
+ return null;
+ }
+ }
}