aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/java/jopt-simple/src/test/java/joptsimple/examples/ShortOptionsWithArgumentPositioningTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/java/jopt-simple/src/test/java/joptsimple/examples/ShortOptionsWithArgumentPositioningTest.java')
-rw-r--r--third_party/java/jopt-simple/src/test/java/joptsimple/examples/ShortOptionsWithArgumentPositioningTest.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/third_party/java/jopt-simple/src/test/java/joptsimple/examples/ShortOptionsWithArgumentPositioningTest.java b/third_party/java/jopt-simple/src/test/java/joptsimple/examples/ShortOptionsWithArgumentPositioningTest.java
deleted file mode 100644
index 720253ebf2..0000000000
--- a/third_party/java/jopt-simple/src/test/java/joptsimple/examples/ShortOptionsWithArgumentPositioningTest.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package joptsimple.examples;
-
-import joptsimple.OptionParser;
-import joptsimple.OptionSet;
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-public class ShortOptionsWithArgumentPositioningTest {
- @Test
- public void allowsDifferentFormsOfPairingArgumentWithOption() {
- OptionParser parser = new OptionParser( "a:b:c::" );
-
- OptionSet options = parser.parse( "-a", "foo", "-bbar", "-c=baz" );
-
- assertTrue( options.has( "a" ) );
- assertTrue( options.hasArgument( "a" ) );
- assertEquals( "foo", options.valueOf( "a" ) );
-
- assertTrue( options.has( "b" ) );
- assertTrue( options.hasArgument( "b" ) );
- assertEquals( "bar", options.valueOf( "b" ) );
-
- assertTrue( options.has( "c" ) );
- assertTrue( options.hasArgument( "c" ) );
- assertEquals( "baz", options.valueOf( "c" ) );
- }
-}