@@ -0,0 +1,2313 @@
+package edu.toronto.bb.unitest;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport org.apache.commons.cli.BasicParser;%0Aimport org.apache.commons.cli.CommandLine;%0Aimport org.apache.commons.cli.CommandLineParser;%0Aimport org.apache.commons.cli.ParseException;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0Aimport edu.toronto.bb.core.Driver;%0A%0Apublic class DriverTest %7B%0A%0A    List%3CString%3E argv;%0A    String fnaIn = %22C:%5C%5Ctemp%5C%5Cjava_projects%5C%5CBarcodeBooster%5C%5Ctest%5C%5Csample%5C%5Cfna%22;%0A    String fnaOut = %22C:%5C%5Ctemp%5C%5Cjava_projects%5C%5CBarcodeBooster%5C%5Ctest%5C%5Csample%5C%5Co_fna%22;%0A    String qualIn = %22C:%5C%5Ctemp%5C%5Cjava_projects%5C%5CBarcodeBooster%5C%5Ctest%5C%5Csample%5C%5Cqual%22;%0A    String qualOut = %22C:%5C%5Ctemp%5C%5Cjava_projects%5C%5CBarcodeBooster%5C%5Ctest%5C%5Csample%5C%5Co_qual%22;%0A    String fi =%22fi%22;%0A    String fo =%22fo%22;%0A    String qi =%22qi%22;%0A    String qo =%22qo%22;%0A    %0A    @Before%0A    public void setUp() %7B             %0A        argv = new ArrayList%3CString%3E();%0A        argv.add(%22-fi%22);%0A        argv.add(fnaIn);%0A        argv.add(%22-fo%22);%0A        argv.add(fnaOut);%0A        argv.add(%22-qi%22);%0A        argv.add(qualIn);%0A        argv.add(%22-qo%22);%0A        argv.add(qualOut);        %0A    %7D%0A%0A    @Test%0A    public void shouldParseOptionFlags() throws ParseException %7B%0A        CommandLineParser parser = new BasicParser();                %0A        CommandLine cmd = parser.parse(Driver.buildOptions(), argv.toArray(new String%5Bargv.size()%5D));%0A        %0A        assertTrue(cmd.hasOption(fi));%0A        assertTrue(cmd.hasOption(fo));%0A        assertTrue(cmd.hasOption(qi));%0A        assertTrue(cmd.hasOption(qo));%0A    %7D%0A%0A    @Test%0A    public void shouldParseArguements() throws ParseException %7B%0A        CommandLineParser parser = new BasicParser();                %0A        CommandLine cmd = parser.parse(Driver.buildOptions(), argv.toArray(new String%5Bargv.size()%5D));%0A        %0A        if (cmd.hasOption(fi)) %7B            %0A            assertTrue(fnaIn.equals(cmd.getOptionValue(fi)));%0A        %7D%0A        %0A        if (cmd.hasOption(fo)) %7B%0A            assertTrue(fnaOut.equals(cmd.getOptionValue(fo)));%0A        %7D%0A        %0A        if (cmd.hasOption(qi)) %7B%0A            assertTrue(qualIn.equals(cmd.getOptionValue(qi)));%0A        %7D%0A        %0A        if (cmd.hasOption(qo)) %7B%0A            assertTrue(qualOut.equals(cmd.getOptionValue(qo)));%0A        %7D%0A    %7D%0A%7D%0A

Rename CommandLineParsingTest to DriverTest