Author: sebb Date: Wed Mar 25 00:34:51 2009 New Revision: 758102 URL: http://svn.apache.org/viewvc?rev=758102&view=rev Log: Detab
Modified: jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/AbstractScriptEngineTest.java jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/ScriptExceptionTest.java Modified: jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/AbstractScriptEngineTest.java URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/AbstractScriptEngineTest.java?rev=758102&r1=758101&r2=758102&view=diff ============================================================================== --- jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/AbstractScriptEngineTest.java (original) +++ jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/AbstractScriptEngineTest.java Wed Mar 25 00:34:51 2009 @@ -61,11 +61,11 @@ public ScriptEngineFactory getFactory() { return null; } - + } - + private final ScriptEngine engine = new ScriptEngine(); - + public void testCtor1(){ ScriptContext b = engine.getContext(); assertNotNull(b); @@ -80,7 +80,7 @@ Bindings b = new SimpleBindings(); new ScriptEngine(b); // should be OK } - + public void testSetBindings(){ try { engine.setBindings(null, -123); @@ -111,7 +111,7 @@ engine.setBindings(new SimpleBindings(), ScriptContext.GLOBAL_SCOPE); assertNotNull(engine.getBindings(ScriptContext.GLOBAL_SCOPE)); } - + public void testContext(){ final ScriptContext initial = engine.getContext(); assertNotNull(initial); @@ -122,7 +122,7 @@ assertNotNull(updated); assertSame(updated, newContext); } - + public void testgetScriptContext(){ try { engine.getScriptContext(null); Modified: jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/ScriptExceptionTest.java URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/ScriptExceptionTest.java?rev=758102&r1=758101&r2=758102&view=diff ============================================================================== --- jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/ScriptExceptionTest.java (original) +++ jakarta/bsf/trunk/bsf3/bsf-api/src/test/java/org/apache/bsf/ScriptExceptionTest.java Wed Mar 25 00:34:51 2009 @@ -34,7 +34,7 @@ assertNull(e.getFileName()); // this is not defined by the spec. or the Java 6 API } } - + public void testException2(){ ScriptException ex = new ScriptException(new Exception()); try { @@ -45,7 +45,7 @@ assertNull(e.getFileName()); // this is not defined by the spec. or the Java 6 API } } - + public void testException3(){ final String fileName = "file"; ScriptException ex = new ScriptException("test", fileName, 10); @@ -61,7 +61,7 @@ assertFalse(-1 == message.indexOf(""+10)); } } - + public void testException4(){ final String fileName = "file"; ScriptException ex = new ScriptException("test", fileName, 10, 30); --------------------------------------------------------------------- To unsubscribe, e-mail: bsf-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: bsf-dev-h...@jakarta.apache.org