Tab police.
Also trimmed trailing whitespace

git-svn-id: https://svn.apache.org/repos/asf/jakarta/bsf/branches/bsf3.x@948071 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bsf-api/src/test/java/org/apache/bsf/FactoryTest.java b/bsf-api/src/test/java/org/apache/bsf/FactoryTest.java
index 0069a70..15cf816 100644
--- a/bsf-api/src/test/java/org/apache/bsf/FactoryTest.java
+++ b/bsf-api/src/test/java/org/apache/bsf/FactoryTest.java
@@ -13,7 +13,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- * 
+ *
  */
 
 package org.apache.bsf;
@@ -29,8 +29,8 @@
  * also reports runtime details
  */
 public class FactoryTest extends TestCase {
-	
-	
+
+
     private void show(String key){
         System.out.println(key+"="+System.getProperty(key));
     }
@@ -56,9 +56,9 @@
         if (isBSFClass == null) {
             System.out.println("ScriptEngineManager class - implementation unknown");
         } else if (isBSFClass.booleanValue()) {
-            System.out.println("ScriptEngineManager class is from Apache BSF");            
+            System.out.println("ScriptEngineManager class is from Apache BSF");
         } else {
-            System.out.println("ScriptEngineManager class is not Apache BSF");            
+            System.out.println("ScriptEngineManager class is not Apache BSF");
         }
         final int count = sem.getEngineFactories().size();
         assertTrue("Must find some factories",count>0);
diff --git a/bsf-api/src/test/java/org/apache/bsf/ScriptEngineManagerTest.java b/bsf-api/src/test/java/org/apache/bsf/ScriptEngineManagerTest.java
index c653aef..4be6a4b 100644
--- a/bsf-api/src/test/java/org/apache/bsf/ScriptEngineManagerTest.java
+++ b/bsf-api/src/test/java/org/apache/bsf/ScriptEngineManagerTest.java
@@ -13,7 +13,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- * 
+ *
  */
 
 package org.apache.bsf;
@@ -33,34 +33,34 @@
 import org.apache.bsf.utils.TestScriptEngineFactory;
 
 public class ScriptEngineManagerTest extends TestCase {
-	private ScriptEngineManager mgr = null;
-	
-	public ScriptEngineManagerTest() {
-		super("ScriptEngineManagerTest");
-	}
-	
-	protected void setUp() throws Exception {
-		super.setUp();
-		mgr = new ScriptEngineManager();
-	}
+    private ScriptEngineManager mgr = null;
 
-	public void testScriptEngineManager() {
-		assertNotNull(mgr);
-		List facs = mgr.getEngineFactories();
-		assertNotNull(facs);
-		assertTrue(facs.size() > 0); // need at least one
-	}
+    public ScriptEngineManagerTest() {
+        super("ScriptEngineManagerTest");
+    }
 
-	public void testGetPut() {
-		mgr.put("x", new Integer(1));
-		Object retValue = mgr.get("x");
-		assertEquals(new Integer(1), retValue);
-		try {
+    protected void setUp() throws Exception {
+        super.setUp();
+        mgr = new ScriptEngineManager();
+    }
+
+    public void testScriptEngineManager() {
+        assertNotNull(mgr);
+        List facs = mgr.getEngineFactories();
+        assertNotNull(facs);
+        assertTrue(facs.size() > 0); // need at least one
+    }
+
+    public void testGetPut() {
+        mgr.put("x", new Integer(1));
+        Object retValue = mgr.get("x");
+        assertEquals(new Integer(1), retValue);
+        try {
             mgr.get(null);
             fail("Expected NullPointerException");
         } catch (NullPointerException e) {
         }
-		try {
+        try {
             mgr.get("");
             fail("Expected IllegalArgumentException");
         } catch (IllegalArgumentException e) {
@@ -69,53 +69,53 @@
         assertNull(mgr.get("null_Key"));
         mgr.put("null_Key", null);
         assertNull(mgr.get("null_Key"));
-	}
+    }
 
-	public void testGetEngineByExtension() {
-		ScriptEngine engine;
-		
-		engine =  mgr.getEngineByExtension("tEst");
-        assertNotNull(engine);
-		assertTrue(engine instanceof TestScriptEngine);
-		
-		engine = mgr.getEngineByExtension("teSt");
-        assertNotNull(engine);
-		assertTrue(engine instanceof TestScriptEngine);
-	}
+    public void testGetEngineByExtension() {
+        ScriptEngine engine;
 
-	public void testGetEngineByMimeType() {
+        engine =  mgr.getEngineByExtension("tEst");
+        assertNotNull(engine);
+        assertTrue(engine instanceof TestScriptEngine);
+
+        engine = mgr.getEngineByExtension("teSt");
+        assertNotNull(engine);
+        assertTrue(engine instanceof TestScriptEngine);
+    }
+
+    public void testGetEngineByMimeType() {
         ScriptEngine engine;
         engine =  mgr.getEngineByMimeType("application/junit");
         assertNotNull(engine);
         assertTrue(engine instanceof TestScriptEngine);
-	}
+    }
 
-	public void testGetEngineByName() {
-		ScriptEngine engine;
-		
-		engine =  mgr.getEngineByName("JUnit");
-		assertNotNull(engine);
-		assertTrue(engine instanceof TestScriptEngine);
-	}
+    public void testGetEngineByName() {
+        ScriptEngine engine;
 
-	public void testGetEngineFactories() {
-		boolean found = false;
-		List factories = mgr.getEngineFactories();
-		
-		for(int i = 0; i < factories.size(); i++) {
-			if (factories.get(i) instanceof TestScriptEngineFactory) {
-				found = true;
-				break;
-			}
-		}
-		
-		if (!found) {
-			fail("ScriptEngineManager.getEngineFactories(): " +
-					"TestScriptEngineFactory is not present ..");
-		}
-	}
+        engine =  mgr.getEngineByName("JUnit");
+        assertNotNull(engine);
+        assertTrue(engine instanceof TestScriptEngine);
+    }
 
-	public void testRegisterEngineExtension() {
+    public void testGetEngineFactories() {
+        boolean found = false;
+        List factories = mgr.getEngineFactories();
+
+        for(int i = 0; i < factories.size(); i++) {
+            if (factories.get(i) instanceof TestScriptEngineFactory) {
+                found = true;
+                break;
+            }
+        }
+
+        if (!found) {
+            fail("ScriptEngineManager.getEngineFactories(): " +
+                    "TestScriptEngineFactory is not present ..");
+        }
+    }
+
+    public void testRegisterEngineExtension() {
         try {
             mgr.registerEngineExtension(null, null);
             fail("Expected NullPointerException");
@@ -138,9 +138,9 @@
         assertNull(mgr.getEngineByExtension("junit2")); // not yet defined
         mgr.registerEngineExtension("junit2", new TestScriptEngineFactory());
         assertNotNull(mgr.getEngineByExtension("junit2")); //now defined
-	}
+    }
 
-	public void testRegisterEngineName() {
+    public void testRegisterEngineName() {
         try {
             mgr.registerEngineName(null, null);
             fail("Expected NullPointerException");
@@ -163,9 +163,9 @@
         assertNull(mgr.getEngineByName("junit2")); // not yet defined
         mgr.registerEngineName("junit2", new TestScriptEngineFactory());
         assertNotNull(mgr.getEngineByName("junit2")); //now defined
-	}
+    }
 
-	public void testRegisterEngineMimeType() {
+    public void testRegisterEngineMimeType() {
         try {
             mgr.registerEngineMimeType(null, null);
             fail("Expected NullPointerException");
@@ -188,11 +188,11 @@
         assertNull(mgr.getEngineByMimeType("junit2")); // not yet defined
         mgr.registerEngineMimeType("junit2", new TestScriptEngineFactory());
         assertNotNull(mgr.getEngineByMimeType("junit2")); //now defined
-	}
+    }
 
-	public void testSetBindings() {
-	    assertNotNull(mgr.getBindings());
-		try {
+    public void testSetBindings() {
+        assertNotNull(mgr.getBindings());
+        try {
             mgr.setBindings(null);
             fail("Expected IllegalArgumentException");
         } catch (IllegalArgumentException e) {
@@ -201,22 +201,22 @@
         assertNotSame(bindings, mgr.getBindings());
         mgr.setBindings(bindings);
         assertSame(bindings, mgr.getBindings());
-	}
+    }
 
-	public void testEvalAndCompile() throws ScriptException{
-	    ScriptEngine se = mgr.getEngineByName("JUnit");
-	    assertNotNull(se);
-	    se.put("key", "value");
-	    assertEquals("value",se.eval("key"));
-	    if (se instanceof Compilable){
-	        Compilable co = (Compilable) se;
-	        CompiledScript cs = co.compile("key");
-	        assertNotNull(cs);
-	        assertEquals("value",cs.eval());
-            assertEquals("value",cs.eval());	        
-	    } else {
-	        fail("Expected engine to implement Compilable");
-	    }
-	}
-	
+    public void testEvalAndCompile() throws ScriptException{
+        ScriptEngine se = mgr.getEngineByName("JUnit");
+        assertNotNull(se);
+        se.put("key", "value");
+        assertEquals("value",se.eval("key"));
+        if (se instanceof Compilable){
+            Compilable co = (Compilable) se;
+            CompiledScript cs = co.compile("key");
+            assertNotNull(cs);
+            assertEquals("value",cs.eval());
+            assertEquals("value",cs.eval());
+        } else {
+            fail("Expected engine to implement Compilable");
+        }
+    }
+
 }
diff --git a/bsf-api/src/test/java/org/apache/bsf/utils/TestCompiledScript.java b/bsf-api/src/test/java/org/apache/bsf/utils/TestCompiledScript.java
index 05a03ff..2bb7819 100644
--- a/bsf-api/src/test/java/org/apache/bsf/utils/TestCompiledScript.java
+++ b/bsf-api/src/test/java/org/apache/bsf/utils/TestCompiledScript.java
@@ -13,7 +13,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- * 
+ *
  */
 
 package org.apache.bsf.utils;
@@ -30,7 +30,7 @@
 
     private final ScriptEngine engine;
     private final String compiled;
-    
+
     public TestCompiledScript(TestScriptEngine testScriptEngine, String script) {
         engine = testScriptEngine;
         compiled = script;
diff --git a/bsf-api/src/test/java/org/apache/bsf/utils/TestScriptEngineFactory.java b/bsf-api/src/test/java/org/apache/bsf/utils/TestScriptEngineFactory.java
index 658c93e..f3f52ac 100644
--- a/bsf-api/src/test/java/org/apache/bsf/utils/TestScriptEngineFactory.java
+++ b/bsf-api/src/test/java/org/apache/bsf/utils/TestScriptEngineFactory.java
@@ -13,7 +13,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- * 
+ *
  */
 
 package org.apache.bsf.utils;
@@ -29,32 +29,32 @@
  * Minimal ScriptEngineFactory for use in JUnit tests.
  */
 public class TestScriptEngineFactory implements ScriptEngineFactory {
-	
 
-	public ScriptEngine getScriptEngine() {
-		return new TestScriptEngine();
-	}
-	
-	public String getEngineName() {
-		return "TestScriptEngine";
-	}
-	public String getEngineVersion() {
-		return "1.0";
-	}
-	public List getExtensions() {
-		return Collections.unmodifiableList(Arrays.asList(new String[]{"tEst","teSt"}));
-	}
-	public String getLanguageName() {
-		return "TestScript";
-	}
-	public String getLanguageVersion() {
-		return "1.0";
-	}
-	public List getMimeTypes() {
-		return Collections.unmodifiableList(Arrays.asList(new String[]{"application/junit"}));
-	}
-	
-	public Object getParameter(String key) {
+
+    public ScriptEngine getScriptEngine() {
+        return new TestScriptEngine();
+    }
+
+    public String getEngineName() {
+        return "TestScriptEngine";
+    }
+    public String getEngineVersion() {
+        return "1.0";
+    }
+    public List getExtensions() {
+        return Collections.unmodifiableList(Arrays.asList(new String[]{"tEst","teSt"}));
+    }
+    public String getLanguageName() {
+        return "TestScript";
+    }
+    public String getLanguageVersion() {
+        return "1.0";
+    }
+    public List getMimeTypes() {
+        return Collections.unmodifiableList(Arrays.asList(new String[]{"application/junit"}));
+    }
+
+    public Object getParameter(String key) {
         if (key == ScriptEngine.ENGINE) {
             return getEngineName();
         } else if (key == ScriptEngine.ENGINE_VERSION) {
@@ -66,10 +66,10 @@
         } else if(key == ScriptEngine.ENGINE_VERSION) {
             return getLanguageVersion();
         } else if (key == "THREADING") {
-        	return "MULTITHREADED"; 
-        } 
+            return "MULTITHREADED";
+        }
         return null;
-	}
+    }
 
     public String getMethodCallSyntax(String obj, String method, String[] args) {
         // TODO Auto-generated method stub
diff --git a/bsf-engines/build.xml b/bsf-engines/build.xml
index 515a41c..9ab9069 100644
--- a/bsf-engines/build.xml
+++ b/bsf-engines/build.xml
@@ -76,16 +76,16 @@
 
         <jar destfile="${basedir}/target/bsf-engines.tmp.jar" basedir="${merged.engines.dir}">
         </jar>
-    	
-    	<!-- Delete work directory -->
+
+        <!-- Delete work directory -->
         <delete dir="${merged.engines.dir}" />
 
         <!-- Use Retroweaver to convert all the classes to JDK 1.4 -->
 
         <retroweaver inputjar="${basedir}/target/bsf-engines.tmp.jar" outputjar="${basedir}/target/bsf-engines-${bsf.version}.jar"/>
-    	
-    	<!-- Delete the temporary work file -->
-    	<delete file="${basedir}/target/bsf-engines.tmp.jar"/>
+
+        <!-- Delete the temporary work file -->
+        <delete file="${basedir}/target/bsf-engines.tmp.jar"/>
 
     </target>
 
diff --git a/bsf-engines/pom.xml b/bsf-engines/pom.xml
index dc68226..88e9cb9 100644
--- a/bsf-engines/pom.xml
+++ b/bsf-engines/pom.xml
@@ -7,15 +7,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     <parent>
@@ -89,27 +89,27 @@
                 </executions>
             </plugin>
             <plugin>
-		        <groupId>org.codehaus.mojo</groupId>
-		        <artifactId>build-helper-maven-plugin</artifactId>
-		        <version>1.5</version>
-		        <executions>
-		          <execution>
-		            <id>attach-artifacts</id>
-		            <phase>package</phase>
-		            <goals>
-		              <goal>attach-artifact</goal>
-		            </goals>
-		            <configuration>
-		              <artifacts>
-		                <artifact>
-		                  <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file>
-		                  <type>jar</type>
-		                </artifact>
-		              </artifacts>
-		            </configuration>
-		          </execution>
-		        </executions>
-	        </plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>1.5</version>
+                <executions>
+                  <execution>
+                    <id>attach-artifacts</id>
+                    <phase>package</phase>
+                    <goals>
+                      <goal>attach-artifact</goal>
+                    </goals>
+                    <configuration>
+                      <artifacts>
+                        <artifact>
+                          <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file>
+                          <type>jar</type>
+                        </artifact>
+                      </artifacts>
+                    </configuration>
+                  </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 
diff --git a/distribution/build.xml b/distribution/build.xml
index e769316..c3e7ef1 100644
--- a/distribution/build.xml
+++ b/distribution/build.xml
@@ -30,7 +30,7 @@
         <unzip src="${basedir}/../bsf-utils/target/bsf-utils-${bsf.version}.jar" dest="${basedir}/target/bsf-all" overwrite="false"/>
 
         <!-- Proper versions will be created in the META-INF directory -->
-    	<delete file="${basedir}/target/bsf-all/LICENSE"/>
+        <delete file="${basedir}/target/bsf-all/LICENSE"/>
         <delete file="${basedir}/target/bsf-all/NOTICE"/>
 
         <copy file="${basedir}/src/bin/LICENSE" tofile="${basedir}/target/bsf-all/META-INF/LICENSE" overwrite="true" />
@@ -40,18 +40,18 @@
         <jar destfile="${basedir}/target/bsf-all-${bsf.version}.jar" basedir="${basedir}/target/bsf-all">
             <manifest>
                 <attribute name="Main-Class" value="org.apache.bsf.Main"/>
-            	<attribute name="Extension-Name" value="org.apache.bsf"/>
-            	<attribute name="Implementation-Title" value="Apache BSF"/>
-            	<attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
-            	<attribute name="Implementation-Vendor-Id" value="org.apache"/>
-            	<attribute name="Implementation-Version" value="${bsf.version}"/>
-            	<attribute name="X-Compile-Source-JDK" value="${maven.compile.source}"/>
-            	<attribute name="X-Compile-Target-JDK" value="${maven.compile.target}"/>
+                <attribute name="Extension-Name" value="org.apache.bsf"/>
+                <attribute name="Implementation-Title" value="Apache BSF"/>
+                <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+                <attribute name="Implementation-Vendor-Id" value="org.apache"/>
+                <attribute name="Implementation-Version" value="${bsf.version}"/>
+                <attribute name="X-Compile-Source-JDK" value="${maven.compile.source}"/>
+                <attribute name="X-Compile-Target-JDK" value="${maven.compile.target}"/>
             </manifest>
-    	</jar>
-        
-    	<!-- Remove work directory -->
-    	<delete dir="${basedir}/target/bsf-all"/>
+        </jar>
+
+        <!-- Remove work directory -->
+        <delete dir="${basedir}/target/bsf-all"/>
 
         <!-- these are required for the mvn install command to work correctly -->
         <condition property="maven.suffix" value="">
diff --git a/testing/e4x-1.6R7-Axiom/src/test/java/org/apache/bsf/testing/e4x/E4xAxiomTestCase.java b/testing/e4x-1.6R7-Axiom/src/test/java/org/apache/bsf/testing/e4x/E4xAxiomTestCase.java
index 83ca970..68a4df1 100644
--- a/testing/e4x-1.6R7-Axiom/src/test/java/org/apache/bsf/testing/e4x/E4xAxiomTestCase.java
+++ b/testing/e4x-1.6R7-Axiom/src/test/java/org/apache/bsf/testing/e4x/E4xAxiomTestCase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.e4x;
 
@@ -41,50 +41,50 @@
  */
 public class E4xAxiomTestCase extends TestCase {
 
-	private XMLHelper xmlHelper;
-	private ScriptEngine engine;
-	
-	public void testInvokeFunctionInXML() throws ScriptException, XMLStreamException, FactoryConfigurationError, NoSuchMethodException {
-		engine.eval("function isXML(xml) { return typeof xml == 'xml'; }" );
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
+    private XMLHelper xmlHelper;
+    private ScriptEngine engine;
 
-		Object xmlIn = xmlHelper.toScriptXML(createOMElement("<a><b>petra</b></a>"));
+    public void testInvokeFunctionInXML() throws ScriptException, XMLStreamException, FactoryConfigurationError, NoSuchMethodException {
+        engine.eval("function isXML(xml) { return typeof xml == 'xml'; }" );
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
 
-		Object o = invocableScript.invokeFunction("isXML", new Object[]{xmlIn});
-		assertTrue(o instanceof Boolean);
-		assertTrue(((Boolean)o).booleanValue());
-	}
-	
-	public void testInvokeFunctionOutXML() throws ScriptException, XMLStreamException, FactoryConfigurationError, NoSuchMethodException {
-		engine.eval("function hello(xml) { return <foo>{xml.b}</foo>; }" );
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
+        Object xmlIn = xmlHelper.toScriptXML(createOMElement("<a><b>petra</b></a>"));
 
-		Object xmlIn = xmlHelper.toScriptXML(createOMElement("<a><b>petra</b></a>"));
+        Object o = invocableScript.invokeFunction("isXML", new Object[]{xmlIn});
+        assertTrue(o instanceof Boolean);
+        assertTrue(((Boolean)o).booleanValue());
+    }
 
-		Object xmlOut = invocableScript.invokeFunction("hello", new Object[]{xmlIn});
-		OMElement omOut = xmlHelper.toOMElement(xmlOut);
-		assertEquals("<foo><b>petra</b></foo>", omOut.toString());
-	}
+    public void testInvokeFunctionOutXML() throws ScriptException, XMLStreamException, FactoryConfigurationError, NoSuchMethodException {
+        engine.eval("function hello(xml) { return <foo>{xml.b}</foo>; }" );
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
 
-	public void testE4X() throws ScriptException, XMLStreamException, FactoryConfigurationError {
+        Object xmlIn = xmlHelper.toScriptXML(createOMElement("<a><b>petra</b></a>"));
+
+        Object xmlOut = invocableScript.invokeFunction("hello", new Object[]{xmlIn});
+        OMElement omOut = xmlHelper.toOMElement(xmlOut);
+        assertEquals("<foo><b>petra</b></foo>", omOut.toString());
+    }
+
+    public void testE4X() throws ScriptException, XMLStreamException, FactoryConfigurationError {
         Object o = xmlHelper.toScriptXML(createOMElement("<a><b>petra</b></a>"));
         OMElement om = xmlHelper.toOMElement(o);
         assertEquals("<a><b>petra</b></a>", om.toString());
-        
+
         Bindings bindings = engine.createBindings();
         bindings.put("o", o);
         Object x = engine.eval("typeof o", bindings);
         assertEquals("xml", x);
-	}
-	
-	protected OMElement createOMElement(String s) throws XMLStreamException, FactoryConfigurationError {
-		XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(s));
-		StAXOMBuilder builder = new StAXOMBuilder(parser);
-		OMElement om = builder.getDocumentElement();
-		return om;
-	}
+    }
+
+    protected OMElement createOMElement(String s) throws XMLStreamException, FactoryConfigurationError {
+        XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(s));
+        StAXOMBuilder builder = new StAXOMBuilder(parser);
+        OMElement om = builder.getDocumentElement();
+        return om;
+    }
 
     protected void setUp() {
         // The default Rhino implementation provided by Java 1.6 does not support E4X,
diff --git a/testing/e4x/src/test/java/org/apache/bsf/testing/e4x/HelloTestCase.java b/testing/e4x/src/test/java/org/apache/bsf/testing/e4x/HelloTestCase.java
index 17e3859..49df90f 100644
--- a/testing/e4x/src/test/java/org/apache/bsf/testing/e4x/HelloTestCase.java
+++ b/testing/e4x/src/test/java/org/apache/bsf/testing/e4x/HelloTestCase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.e4x;
 
@@ -41,29 +41,29 @@
  * Tests a basic JavaScript/E4X invocation
  */
 public class HelloTestCase extends TestCase {
-	
-//	private ScriptEngine engine;
-//	private XMLHelper xmlHelper;
 
-//	public void testInvokeFunction() throws ScriptException, XMLStreamException, FactoryConfigurationError {
-//		engine.eval("function isXML(xml) { return typeof xml.b == xml; }" );
-//		engine.eval("function hello(xml) { return <foo>{xml.b}</foo>; }" );
-//		assertTrue(engine instanceof Invocable);
-//		Invocable invocableScript = (Invocable) engine;
+//    private ScriptEngine engine;
+//    private XMLHelper xmlHelper;
+
+//    public void testInvokeFunction() throws ScriptException, XMLStreamException, FactoryConfigurationError {
+//        engine.eval("function isXML(xml) { return typeof xml.b == xml; }" );
+//        engine.eval("function hello(xml) { return <foo>{xml.b}</foo>; }" );
+//        assertTrue(engine instanceof Invocable);
+//        Invocable invocableScript = (Invocable) engine;
 //
-//		Object xmlIn = xmlHelper.toScriptXML(createOm("<a><b>petra</b></a>"));
+//        Object xmlIn = xmlHelper.toScriptXML(createOm("<a><b>petra</b></a>"));
 //
-//		Object o = invocableScript.invokeFunction("isXML", new Object[]{xmlIn});
-//		assertTrue(o instanceof Boolean);
-//		assertTrue(((Boolean)o).booleanValue());
+//        Object o = invocableScript.invokeFunction("isXML", new Object[]{xmlIn});
+//        assertTrue(o instanceof Boolean);
+//        assertTrue(((Boolean)o).booleanValue());
 //
-//		Object xmlOut = invocableScript.invokeFunction("hello", new Object[]{xmlIn});
+//        Object xmlOut = invocableScript.invokeFunction("hello", new Object[]{xmlIn});
 //
-//		OMElement omOut = xmlHelper.toOMElement(xmlOut);
-//		assertEquals("<foo><b>petra</b></foo>", omOut.toString());
-//	}
-	
-	public void testE4X() throws ScriptException, XMLStreamException, FactoryConfigurationError {
+//        OMElement omOut = xmlHelper.toOMElement(xmlOut);
+//        assertEquals("<foo><b>petra</b></foo>", omOut.toString());
+//    }
+
+    public void testE4X() throws ScriptException, XMLStreamException, FactoryConfigurationError {
         // The default Rhino implementation provided by Java 1.6 does not support E4X,
         // so use the unique name supported by the 1.6R7 version factory.
         ScriptEngine engine = new ScriptEngineManager().getEngineByName("rhino-nonjdk");
@@ -71,27 +71,27 @@
         Object o = convertor.toScriptXML(createOMElement("<a><b>petra</b></a>"));
         OMElement om = convertor.toOMElement(o);
         assertEquals("<a><b>petra</b></a>", om.toString());
-        
+
         Bindings bindings = engine.createBindings();
         bindings.put("o", o);
         Object x = engine.eval("typeof o", bindings);
         assertEquals("xml", x);
-	}
-	
-	protected OMElement createOMElement(String s) throws XMLStreamException, FactoryConfigurationError {
-		XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(s));
-		StAXOMBuilder builder = new StAXOMBuilder(parser);
-		OMElement om = builder.getDocumentElement();
-		return om;
-	}
+    }
+
+    protected OMElement createOMElement(String s) throws XMLStreamException, FactoryConfigurationError {
+        XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(s));
+        StAXOMBuilder builder = new StAXOMBuilder(parser);
+        OMElement om = builder.getDocumentElement();
+        return om;
+    }
 
     protected void setUp() {
-//		ScriptEngineManager manager = new ScriptEngineManager();
-//		engine = manager.getEngineByExtension("js");
-//		xmlHelper = XMLHelper.getArgHelper(engine);
+//        ScriptEngineManager manager = new ScriptEngineManager();
+//        engine = manager.getEngineByExtension("js");
+//        xmlHelper = XMLHelper.getArgHelper(engine);
         Context cx = Context.enter();
         try {
-        	ContextHelper.setTopCallScope(cx, cx.initStandardObjects());
+            ContextHelper.setTopCallScope(cx, cx.initStandardObjects());
         } finally {
             Context.exit();
         }
diff --git a/testing/groovy-1.1/src/test/java/org/apache/bsf/testing/groovy/Groovy11Testcase.java b/testing/groovy-1.1/src/test/java/org/apache/bsf/testing/groovy/Groovy11Testcase.java
index e4c53cc..a85de42 100644
--- a/testing/groovy-1.1/src/test/java/org/apache/bsf/testing/groovy/Groovy11Testcase.java
+++ b/testing/groovy-1.1/src/test/java/org/apache/bsf/testing/groovy/Groovy11Testcase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.groovy;
 
@@ -29,14 +29,14 @@
  * Simple hello testcase to verify basic Groovy functionality
  */
 public class Groovy11Testcase extends TestCase {
-	
-	public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByExtension("groovy");
-		engine.eval("def hello(name) { return 'Hello ' + name }" );
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
-		assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
-	}
+
+    public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByExtension("groovy");
+        engine.eval("def hello(name) { return 'Hello ' + name }" );
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
+        assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
+    }
 
 }
diff --git a/testing/groovy/src/test/java/org/apache/bsf/testing/groovy/GroovyTestcase.java b/testing/groovy/src/test/java/org/apache/bsf/testing/groovy/GroovyTestcase.java
index 27f12b1..78b6649 100644
--- a/testing/groovy/src/test/java/org/apache/bsf/testing/groovy/GroovyTestcase.java
+++ b/testing/groovy/src/test/java/org/apache/bsf/testing/groovy/GroovyTestcase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.groovy;
 
@@ -29,14 +29,14 @@
  * Simple hello testcase to verify basic Groovy functionality
  */
 public class GroovyTestcase extends TestCase {
-	
-	public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByExtension("groovy");
-		engine.eval("def hello(name) { return 'Hello ' + name }" );
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
-		assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
-	}
+
+    public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByExtension("groovy");
+        engine.eval("def hello(name) { return 'Hello ' + name }" );
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
+        assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
+    }
 
 }
diff --git a/testing/javascript/src/test/java/org/apache/bsf/testing/javascript/JavaScriptTestcase.java b/testing/javascript/src/test/java/org/apache/bsf/testing/javascript/JavaScriptTestcase.java
index 7a6ba9b..50f5fb5 100644
--- a/testing/javascript/src/test/java/org/apache/bsf/testing/javascript/JavaScriptTestcase.java
+++ b/testing/javascript/src/test/java/org/apache/bsf/testing/javascript/JavaScriptTestcase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.javascript;
 
@@ -27,32 +27,32 @@
 
 
 public class JavaScriptTestcase extends TestCase {
-	
-	public void testEval() throws ScriptException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByExtension("js");
-		assertTrue(((Boolean)engine.eval("true;")).booleanValue());
-		assertFalse(((Boolean)engine.eval("false;")).booleanValue());
-	}
 
-	public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByExtension("js");
-		engine.eval("function hello(s) { return 'Hello ' + s; }" );
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
-		assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
-	}
+    public void testEval() throws ScriptException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByExtension("js");
+        assertTrue(((Boolean)engine.eval("true;")).booleanValue());
+        assertFalse(((Boolean)engine.eval("false;")).booleanValue());
+    }
 
-	public void testInvokeMethod() throws ScriptException, NoSuchMethodException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByExtension("js");
-		engine.eval("function hello(s) { return 'Hello ' + s; }" );
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
-		
-		Object thiz = engine.eval("this;");
-		assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"}));
-	}
+    public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByExtension("js");
+        engine.eval("function hello(s) { return 'Hello ' + s; }" );
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
+        assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
+    }
+
+    public void testInvokeMethod() throws ScriptException, NoSuchMethodException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByExtension("js");
+        engine.eval("function hello(s) { return 'Hello ' + s; }" );
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
+
+        Object thiz = engine.eval("this;");
+        assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"}));
+    }
 
 }
diff --git a/testing/jexl/src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java b/testing/jexl/src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java
index d522461..413f796 100644
--- a/testing/jexl/src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java
+++ b/testing/jexl/src/test/java/org/apache/bsf/testing/jexl/JexlTestCase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.jexl;
 
@@ -30,12 +30,12 @@
  */
 public class JexlTestCase extends TestCase {
 
-	public void testExpression() throws ScriptException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByName("jexl");
-		assertNotNull("Should find an engine",engine);
+    public void testExpression() throws ScriptException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByName("jexl");
+        assertNotNull("Should find an engine",engine);
         assertTrue("engine should be compilable",engine instanceof Compilable);
-		assertEquals("Should be 579",new Integer(579),engine.eval("123+456;"));
-	}
+        assertEquals("Should be 579",new Integer(579),engine.eval("123+456;"));
+    }
 
 }
