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

Varargs options are not picking up unused command parameters

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0.Beta2
    • Fix Version/s: 1.0.0.Beta3
    • Component/s: UI - Shell
    • Labels:
      None

      Description

         @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"));
         }
      

        Gliffy Diagrams

          Activity

          lincolnthree Lincoln Baxter III created issue -
          lincolnthree Lincoln Baxter III made changes -
          Field Original Value New Value
          Description

             @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"));
             }
          {code}
             @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"));
             }
          {code}
          lincolnthree Lincoln Baxter III made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Done [ 1 ]
          lincolnthree Lincoln Baxter III made changes -
          Project Forge (JB) [ 12311102 ] Forge [ 12311820 ]
          Key SEAMFORGE-344 FORGE-57
          Affects Version/s 1.0.0.Beta2 [ 12318356 ]
          Affects Version/s 1.0.0.Beta2 [ 12317652 ]
          Component/s Shell [ 12314846 ]
          Component/s Shell [ 12313493 ]
          Fix Version/s 1.0.0.Beta3 [ 12318357 ]
          Fix Version/s 1.0.0.Beta3 [ 12318090 ]
          velias Vlastimil Eliáš made changes -
          Workflow GIT Pull Request workflow [ 12472168 ] GIT Pull Request workflow with automatic PR triggers [ 12657757 ]

            People

            • Assignee:
              lincolnthree Lincoln Baxter III
              Reporter:
              lincolnthree Lincoln Baxter III
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development