List of usage examples for org.apache.commons.lang StringUtils EMPTY
String EMPTY
To view the source code for org.apache.commons.lang StringUtils EMPTY.
Click Source Link
""
. From source file:jenkins.plugins.coverity.CoverityTool.CovCaptureCommandTest.java
@Test public void addTAdvisorConfigurationTest() throws IOException, InterruptedException { TaOptionBlock taOptionBlock = new TaOptionBlockBuilder().withJavaOptionBlock(true) .withJavaCoverageTool("Jacoco").withJunitFramework(true).withCustomTestCommand("CustomTestCommand") .build();/*ww w . j a va 2s. c o m*/ CoverityPublisher publisher = new CoverityPublisherBuilder().withTaOptionBlock(taOptionBlock).build(); Command covCaptureCommand = new CovCaptureCommand(build, launcher, listener, publisher, StringUtils.EMPTY, envVars); setExpectedArguments(new String[] { "cov-capture", "--dir", "TestDir", "--java-coverage", "Jacoco", "--java-test", "junit", "CustomTestCommand" }); covCaptureCommand.runCommand(); consoleLogger .verifyLastMessage("[Coverity] cov-capture command line arguments: " + actualArguments.toString()); }
From source file:info.magnolia.cms.taglibs.util.StrToObj.java
/** * @see javax.servlet.jsp.tagext.Tag#doEndTag() *//*ww w .j a v a 2s . c o m*/ public int doEndTag() { String str = getBodyContent().getString(); if (StringUtils.isNotEmpty(str)) { String[] obj = str.split(StringUtils.defaultString(this.delims, "\n")); //$NON-NLS-1$ pageContext.setAttribute(this.var, obj, PageContext.PAGE_SCOPE); } else { pageContext.setAttribute(this.var, StringUtils.EMPTY, PageContext.PAGE_SCOPE); } return EVAL_PAGE; }
From source file:com.amalto.core.history.action.NoOpAction.java
public String getUserName() { return StringUtils.EMPTY; }
From source file:com.sugaronrest.SugarRestResponse.java
/** * Initializes a new instance of the SugarRestResponse class. *//*from w ww . j av a 2s. co m*/ public SugarRestResponse() { this.setError(new ErrorResponse()); this.setJsonRawRequest(StringUtils.EMPTY); this.setJsonRawResponse(StringUtils.EMPTY); this.setJData(StringUtils.EMPTY); this.setStatusCode(HttpStatus.SC_OK); }
From source file:jenkins.plugins.coverity.CoverityTool.CovBuildCompileCommandTest.java
@Test public void commandForCompileSourcesTest_WithTaOptions() throws IOException, InterruptedException { InvocationAssistance invocationAssistance = new InvocationAssistanceBuilder().build(); TaOptionBlock taOptionBlock = new TaOptionBlockBuilder().withJavaOptionBlock(true) .withJavaCoverageTool("Jacoco").withJunitFramework(true).build(); CoverityPublisher publisher = new CoverityPublisherBuilder().withInvocationAssistance(invocationAssistance) .withTaOptionBlock(taOptionBlock).build(); Command covBuildCommand = new CovBuildCompileCommand(build, launcher, listener, publisher, StringUtils.EMPTY, envVars); setExpectedArguments(new String[] { "cov-build", "--dir", "$COV_IDIR", "--java-coverage", "Jacoco", "--java-test", "junit" }); covBuildCommand.runCommand();/*from www .j av a 2s . c o m*/ consoleLogger.verifyLastMessage( "[Coverity] cov-build command line arguments for compiled sources: " + actualArguments.toString()); }
From source file:net.sourceforge.fenixedu.domain.EmptyGrade.java
@Override public String exportAsString() { return StringUtils.EMPTY; }
From source file:fr.paris.lutece.plugins.rss.web.FeedUtil.java
/** * Gets an XML for the given resource./*from w ww .jav a 2s .co m*/ * @param resource resource * @param strFeedType feed type * @param strEncoding encoding * @param nMaxItems max items * @return the xml generated */ public static String getFeed(IFeedResource resource, String strFeedType, String strEncoding, int nMaxItems) { if (resource.getItems().isEmpty()) { return StringUtils.EMPTY; } // WireFeed does not contain enough data, but can be passed for output generation. WireFeed wireFeed = FeedTypeManager.getManager().getWireFeed(strFeedType, resource, strEncoding, nMaxItems); WireFeedOutput output = new WireFeedOutput(); String strXML = StringUtils.EMPTY; try { strXML = output.outputString(wireFeed); } catch (IllegalArgumentException e) { AppLogService.error(e.getMessage(), e); } catch (FeedException e) { AppLogService.error(e.getMessage(), e); } return strXML; }
From source file:com.mmj.app.common.file.ExcelUtils.java
/** * excelrow?T??title?T//from w w w . ja va 2s . c om * * @param response * @param list * @param xlsName * @param headTitle * @return */ public static <T> HSSFWorkbook defBuildExcel(List<T> list, String xlsName, String... headTitle) { return buildExcel(list, xlsName, new IExcel<T>() { @Override public void initHSSRow(List<T> list, HSSFSheet sheet) { HSSFCell cell; for (int j = 0; j < list.size(); j++) { T row = list.get(j); if (row == null) { continue; } HSSFRow hssrow = sheet.createRow(j + 1); Map<String, String> fieldValMap = getFieldValueMap(row); int i = 0; for (Entry<String, String> entry : fieldValMap.entrySet()) { Object value = entry.getValue(); cell = hssrow.createCell(i++); cell.setCellType(HSSFCell.CELL_TYPE_STRING); cell.setCellValue(value == null ? StringUtils.EMPTY : value + StringUtils.EMPTY); } } } }, headTitle); }
From source file:com.prowidesoftware.swift.model.MxId.java
public MxId() { this.businessProcess = null; this.functionality = StringUtils.EMPTY; this.variant = StringUtils.EMPTY; this.version = StringUtils.EMPTY; }
From source file:jenkins.plugins.coverity.CoverityTool.CovAnalyzeCommandTest.java
@Test public void addMisraConfigurationTest() throws IOException, InterruptedException { InvocationAssistance invocationAssistance = new InvocationAssistanceBuilder() .withMisraConfigFile("misraConfigFile").build(); CoverityPublisher publisher = new CoverityPublisherBuilder().withInvocationAssistance(invocationAssistance) .build();/*from w ww . j a v a 2 s .c o m*/ Command covAnalyzeCommand = new CovAnalyzeCommand(build, launcher, listener, publisher, StringUtils.EMPTY, envVars); setExpectedArguments( new String[] { "cov-analyze", "--dir", "TestDir", "--misra-config", "misraConfigFile" }); covAnalyzeCommand.runCommand(); consoleLogger .verifyLastMessage("[Coverity] cov-analyze command line arguments: " + actualArguments.toString()); }