Example usage for org.apache.commons.cli Option hasValueSeparator

List of usage examples for org.apache.commons.cli Option hasValueSeparator

Introduction

In this page you can find the example usage for org.apache.commons.cli Option hasValueSeparator.

Prototype

public boolean hasValueSeparator() 

Source Link

Document

Return whether this Option has specified a value separator.

Usage

From source file:net.nicholaswilliams.java.licensing.licensor.interfaces.cli.spi.TestCliOptionsBuilder.java

@Test
public void testWithValueSeparator() {
    Option option = this.builder.withValueSeparator().create("test");
    assertNotNull("The option should not be null.", option);
    assertTrue("hasValueSeparator should be true.", option.hasValueSeparator());
    assertEquals("getValueSeparator is not correct.", '=', option.getValueSeparator());
}

From source file:net.nicholaswilliams.java.licensing.licensor.interfaces.cli.spi.TestCliOptionsBuilder.java

@Test
public void testWithValueSeparatorCharArg() {
    Option option = this.builder.withValueSeparator(':').create("test");
    assertNotNull("The option should not be null.", option);
    assertTrue("hasValueSeparator should be true.", option.hasValueSeparator());
    assertEquals("getValueSeparator is not correct.", ':', option.getValueSeparator());
}