@@ -0,0 +1,2009 @@
+/*%0A * This file is part of the DITA Open Toolkit project.%0A *%0A * Copyright 2019 Jarno Elovirta%0A *%0A * See the accompanying LICENSE file for applicable license.%0A */%0A%0Apackage org.dita.dost.invoker;%0A%0Aimport org.apache.tools.ant.Project;%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.util.Collections;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class ArgumentParserTest %7B%0A%0A    private final ArgumentParser parser = new ArgumentParser();%0A%0A    @Test%0A    public void shortArguments() %7B%0A        final Arguments act = parser.processArgs(new String%5B%5D%7B%0A                %22-i%22, %22src%22,%0A                %22-f%22, %22html5%22,%0A                %22-t%22, %22tmp%22,%0A                %22-o%22, %22out%22,%0A                %22-v%22%0A        %7D);%0A        assertEquals(Collections.singletonList(new File(%22src%22).getAbsolutePath()), act.inputs);%0A        assertEquals(new File(%22src%22).getAbsolutePath(), act.definedProps.get(%22args.input%22));%0A        assertEquals(%22html5%22, act.definedProps.get(%22transtype%22));%0A        assertEquals(new File(%22tmp%22).getAbsolutePath(), act.definedProps.get(%22dita.temp.dir%22));%0A        assertEquals(new File(%22out%22).getAbsolutePath(), act.definedProps.get(%22output.dir%22));%0A        assertEquals(Project.MSG_INFO, act.msgOutputLevel);%0A    %7D%0A%0A    @Test%0A    public void longArguments() %7B%0A        final Arguments act = parser.processArgs(new String%5B%5D%7B%0A                %22--input=src%22,%0A                %22--format=html5%22,%0A                %22--temp=tmp%22,%0A                %22--output=out%22,%0A                %22--verbose%22%0A        %7D);%0A        assertEquals(Collections.singletonList(new File(%22src%22).getAbsolutePath()), act.inputs);%0A        assertEquals(new File(%22src%22).getAbsolutePath(), act.definedProps.get(%22args.input%22));%0A        assertEquals(%22html5%22, act.definedProps.get(%22transtype%22));%0A        assertEquals(new File(%22tmp%22).getAbsolutePath(), act.definedProps.get(%22dita.temp.dir%22));%0A        assertEquals(new File(%22out%22).getAbsolutePath(), act.definedProps.get(%22output.dir%22));%0A        assertEquals(Project.MSG_INFO, act.msgOutputLevel);%0A    %7D%0A%7D

Add test for argument parser