Package org.crsh.cli.impl.invocation

Examples of org.crsh.cli.impl.invocation.OptionMatch


      }
    }

    public Test assertSharedOption(String expectedName, String... expectedValues) {
      assertTrue(sharedOptionMatches.size() > 0);
      OptionMatch match = sharedOptionMatches.removeFirst();
      assertEquals(expectedName, match.getName());
      ArrayList<String> values = new ArrayList<String>();
      for (LiteralValue value : match.getValues()) {
        values.add(value.getValue());
      }
      assertEquals(Arrays.asList(expectedValues), values);
      return this;
    }
View Full Code Here


      return this;
    }

    public Test assertOption(String expectedName, String... expectedValues) {
      assertTrue(optionMatches.size() > 0);
      OptionMatch match = optionMatches.removeFirst();
      assertEquals(expectedName, match.getName());
      ArrayList<String> values = new ArrayList<String>();
      for (LiteralValue value : match.getValues()) {
        values.add(value.getValue());
      }
      assertEquals(Arrays.asList(expectedValues), values);
      return this;
    }
View Full Code Here

TOP

Related Classes of org.crsh.cli.impl.invocation.OptionMatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.