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.lgblaumeiser.ptm.cli.engine.handler.DeleteBookingTest.java
@Test(expected = RuntimeException.class) public void testDeleteBookingEmptyParam() { testee.handleCommand(asList(StringUtils.EMPTY)); }
From source file:com.github.aynu.yukar.baseline.provider.domain.auth.CertificationDomainTest.java
@Test public final void test() { final Certification user1 = new Certification("user#1", DigestUtils.sha256Hex("password#1")); LOG.debug("user1 : {}", user1); final CertificationDomain testee = new CertificationDomain(user1); try {// w w w. j ava 2s. com testee.changePassword(null); fail(); } catch (final NullPointerException e) { LOG.debug(e.toString()); } try { testee.changePassword(StringUtils.EMPTY); fail(); } catch (final IllegalArgumentException e) { LOG.debug(e.toString()); } try { testee.changePassword("password#1"); fail(); } catch (final IllegalArgumentException e) { LOG.debug(e.toString()); } final Certification user2 = testee.changePassword("password#2"); assertThat(user2, is(not(user1))); LOG.debug("user2 : {}", user1); }
From source file:de.blizzy.documentr.markdown.macro.impl.AlertMacro.java
@Override public String getHtml(IMacroContext macroContext) { String body = StringUtils.defaultString(macroContext.getBody()); String type = macroContext.getParameters(); String typeClass = StringUtils.EMPTY; if (StringUtils.isNotBlank(type)) { typeClass = " alert-" + StringEscapeUtils.escapeHtml4(type); //$NON-NLS-1$ }/*from w ww . j av a 2 s . co m*/ return "<div class=\"alert" + typeClass + "\">" + body + "</div>"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
From source file:com.github.haixing_hu.ilibrary.model.DocumentTemplateBuilder.java
public DocumentTemplateBuilder() { name = StringUtils.EMPTY; type = DocumentType.ARTICLE;/* w ww .j a v a 2 s .c o m*/ cslType = Type.ARTICLE; kinds = new ArrayList<>(); defaultKind = StringUtils.EMPTY; fieldGroups = new ArrayList<>(); variableMapping = new VariableMapping(); }
From source file:ch.cyberduck.ui.cocoa.controller.LimitedListAlertController.java
@Override public void loadBundle() { final NSAlert alert = NSAlert.alert(); alert.setAlertStyle(NSAlert.NSInformationalAlertStyle); alert.setMessageText(MessageFormat.format(LocaleFactory.localizedString("Listing directory {0}", "Status"), StringUtils.EMPTY)); alert.setInformativeText(MessageFormat.format( LocaleFactory.localizedString("Continue listing directory with more than {0} files.", "Alert"), e.getChunk().size()));/*from w w w. ja va 2 s . c om*/ alert.addButtonWithTitle(LocaleFactory.localizedString("Continue", "Credentials")); alert.addButtonWithTitle(LocaleFactory.localizedString("Cancel")); alert.setShowsSuppressionButton(true); alert.suppressionButton().setTitle(LocaleFactory.localizedString("Always")); super.loadBundle(alert); }
From source file:com.todev.rabbitmqmanagement.ui.connection.list.ConnectionListEntryPresenter.java
@Override public void bind(@NonNull Connection connection) { view.displayName(connection.getPeerHost(), connection.getPeerPort()); view.displayUsername(connection.getUser()); view.displayState(connection.getState()); view.displaySslTls(connection.isSsl()); view.displaySslDetails(StringUtils.EMPTY); view.displayProtocol(connection.getProtocol()); view.displayChannels(connection.getChannels()); view.displayChannelMax(connection.getChannelMax()); view.displayFrameMax(connection.getFrameMax()); view.displayAuthMechanism(connection.getAuthMechanism()); view.displayClient(connection.getClientProperties()); view.displayClientFromRate(connection.getRecvOctDetails().getRate()); view.displayClientToRate(connection.getSendOctDetails().getRate()); view.displayHeartbeat(connection.getTimeout()); view.displayConnectedAt(connection.getConnectedAt()); }
From source file:com.github.haixing_hu.ilibrary.model.DocumentCollection.java
public DocumentCollection() { id = -1; parentId = -1; name = StringUtils.EMPTY; description = StringUtils.EMPTY; smart = false; criterion = null; }
From source file:com.aqnote.app.wifianalyzer.vendor.model.VendorNameUtilsTest.java
@Test public void testCleanVendorNameWithBlank() throws Exception { // execute//from w w w. j a va 2s.c om String actual = VendorNameUtils.cleanVendorName(" "); // validate assertEquals(StringUtils.EMPTY, actual); }
From source file:kr.co.generic.wifianalyzer.vendor.model.RemoteResultTest.java
@Test public void testRemoteResultEmpty() throws Exception { // validate//from w ww . j av a2 s.com assertEquals(StringUtils.EMPTY, RemoteResult.EMPTY.getMacAddress()); assertEquals(StringUtils.EMPTY, RemoteResult.EMPTY.getVendorName()); }
From source file:com.nridge.core.io.log.DSCriteriaLogger.java
public DSCriteriaLogger(Logger aLogger) { mLogger = aLogger; mPrefix = StringUtils.EMPTY; mDataFieldLogger = new DataFieldLogger(aLogger); }