Class ScriptContextTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.randomnoun.common.jessop.ScriptContextTest
- All Implemented Interfaces:
junit.framework.Test
This unit test checks whether Bindings set on ScriptContexts are available to the target language within
jessop scripts
- Author:
- knoxg
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid_testScript(String input) static StringescapeHtml(String string) Returns the HTML-escaped form of a string.getBindings(ScriptEngine engine) voidsetUp()voidvoidvoidvoidvoidvoidvoidMethods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
-
Field Details
-
JAVASCRIPT_COUNTING_SCRIPT
- See Also:
-
LUA_COUNTING_SCRIPT
- See Also:
-
PYTHON_COUNTING_SCRIPT_1
- See Also:
-
PYTHON_COUNTING_SCRIPT_2
- See Also:
-
JAVA_COUNTING_SCRIPT
- See Also:
-
RUBY_COUNTING_SCRIPT_GLOBAL
- See Also:
-
LISP_COUNTING_SCRIPT
- See Also:
-
-
Constructor Details
-
ScriptContextTest
public ScriptContextTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classjunit.framework.TestCase
-
escapeHtml
Returns the HTML-escaped form of a string. The&,<,>, and"characters are converted to&,<,>, and"respectively.- Parameters:
string- the string to convert- Returns:
- the HTML-escaped form of the string
-
getBindings
-
_testScript
- Throws:
ScriptException
-
testJessopCompile
- Throws:
ScriptException
-
testJessopJavascript
- Throws:
ScriptException
-
testJessopLua
- Throws:
ScriptException
-
testJessopPython1
- Throws:
ScriptException
-
testJessopPython2
- Throws:
ScriptException
-
testJessopBeanshell
- Throws:
ScriptException
-
testJessopLisp
- Throws:
ScriptException
-