List of usage examples for org.apache.commons.lang3 StringUtils EMPTY
String EMPTY
To view the source code for org.apache.commons.lang3 StringUtils EMPTY.
Click Source Link
From source file:de.blizzy.documentr.validation.MacroNameValidatorTest.java
@Test public void isValid() { MacroNameValidator validator = new MacroNameValidator(); assertTrue(validator.isValid(null, null)); assertTrue(validator.isValid(StringUtils.EMPTY, null)); assertTrue(validator.isValid("macro", null)); //$NON-NLS-1$ assertTrue(validator.isValid("myMacro_123", null)); //$NON-NLS-1$ assertFalse(validator.isValid("macro.xyz", null)); //$NON-NLS-1$ assertFalse(validator.isValid("macro/xyz", null)); //$NON-NLS-1$ }
From source file:ch.cyberduck.core.DefaultProviderHelpService.java
public void help() { this.help(StringUtils.EMPTY); }
From source file:io.thekraken.grok.configuration.model.Filter.java
public Filter() { file = StringUtils.EMPTY; pattern = StringUtils.EMPTY; }
From source file:com.inkubator.hrm.web.converter.MonthNumberAsStringConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { String monthAsString = StringUtils.EMPTY; String data = value.toString(); if (StringUtils.isNumeric(data)) { Integer month = Integer.valueOf(data); DateFormatSymbols dfs = new DateFormatSymbols( new Locale(FacesUtil.getSessionAttribute(HRMConstant.BAHASA_ACTIVE).toString())); monthAsString = dfs.getMonths()[month - 1]; }/*w w w . j a v a 2 s. co m*/ return monthAsString; }
From source file:ch.cyberduck.core.cryptomator.CryptoAuthenticationException.java
@Override public String getHelp() { return StringUtils.EMPTY; }
From source file:io.knotx.knot.service.service.ServiceAttributeUtilTest.java
@Test public void testAttributeWithoutNamespace() throws Exception { String serviceNamespace = ServiceAttributeUtil.extractNamespace("data-knotx-service"); String paramsNamespace = ServiceAttributeUtil.extractNamespace("data-knotx-params"); Assert.assertThat(serviceNamespace, is(StringUtils.EMPTY)); Assert.assertThat(paramsNamespace, is(StringUtils.EMPTY)); }
From source file:de.blizzy.documentr.validation.ProjectNameBlacklistValidatorTest.java
@Test public void isValid() { ProjectNameBlacklistValidator validator = new ProjectNameBlacklistValidator(); assertTrue(validator.isValid(null, null)); assertTrue(validator.isValid(StringUtils.EMPTY, null)); assertTrue(validator.isValid("project", null)); //$NON-NLS-1$ assertFalse(validator.isValid("_project", null)); //$NON-NLS-1$ assertFalse(validator.isValid("create", null)); //$NON-NLS-1$ }
From source file:ch.cyberduck.core.DefaultPathReference.java
public String attributes() { String qualifier = StringUtils.EMPTY; if (StringUtils.isNotBlank(file.attributes().getRegion())) { if (containerService.isContainer(file)) { qualifier += file.attributes().getRegion(); }/*from w w w .ja va 2s .c o m*/ } if (StringUtils.isNotBlank(file.attributes().getVersionId())) { qualifier += file.attributes().getVersionId(); } return qualifier; }
From source file:io.thekraken.grok.configuration.model.Output.java
public Output() { type = StringUtils.EMPTY; location = StringUtils.EMPTY; }
From source file:de.blizzy.documentr.validation.RoleNameValidatorTest.java
@Test public void isValid() { RoleNameValidator validator = new RoleNameValidator(); assertTrue(validator.isValid(null, null)); assertTrue(validator.isValid(StringUtils.EMPTY, null)); assertTrue(validator.isValid("role", null)); //$NON-NLS-1$ assertTrue(validator.isValid("Role 123", null)); //$NON-NLS-1$ assertFalse(validator.isValid("role.123", null)); //$NON-NLS-1$ }