Package org.data2semantics.platform.domain

Examples of org.data2semantics.platform.domain.CommandLineDomain


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));
     
       
     
  }
View Full Code Here

TOP

Related Classes of org.data2semantics.platform.domain.CommandLineDomain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.