List of usage examples for org.apache.commons.cli Option hasValueSeparator
public boolean hasValueSeparator()
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()); }