List of usage examples for org.apache.commons.lang3 StringUtils StringUtils
public StringUtils()
StringUtils instances should NOT be constructed in standard programming.
From source file:org.paxml.el.StringUtilsFactory.java
@Override public Object getUtilFunctions(Context context) { return new StringUtils(); }
From source file:org.xwiki.livetable.LiveTableResultsTest.java
@Before @SuppressWarnings("deprecation") public void setUp() throws Exception { setOutputSyntax(Syntax.PLAIN_1_0);/*from www .j a v a 2 s . c o m*/ request.put("outputSyntax", "plain"); request.put("xpage", "plain"); oldcore.getXWikiContext().setAction("get"); queryService = mock(QueryManagerScriptService.class); oldcore.getMocker().registerComponent(ScriptService.class, "query", queryService); modelService = mock(ModelScriptService.class); oldcore.getMocker().registerComponent(ScriptService.class, "model", modelService); TagPluginApi tagPluginApi = mock(TagPluginApi.class); doReturn(tagPluginApi).when(oldcore.getSpyXWiki()).getPluginApi(eq("tag"), any(XWikiContext.class)); registerVelocityTool("stringtool", new StringUtils()); registerVelocityTool("mathtool", new MathTool()); registerVelocityTool("regextool", new RegexTool()); registerVelocityTool("numbertool", new NumberTool()); loadPage(new DocumentReference("xwiki", "XWiki", "LiveTableResultsMacros")); }