Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-57

Varargs options are not picking up unused command parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta3
    • 1.0.0.Beta2
    • UI - Shell
    • None

         @Test
         public void testVarargsTakesUnusedParameters() throws Exception
         {
            assertNull(plugin.getBooleanOptionOmitted());
            getShell().execute("motp varargsOption -Pfoo --bar -ext");
            assertEquals(3, plugin.getVarargsOptions().size());
            assertTrue(plugin.getVarargsOptions().contains("-Pfoo"));
            assertTrue(plugin.getVarargsOptions().contains("--bar"));
            assertTrue(plugin.getVarargsOptions().contains("-ext"));
         }
      

              lincolnthree Lincoln Baxter III (Inactive)
              lincolnthree Lincoln Baxter III (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: