java/sql-dk/test/info/globalcode/sql/dk/CLIParserTest.java
branchv_0
changeset 72 fc9fc1f26b88
parent 69 0befec5034c2
child 168 0e8108da0305
equal deleted inserted replaced
71:e5d04a68ce1e 72:fc9fc1f26b88
    17  */
    17  */
    18 package info.globalcode.sql.dk;
    18 package info.globalcode.sql.dk;
    19 
    19 
    20 import info.globalcode.sql.dk.CLIParser.Tokens;
    20 import info.globalcode.sql.dk.CLIParser.Tokens;
    21 import static info.globalcode.sql.dk.CLIParser.TYPE_NAME_SEPARATOR;
    21 import static info.globalcode.sql.dk.CLIParser.TYPE_NAME_SEPARATOR;
       
    22 import info.globalcode.sql.dk.InfoLister.InfoType;
    22 import java.util.Collection;
    23 import java.util.Collection;
    23 import static org.testng.Assert.*;
    24 import static org.testng.Assert.*;
    24 import org.testng.annotations.BeforeMethod;
    25 import org.testng.annotations.BeforeMethod;
    25 import org.testng.annotations.Test;
    26 import org.testng.annotations.Test;
    26 
    27 
   182 		CLIOptions options = parser.parseOptions(args);
   183 		CLIOptions options = parser.parseOptions(args);
   183 		options.validate();
   184 		options.validate();
   184 
   185 
   185 		assertEquals(options.getMode(), CLIOptions.MODE.JUST_SHOW_INFO);
   186 		assertEquals(options.getMode(), CLIOptions.MODE.JUST_SHOW_INFO);
   186 		assertEquals(options.getShowInfo().size(), 1);
   187 		assertEquals(options.getShowInfo().size(), 1);
   187 		assertTrue(options.getShowInfo().contains(CLIOptions.InfoType.HELP));
   188 		assertTrue(options.getShowInfo().contains(InfoType.HELP));
   188 	}
   189 	}
   189 }
   190 }