@@ -0,0 +1,1162 @@
+package com.codexfons.compositesplit.test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport com.codexfons.compositesplit.CommandLineInterface;%0Aimport com.codexfons.compositesplit.CommandLineInterface.Config;%0A%0Apublic class CommandLineInterfacetest %7B%0A%0A%09@BeforeClass%0A%09public static void setUpBeforeClass() throws Exception %7B%0A%09%7D%0A%0A%09@Test%0A%09public void testNoArgs() %7B%0A%09%09Config config = CommandLineInterface.parseArgs(new String%5B%5D %7B %7D);%0A%09%09assertNull(config);%0A%09%7D%0A%0A%09@Test%0A%09public void testDefaultDict() %7B%0A%09%09Config config = CommandLineInterface.parseArgs(new String%5B%5D %7B %22testwort%22 %7D);%0A%09%09assertEquals(config.dictPath, %22data/nomen-sg-filt.txt%22);%0A%09%09assertEquals(config.compoundWord, %22testwort%22);%0A%09%7D%0A%0A%09@Test%0A%09public void testNoCompoundWord() %7B%0A%09%09Config config = CommandLineInterface.parseArgs(new String%5B%5D %7B %22-d%22, %22data/nomen-sg-filt.txt%22 %7D);%0A%09%09assertNull(config);%0A%09%7D%0A%0A%09@Test%0A%09public void testCustomDict() %7B%0A%09%09Config config = CommandLineInterface.parseArgs(new String%5B%5D %7B %22-d%22, %22data/custom-dict.txt%22, %22testwort%22 %7D);%0A%09%09assertEquals(config.dictPath, %22data/custom-dict.txt%22);%0A%09%09assertEquals(config.compoundWord, %22testwort%22);%0A%09%7D%0A%0A%7D%0A

add tests for command line