diff --git a/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/JRuby112Testcase.java b/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/JRuby112Testcase.java
index 96ec909..6739163 100644
--- a/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/JRuby112Testcase.java
+++ b/testing/jruby-1.1.2/src/test/java/org/apache/bsf/testing/javascript/JRuby112Testcase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.javascript;
 
@@ -27,32 +27,32 @@
 
 
 public class JRuby112Testcase extends TestCase {
-	
-//	public void testEval() throws ScriptException {
-//		ScriptEngineManager manager = new ScriptEngineManager();
-//		ScriptEngine engine = manager.getEngineByExtension("js");
-//		assertTrue(((Boolean)engine.eval("true;")).booleanValue());
-//		assertFalse(((Boolean)engine.eval("false;")).booleanValue());
-//	}
 
-	public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByExtension("rb");
-		engine.eval("def hello(s)\n   return \"Hello \" + s\nend" );
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
-		assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
-	}
+//    public void testEval() throws ScriptException {
+//        ScriptEngineManager manager = new ScriptEngineManager();
+//        ScriptEngine engine = manager.getEngineByExtension("js");
+//        assertTrue(((Boolean)engine.eval("true;")).booleanValue());
+//        assertFalse(((Boolean)engine.eval("false;")).booleanValue());
+//    }
 
