public class CommandLineDomainTests {
@Test
public void testArithConfigFile(){
CommandLineDomain domain = new CommandLineDomain();
final String SOURCE= "src/test/resources/commandLine/ArithModule.cfg";
final String [] expectedOutputs = new String[]{"result","product","sum","difference"};
final String [] expectedInputs = new String[]{"first","second"};
final String expectedFirstDescription = "this is the first input";
final String expectedProductDescription = "this is the product of the inputs";
final String expectedCommandLine ="src/test/resources/commandLine/arith.bat";
assertEquals(Arrays.asList(expectedOutputs), domain.outputs(SOURCE));
assertEquals(Arrays.asList(expectedInputs), domain.inputs(SOURCE));
assertEquals(expectedFirstDescription, domain.inputDescription(SOURCE, "first"));
assertEquals(expectedProductDescription, domain.outputDescription(SOURCE, "product"));
assertEquals( expectedCommandLine, domain.getCommand(SOURCE));
}