@@ -0,0 +1,1420 @@
+package es.tid.cosmos.mobility;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A *%0A * @author dmicol%0A */%0Apublic class ArgumentParserTest %7B%0A    private ArgumentParser instance;%0A    %0A    @Before%0A    public void setUp() %7B%0A        this.instance = new ArgumentParser();%0A    %7D%0A%0A    @Test%0A    public void testStrings() %7B%0A        this.instance.parse(new String%5B%5D %7B %22--arg1%22, %22--arg2=false%22 %7D);%0A        assertEquals(%22true%22, this.instance.getString(%22arg1%22));%0A        assertEquals(%22false%22, this.instance.getString(%22arg2%22));%0A    %7D%0A    %0A    @Test%0A    public void testBooleans() %7B%0A        this.instance.parse(new String%5B%5D %7B %22--arg1%22, %22--arg2=false%22 %7D);%0A        assertEquals(true, this.instance.getBoolean(%22arg1%22));%0A        assertEquals(false, this.instance.getBoolean(%22arg2%22));%0A    %7D%0A%0A    @Test%0A    public void testMissingAndNotRequired() %7B%0A        this.instance.parse(new String%5B%5D %7B %22--arg1%22, %22--arg2=false%22 %7D);%0A        assertEquals(false, this.instance.has(%22arg3%22));%0A    %7D%0A    %0A    @Test(expected=IllegalArgumentException.class)%0A    public void testMissingAndRequired() %7B%0A        this.instance.parse(new String%5B%5D %7B %22--arg1%22, %22--arg2=false%22 %7D);%0A        assertEquals(false, this.instance.has(%22arg3%22, true));%0A    %7D%0A%0A    @Test(expected=IllegalArgumentException.class)%0A    public void testInvalid() %7B%0A        this.instance.parse(new String%5B%5D %7B %22--arg1%22, %22--arg2=false=true%22 %7D);%0A    %7D%0A%7D%0A

Add ArgumentParserTest.