-//	public void testInvokeMethod() throws ScriptException {
-//		ScriptEngineManager manager = new ScriptEngineManager();
-//		ScriptEngine engine = manager.getEngineByExtension("js");
-//		engine.eval("function hello(s) { return 'Hello ' + s; }" );
-//		assertTrue(engine instanceof Invocable);
-//		Invocable invocableScript = (Invocable) engine;
-//		
-//		Object thiz = engine.eval("this;");
-//		assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"}));
-//	}
+    public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByExtension("rb");
+        engine.eval("def hello(s)\n   return \"Hello \" + s\nend" );
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
+        assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
+    }
+
+//    public void testInvokeMethod() throws ScriptException {
+//        ScriptEngineManager manager = new ScriptEngineManager();
+//        ScriptEngine engine = manager.getEngineByExtension("js");
+//        engine.eval("function hello(s) { return 'Hello ' + s; }" );
+//        assertTrue(engine instanceof Invocable);
+//        Invocable invocableScript = (Invocable) engine;
+//
+//        Object thiz = engine.eval("this;");
+//        assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"}));
+//    }
 
 }
diff --git a/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/JRuby120Testcase.java b/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/JRuby120Testcase.java
index 2e5aecc..ab6a086 100644
--- a/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/JRuby120Testcase.java
+++ b/testing/jruby-1.2.0/src/test/java/org/apache/bsf/testing/javascript/JRuby120Testcase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.javascript;
 
