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:com.mmj.app.web.webuser.MMJWebUserBuilder.java
/** * ?cookie.(??Cookie//ww w. j a v a 2 s. c o m * * @param cookieManager * @param date * @param userName */ public static void loginSuccess(CookieManager cookieManager, String name, String nick, Long mid, Integer type) { loginOut(cookieManager); cookieManager.set(CookieKeyEnum.member_name, name); cookieManager.set(CookieKeyEnum.member_nickname, nick); cookieManager.set(CookieKeyEnum.member_id, StringUtils.EMPTY + mid); cookieManager.set(CookieKeyEnum.member_type, StringUtils.EMPTY + type); cookieManager.set(CookieKeyEnum.last_login_time, StringUtils.EMPTY + System.currentTimeMillis()); }
From source file:edu.northwestern.bioinformatics.studycalendar.web.template.ImportActivitiesCommandTest.java
public void testValidate() throws Exception { expect(file.isEmpty()).andReturn(true); replayMocks();/*from w w w .j av a 2 s . c o m*/ BindException errors = new BindException(file, StringUtils.EMPTY); command.validate(errors); verifyMocks(); assertTrue(errors.hasErrors()); assertEquals("Wrong error count", 1, errors.getErrorCount()); assertEquals("Wrong error code", "error.activities.file.not.specified", errors.getGlobalError().getCode()); }
From source file:jenkins.plugins.coverity.CoverityTool.CovEmitJavaCommandTest.java
@Test public void addJavaWarFilesTest() throws IOException, InterruptedException { List<JavaWarFile> javaWarFiles = new ArrayList<>(); javaWarFiles.add(new JavaWarFile("webapp1.war")); javaWarFiles.add(new JavaWarFile("webapp2.war")); InvocationAssistance invocationAssistance = new InvocationAssistanceBuilder().withJavaWarFiles(javaWarFiles) .build();/*from w ww . jav a2 s . c om*/ CoverityPublisher publisher = new CoverityPublisherBuilder().withInvocationAssistance(invocationAssistance) .build(); Command covEmitJavaCommand = new CovEmitJavaCommand(build, launcher, listener, publisher, StringUtils.EMPTY, envVars, false); setExpectedArguments(new String[] { "cov-emit-java", "--dir", "TestDir", "--webapp-archive", "webapp1.war", "--webapp-archive", "webapp2.war" }); covEmitJavaCommand.runCommand(); consoleLogger.verifyLastMessage( "[Coverity] cov-emit-java command line arguments: " + actualArguments.toString()); }
From source file:com.microsoft.alm.plugin.external.commands.AddCommand.java
/** * Returns the files that were added/*from ww w . j a v a2 s .c o m*/ * <p/> * Output example: * /Users/leantk/tfvc-tfs/tfsTest_01/.idea: * misc.xml * modules.xml * <p/> * /Users/leantk/tfvc-tfs/tfsTest_01: * TestAdd.txt */ @Override public List<String> parseOutput(final String stdout, final String stderr) { super.throwIfError(stderr); final List<String> filesAdded = new ArrayList<String>(); final String[] output = getLines(stdout); // parse output for directory paths and file names to combine String path = StringUtils.EMPTY; for (final String line : output) { if (isFilePath(line)) { path = line; } else if (StringUtils.isNotEmpty(line)) { filesAdded.add(getFilePath(path, line, "")); } } return filesAdded; }
From source file:com.stevpet.sonar.plugins.dotnet.mscover.seams.resources.NullResource.java
public String getLongName() { return StringUtils.EMPTY; }
From source file:com.zb.app.web.webuser.ZuobianWebUserBuilder.java
/** * ?cookie.(??Cookie/* w w w . j ava 2 s. c om*/ * * @param cookieManager * @param date * @param userName */ public static void loginSuccess(CookieManager cookieManager, String userName, Long mid, Long cid, Integer type) { loginOut(cookieManager); cookieManager.set(CookieKeyEnum.member_nickname, userName); cookieManager.set(CookieKeyEnum.member_id, StringUtils.EMPTY + mid); cookieManager.set(CookieKeyEnum.member_company_id, StringUtils.EMPTY + cid); cookieManager.set(CookieKeyEnum.member_type, StringUtils.EMPTY + type); cookieManager.set(CookieKeyEnum.last_login_time, StringUtils.EMPTY + System.currentTimeMillis()); }
From source file:com.atlassian.jira.rest.client.TestUtil.java
public static void assertErrorCode(int errorCode, Runnable runnable) { assertErrorCode(errorCode, StringUtils.EMPTY, runnable); }
From source file:it.openutils.mgnlaws.magnolia.datastore.CachedS3DataRecord.java
public CachedS3DataRecord() { super(new DataIdentifier(StringUtils.EMPTY)); }
From source file:cn.cuizuoli.gotour.model.Common.java
public String getModifyTimeFormat() { if (modifyTime != null) { return new DateTime(modifyTime.getTime()).toString(DATETIME_FORMATTER); }/*from w ww. j a v a2 s . c o m*/ return StringUtils.EMPTY; }
From source file:com.amalto.core.save.context.AutoCommit.java
@Override public String getBeforeSavingMessage() { return StringUtils.EMPTY; }