Example usage for org.apache.commons.lang3 StringUtils SPACE

List of usage examples for org.apache.commons.lang3 StringUtils SPACE

Introduction

In this page you can find the example usage for org.apache.commons.lang3 StringUtils SPACE.

Prototype

String SPACE

To view the source code for org.apache.commons.lang3 StringUtils SPACE.

Click Source Link

Document

A String for a space character.

Usage

From source file:org.eclipse.hawkbit.ui.management.footer.CountMessageLabel.java

/**
 * Get Overdue State Message./*from w ww . j av  a 2  s  .c  om*/
 *
 * @param overdueState
 *            as flag
 * @return String as msg.
 */
private static String getOverdueStateMsg(final boolean overdueState, final String param) {
    return !overdueState ? StringUtils.SPACE : param;
}

From source file:org.eclipse.hawkbit.ui.management.footer.CountMessageLabel.java

/**
 * Get Tags Message.//w  ww.j  a v  a2s .c om
 *
 * @param noTargetTagSelected
 * @param tags
 *            as tags
 * @return String as msg.
 */
private static String getTagsMsg(final Boolean noTargetTagSelected, final List<String> tags,
        final String param) {
    return tags.isEmpty() && (noTargetTagSelected == null || !noTargetTagSelected.booleanValue())
            ? StringUtils.SPACE
            : param;
}

From source file:org.jbb.system.event.InstallUpgradePerformedEventTest.java

@Test(expected = EventValidationException.class)
public void shouldThrowEventValidationException_whenBlankJbbVersionPassed() {
    // given/*from   ww w  .j a  va 2s.  c om*/
    String blankJbbVersion = StringUtils.SPACE;
    InstallUpgradePerformedEvent event = new InstallUpgradePerformedEvent(blankJbbVersion);

    // when
    eventBus.post(event);

    // then
    // throw EventValidationException
}

From source file:org.jbb.system.event.LogAppenderCreatedEventTest.java

@Test(expected = EventValidationException.class)
public void shouldThrowEventValidationException_whenBlankLogAppenderNamePassed() {
    // given//  ww w.  j  av a  2 s. c  o m
    String blankName = StringUtils.SPACE;
    LogAppenderCreatedEvent event = new LogAppenderCreatedEvent(blankName);

    // when
    eventBus.post(event);

    // then
    // throw EventValidationException
}

From source file:org.jbb.system.event.LogAppenderRemovedEventTest.java

@Test(expected = EventValidationException.class)
public void shouldThrowEventValidationException_whenBlankLogAppenderNamePassed() throws Exception {
    // given//  w  ww. ja  va2 s .co  m
    String blankName = StringUtils.SPACE;
    LogAppenderRemovedEvent event = new LogAppenderRemovedEvent(blankName);

    // when
    eventBus.post(event);

    // then
    // throw EventValidationException
}

From source file:org.jbb.system.event.LogAppenderUpdatedEventTest.java

@Test(expected = EventValidationException.class)
public void shouldThrowEventValidationException_whenBlankLogAppenderNamePassed() throws Exception {
    // given/*w w w  .  jav  a  2s.c  o m*/
    String blankName = StringUtils.SPACE;
    LogAppenderUpdatedEvent event = new LogAppenderUpdatedEvent(blankName);

    // when
    eventBus.post(event);

    // then
    // throw EventValidationException
}

From source file:org.jbb.system.event.LoggerCreatedEventTest.java

@Test(expected = EventValidationException.class)
public void shouldThrowEventValidationException_whenBlankLoggerNamePassed() {
    // given/*from  ww  w .  java2 s . c  o m*/
    String blankName = StringUtils.SPACE;
    LoggerCreatedEvent event = new LoggerCreatedEvent(blankName);

    // when
    eventBus.post(event);

    // then
    // throw EventValidationException
}

From source file:org.jbb.system.event.LoggerRemovedEventTest.java

@Test(expected = EventValidationException.class)
public void shouldThrowEventValidationException_whenBlankLoggerNamePassed() throws Exception {
    // given//from   w w  w. ja  v  a 2  s  .  c  o  m
    String blankName = StringUtils.SPACE;
    LoggerRemovedEvent event = new LoggerRemovedEvent(blankName);

    // when
    eventBus.post(event);

    // then
    // throw EventValidationException
}

From source file:org.jbb.system.event.LoggerUpdatedEventTest.java

@Test(expected = EventValidationException.class)
public void shouldThrowEventValidationException_whenBlankLoggerNamePassed() throws Exception {
    // given//from ww  w  . j  a  va  2s.  c om
    String blankName = StringUtils.SPACE;
    LoggerUpdatedEvent event = new LoggerUpdatedEvent(blankName);

    // when
    eventBus.post(event);

    // then
    // throw EventValidationException
}

From source file:org.openecomp.sdc.ci.tests.execute.service.UpdateServiceMetadataTest.java

@Test
public void serviceNameValidationTest14() throws Exception {
    updatedServiceDetails.setName(StringUtils.SPACE); // one space with
    // nothing//from www. j  a  v a 2  s.c  o m
    updatedServiceDetails.setTags(
            addServiceNameToTagsList(updatedServiceDetails.getName(), updatedServiceDetails.getTags()));
    RestResponse updateServiceResponse = ServiceRestUtils.updateService(updatedServiceDetails,
            sdncDesignerDetails);
    // updateWithInvalidValue(ActionStatus.INVALID_COMPONENT_NAME, new
    // ArrayList<>(Arrays.asList("Service")));
    validateResponse(updateServiceResponse, 400, ActionStatus.MISSING_COMPONENT_NAME,
            new ArrayList<>(Arrays.asList("Service")));
}