@@ -27,32 +27,32 @@
 
 
 public class JRuby120Testcase extends TestCase {
-	
-//	public void testEval() throws ScriptException {
-//		ScriptEngineManager manager = new ScriptEngineManager();
-//		ScriptEngine engine = manager.getEngineByExtension("js");
-//		assertTrue(((Boolean)engine.eval("true;")).booleanValue());
-//		assertFalse(((Boolean)engine.eval("false;")).booleanValue());
-//	}
 
-	public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByExtension("rb");
-		engine.eval("def hello(s)\n   return \"Hello \" + s\nend" );
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
-		assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
-	}
+//    public void testEval() throws ScriptException {
+//        ScriptEngineManager manager = new ScriptEngineManager();
+//        ScriptEngine engine = manager.getEngineByExtension("js");
+//        assertTrue(((Boolean)engine.eval("true;")).booleanValue());
+//        assertFalse(((Boolean)engine.eval("false;")).booleanValue());
+//    }
 
-//	public void testInvokeMethod() throws ScriptException {
-//		ScriptEngineManager manager = new ScriptEngineManager();
-//		ScriptEngine engine = manager.getEngineByExtension("js");
-//		engine.eval("function hello(s) { return 'Hello ' + s; }" );
-//		assertTrue(engine instanceof Invocable);
-//		Invocable invocableScript = (Invocable) engine;
-//		
-//		Object thiz = engine.eval("this;");
-//		assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"}));
-//	}
+    public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByExtension("rb");
+        engine.eval("def hello(s)\n   return \"Hello \" + s\nend" );
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
+        assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
+    }
+
+//    public void testInvokeMethod() throws ScriptException {
+//        ScriptEngineManager manager = new ScriptEngineManager();
+//        ScriptEngine engine = manager.getEngineByExtension("js");
+//        engine.eval("function hello(s) { return 'Hello ' + s; }" );
+//        assertTrue(engine instanceof Invocable);
+//        Invocable invocableScript = (Invocable) engine;
+//
+//        Object thiz = engine.eval("this;");
+//        assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"}));
+//    }
 
 }
