コード例 #1
0
  @Test
  public void testEscapeInDoubleQuoted() {
    String[] args = parser.parse("a \" b \\\" \" c");

    assertThat(args, arrayContaining("a", " b \" ", "c"));
  }
コード例 #2
0
  @Test
  public void testSingleQuoted() {
    String[] args = parser.parse("a ' b ' c");

    assertThat(args, arrayContaining("a", " b ", "c"));
  }
コード例 #3
0
  @Test
  public void test() {
    String[] args = parser.parse("a b c");

    assertThat(args, arrayContaining("a", "b", "c"));
  }