blob: abb97c0a386ce8ecb2339fa028045e08eb59d7c1 [file] [log] [blame]
package test;
import java.util.ArrayList;
import java.util.List;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
public class QuotedMainTest {
@Parameter
List<String> args = new ArrayList<String>();
String quoted = "\" \"";
@Test
public void testMain() {
JCommander jc = new JCommander(this);
jc.parse(quoted);
Assert.assertEquals(args.size(), 1);
Assert.assertEquals(args.get(0), " ");
}
public static void main(String[] args) {
new QuotedMainTest().testMain();
}
}