diff --git a/testing/python/src/test/java/org/apache/bsf/testing/python/HelloTestCase.java b/testing/python/src/test/java/org/apache/bsf/testing/python/HelloTestCase.java
index 79290a7..71d606f 100644
--- a/testing/python/src/test/java/org/apache/bsf/testing/python/HelloTestCase.java
+++ b/testing/python/src/test/java/org/apache/bsf/testing/python/HelloTestCase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.python;
 
@@ -30,13 +30,13 @@
  */
 public class HelloTestCase extends TestCase {
 
-	public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByExtension("py");
-		engine.eval("def hello(name):\n return 'Hello ' + name");
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
-		assertEquals("Hello Monty", invocableScript.invokeFunction("hello", new Object[] { "Monty" }));
-	}
+    public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByExtension("py");
+        engine.eval("def hello(name):\n return 'Hello ' + name");
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
+        assertEquals("Hello Monty", invocableScript.invokeFunction("hello", new Object[] { "Monty" }));
+    }
 
 }
diff --git a/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java b/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java
index b1dcf71..adcb1ee 100644
--- a/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java
+++ b/testing/ruby/src/test/java/org/apache/bsf/testing/javascript/RubyTestcase.java
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.bsf.testing.javascript;
 
@@ -27,33 +27,33 @@
 
 
 public class RubyTestcase extends TestCase {
-	
-//	public void testEval() throws ScriptException {
-//		ScriptEngineManager manager = new ScriptEngineManager();
-//		ScriptEngine engine = manager.getEngineByExtension("js");
-//		assertTrue(((Boolean)engine.eval("true;")).booleanValue());
-//		assertFalse(((Boolean)engine.eval("false;")).booleanValue());
-//	}
 
-	public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
-		ScriptEngineManager manager = new ScriptEngineManager();
-		ScriptEngine engine = manager.getEngineByExtension("rb");
-		assertNotNull("Engine should not be null",engine);
-		engine.eval("def hello(s)\n   return \"Hello \" + s\nend" );
-		assertTrue(engine instanceof Invocable);
-		Invocable invocableScript = (Invocable) engine;
-		assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
-	}
+//    public void testEval() throws ScriptException {
+//        ScriptEngineManager manager = new ScriptEngineManager();
+//        ScriptEngine engine = manager.getEngineByExtension("js");
+//        assertTrue(((Boolean)engine.eval("true;")).booleanValue());
+//        assertFalse(((Boolean)engine.eval("false;")).booleanValue());
+//    }
 
