Class EvaluableScriptTest
- java.lang.Object
-
- net.shibboleth.utilities.java.support.scripting.EvaluableScriptTest
-
public class EvaluableScriptTest extends Object
Tests forEvaluableScript.
-
-
Field Summary
Fields Modifier and Type Field Description private static StringSCRIPT_LANGUAGEprivate static StringTEST_SIMPLE_SCRIPTA simple script to set a constant value.private FiletheFile
-
Constructor Summary
Constructors Constructor Description EvaluableScriptTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteFile()private <T> TnullValue()private ResourceresourceFor(InputStream is)private EvaluableScripttestEvaluableScript(String language, File script)private EvaluableScripttestEvaluableScript(String language, InputStream script)private EvaluableScripttestEvaluableScript(String language, String script)private EvaluableScripttestEvaluableScript(String language, Resource script)voidtestEvaluableScriptDeprecated()voidtestEvaluableScriptNonDeprecated()
-
-
-
Field Detail
-
SCRIPT_LANGUAGE
@Nonnull @NotEmpty private static final String SCRIPT_LANGUAGE
- See Also:
- Constant Field Values
-
TEST_SIMPLE_SCRIPT
@Nonnull @NotEmpty private static final String TEST_SIMPLE_SCRIPT
A simple script to set a constant value.- See Also:
- Constant Field Values
-
theFile
private File theFile
-
-
Method Detail
-
deleteFile
@AfterClass public void deleteFile()
-
testEvaluableScriptDeprecated
public void testEvaluableScriptDeprecated() throws ScriptException, IOException- Throws:
ScriptExceptionIOException
-
testEvaluableScript
private EvaluableScript testEvaluableScript(String language, String script) throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
testEvaluableScript
private EvaluableScript testEvaluableScript(String language, File script) throws ComponentInitializationException, IOException
-
testEvaluableScript
private EvaluableScript testEvaluableScript(String language, InputStream script) throws ComponentInitializationException, IOException
-
testEvaluableScript
private EvaluableScript testEvaluableScript(String language, Resource script) throws ComponentInitializationException, IOException
-
testEvaluableScriptNonDeprecated
public void testEvaluableScriptNonDeprecated() throws ScriptException, IOException, ComponentInitializationException
-
resourceFor
private Resource resourceFor(InputStream is)
-
nullValue
private <T> T nullValue()
-
-