blob: c48ecf47fc84a03af1a3cee6ac7aa73fcd40b89d [file] [log] [blame]
package org.apache.struts2.uelplugin;
import java.lang.reflect.InvocationTargetException;
import org.apache.struts2.views.util.ContextUtil;
public class BuiltinFunctionsTest extends AbstractUELTest {
public void testGetText() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
TestAction action = new TestAction();
stack.push(action);
stack.getContext().put(ContextUtil.ACTION, action);
assertEquals("This is the key!", stack.findValue("${getText('key')}"));
}
}