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:com.thoughtworks.go.domain.ModificationSummariesTest.java
@Test public void shouldHandleEmptyRevisions() throws Exception { ModificationSummaries summaries = new ModificationSummaries(); String latest = summaries.latestRevision(); assertThat(latest, is(StringUtils.EMPTY)); }
From source file:com.thoughtworks.go.domain.ModificationSummaries.java
public String latestRevision() { if (mods.isEmpty()) { return StringUtils.EMPTY; } return mods.get(0).getRevision(); }
From source file:ch.cyberduck.core.logging.LoggingConfiguration.java
public LoggingConfiguration(final boolean enabled) { this.enabled = enabled; this.loggingTarget = StringUtils.EMPTY; }
From source file:com.capgemini.b2bassets.storefront.web.mvc.AcceleratorUrlPathHelperTest.java
@Test public void testGetContextPath() { final AcceleratorUrlPathHelper pathHelper = new AcceleratorUrlPathHelper(); request.setAttribute(WebConstants.URL_ENCODING_ATTRIBUTES, TEST_VALUE); request.setAttribute(WebUtils.INCLUDE_CONTEXT_PATH_ATTRIBUTE, TEST_VALUE); final String result = pathHelper.getContextPath(request); Assertions.assertThat(result.equals(StringUtils.EMPTY)).isTrue(); }
From source file:com.cognifide.aet.job.common.comparators.w3chtml5.WarningNodeToW3cHtml5IssueFunction.java
@Override public W3cHtml5Issue apply(Node child) { if (!(child instanceof Element)) { return null; }//from w w w . j a v a 2 s . co m Element element = (Element) child; W3cHtml5IssueType issueType = W3cHtml5IssueType .valueOf(StringUtils.removeStart(element.attr("class"), "msg_").toUpperCase()); String message = element.getElementsByAttributeValue("class", "msg").html(); String additionalInfo = element.child(1).html(); return new W3cHtml5Issue(0, 0, message, StringUtils.EMPTY, StringUtils.EMPTY, StringUtils.EMPTY, additionalInfo, issueType); }
From source file:de.lgblaumeiser.ptm.cli.engine.handler.OpenDayTest.java
@Test(expected = DateTimeParseException.class) public void testOpenDayOneEmptyParam() { testee.handleCommand(asList(StringUtils.EMPTY)); }
From source file:io.knotx.adapter.common.post.UrlEncodedBodyBuilderTest.java
@Test public void whenEmptyMultiMap_expectEmptyBodyString() { assertThat(UrlEncodedBodyBuilder.encodeBody(null), equalTo(StringUtils.EMPTY)); assertThat(UrlEncodedBodyBuilder.encodeBody(MultiMap.caseInsensitiveMultiMap()), equalTo(StringUtils.EMPTY)); }
From source file:com.github.haixing_hu.bean.InheritedBeanClass.java
InheritedBeanClass() { super(); type = StringUtils.EMPTY; }
From source file:com.aqnote.app.wifianalyzer.vendor.model.RemoteCall.java
@Override protected String doInBackground(String... params) { if (params == null || params.length < 1 || StringUtils.isBlank(params[0])) { return StringUtils.EMPTY; }//from w w w .j a v a 2 s .c om String macAddress = params[0]; String request = String.format(MAC_VENDOR_LOOKUP, macAddress); BufferedReader bufferedReader = null; try { URLConnection urlConnection = getURLConnection(request); bufferedReader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); StringBuilder response = new StringBuilder(); String line; while ((line = bufferedReader.readLine()) != null) { response.append(line); } String vendorName = VendorNameUtils.cleanVendorName(response.toString().trim()); if (StringUtils.isNotBlank(vendorName)) { return new RemoteResult(macAddress, vendorName).toJson(); } return StringUtils.EMPTY; } catch (Exception e) { return StringUtils.EMPTY; } finally { if (bufferedReader != null) { try { bufferedReader.close(); } catch (IOException e) { // ignore } } } }
From source file:com.aqnote.app.wifianalyzer.wifi.model.WiFiConnectionTest.java
@Test public void testWiFiConnectionEmpty() throws Exception { // validate//from ww w . ja v a2 s .c o m assertEquals(StringUtils.EMPTY, WiFiConnection.EMPTY.getSSID()); assertEquals(StringUtils.EMPTY, WiFiConnection.EMPTY.getBSSID()); assertEquals(StringUtils.EMPTY, WiFiConnection.EMPTY.getIpAddress()); assertEquals(WiFiConnection.LINK_SPEED_INVALID, WiFiConnection.EMPTY.getLinkSpeed()); }