-//	public void testInvokeMethod() throws ScriptException {
-//		ScriptEngineManager manager = new ScriptEngineManager();
-//		ScriptEngine engine = manager.getEngineByExtension("js");
-//		engine.eval("function hello(s) { return 'Hello ' + s; }" );
-//		assertTrue(engine instanceof Invocable);
-//		Invocable invocableScript = (Invocable) engine;
-//		
-//		Object thiz = engine.eval("this;");
-//		assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"}));
-//	}
+    public void testInvokeFunction() throws ScriptException, NoSuchMethodException {
+        ScriptEngineManager manager = new ScriptEngineManager();
+        ScriptEngine engine = manager.getEngineByExtension("rb");
+        assertNotNull("Engine should not be null",engine);
+        engine.eval("def hello(s)\n   return \"Hello \" + s\nend" );
+        assertTrue(engine instanceof Invocable);
+        Invocable invocableScript = (Invocable) engine;
+        assertEquals("Hello petra", invocableScript.invokeFunction("hello", new Object[]{"petra"}));
+    }
+
+//    public void testInvokeMethod() throws ScriptException {
+//        ScriptEngineManager manager = new ScriptEngineManager();
+//        ScriptEngine engine = manager.getEngineByExtension("js");
+//        engine.eval("function hello(s) { return 'Hello ' + s; }" );
+//        assertTrue(engine instanceof Invocable);
+//        Invocable invocableScript = (Invocable) engine;
+//
+//        Object thiz = engine.eval("this;");
+//        assertEquals("Hello petra", invocableScript.invokeMethod(thiz, "hello", new Object[]{"petra"}));
+//    }
 
 }