Example usage for org.apache.commons.lang3 StringUtils StringUtils

List of usage examples for org.apache.commons.lang3 StringUtils StringUtils

Introduction

In this page you can find the example usage for org.apache.commons.lang3 StringUtils StringUtils.

Prototype

public StringUtils() 

Source Link

Document

StringUtils instances should NOT be constructed in standard programming.

Usage

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"));
}