org.codehaus.groovy.bsf
Class BSFTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.groovy.bsf.BSFTest
All Implemented Interfaces:
junit.framework.Test

public class BSFTest
extends junit.framework.TestCase

Tests the BSF integration


Field Summary
protected  org.apache.bsf.BSFManager manager
           
 
Constructor Summary
BSFTest()
           
 
Method Summary
protected  void execScript(java.lang.String fileName)
           
protected  void setUp()
           
 void testApply()
           
 void testApplyWithClosure()
           
 void testBracketName()
           
 void testBsfVariables()
           
 void testCall()
           
 void testCompileErrorWithEval()
           
 void testCompileErrorWithExec()
           
 void testDeclaredVariables()
           
 void testEval()
           
 void testExec()
           
 void testExecBug()
           
 void testExecFile()
           
 void testInvalidName()
           
 void testNotFoundVariables()
           
 void testRegisteredVariables()
           
 void testTwoEvalsWithSameName()
           
 void testUndeclaredVariables()
           
 void testUnregisteredVariables()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

manager

protected org.apache.bsf.BSFManager manager
Constructor Detail

BSFTest

public BSFTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testInvalidName

public void testInvalidName()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testCompileErrorWithExec

public void testCompileErrorWithExec()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testCompileErrorWithEval

public void testCompileErrorWithEval()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testExec

public void testExec()
              throws java.lang.Exception
Throws:
java.lang.Exception

testApplyWithClosure

public void testApplyWithClosure()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testApply

public void testApply()
               throws java.lang.Exception
Throws:
java.lang.Exception

testBracketName

public void testBracketName()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testEval

public void testEval()
              throws java.lang.Exception
Throws:
java.lang.Exception

testTwoEvalsWithSameName

public void testTwoEvalsWithSameName()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testExecBug

public void testExecBug()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testBsfVariables

public void testBsfVariables()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testNotFoundVariables

public void testNotFoundVariables()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testRegisteredVariables

public void testRegisteredVariables()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testUnregisteredVariables

public void testUnregisteredVariables()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testDeclaredVariables

public void testDeclaredVariables()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testUndeclaredVariables

public void testUndeclaredVariables()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testCall

public void testCall()
              throws java.lang.Exception
Throws:
java.lang.Exception

testExecFile

public void testExecFile()
                  throws java.lang.Exception
Throws:
java.lang.Exception

execScript

protected void execScript(java.lang.String fileName)
                   throws java.lang.Exception
Throws:
java.lang.Exception