test_class.declarator: LOGGER = LoggerFactory.getLogger(ScriptExecutorTest.class)
test_class.modifier: private static
test_class.original_string: private static Logger LOGGER = LoggerFactory.getLogger(ScriptExecutorTest.class);
test_class.type: Logger
test_class.var_name: LOGGER
test_class.declarator: cmd
test_class.modifier: private
test_class.original_string: private String cmd;
test_class.type: String
test_class.var_name: cmd
test_class.declarator: args
test_class.modifier: private
test_class.original_string: private String[] args;
test_class.type: String[]
test_class.var_name: args
test_class.declarator: expectedExitCode
test_class.modifier: private
test_class.original_string: private int expectedExitCode;
test_class.type: int
test_class.var_name: expectedExitCode
test_class.declarator: callbackMethod
test_class.modifier: private
test_class.original_string: private Method callbackMethod;
test_class.type: Method
test_class.var_name: callbackMethod
test_class.declarator: callbackArgs=new Object[]{}
test_class.modifier: private
test_class.original_string: private Object[] callbackArgs=new Object[]{};
test_class.type: Object[]
test_class.var_name: callbackArgs
test_class.file: iguana.commons/src/test/java/org/aksw/iguana/commons/script/ScriptExecutorTest.java
test_class.identifier: ScriptExecutorTest
test_case.body: @Test
      public void checkExecution() throws IOException, InvocationTargetException, IllegalAccessException {
          if(expectedExitCode!=0){
              LOGGER.warn("Exception should be thrown in this test.");
          }
          int exitCode = ScriptExecutor.execSafe(cmd, args);
          assertEquals(expectedExitCode, exitCode);
          callbackMethod.invoke(this, callbackArgs);
      }
test_case.class_method_signature: ScriptExecutorTest.checkExecution()
test_case.full_signature: @Test public void checkExecution()
test_case.identifier: checkExecution
test_case.invocations: warn execSafe assertEquals invoke
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void checkExecution()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(ScriptExecutor.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(ScriptExecutor.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: iguana.commons/src/main/java/org/aksw/iguana/commons/script/ScriptExecutor.java
focal_class.identifier: ScriptExecutor
focal_class.class_method_signature: ScriptExecutor.exec(String file, String[] args)
focal_class.full_signature: public static int exec(String file, String[] args)
focal_class.identifier: exec
focal_class.modifiers: public static
focal_class.parameters: (String file, String[] args)
focal_class.return: int
focal_class.signature: int exec(String file, String[] args)
focal_class.class_method_signature: ScriptExecutor.execSafe(String file, String[] args)
focal_class.full_signature: public static int execSafe(String file, String[] args)
focal_class.identifier: execSafe
focal_class.modifiers: public static
focal_class.parameters: (String file, String[] args)
focal_class.return: int
focal_class.signature: int execSafe(String file, String[] args)
focal_class.class_method_signature: ScriptExecutor.execute(String[] args)
focal_class.full_signature: private static int execute(String[] args)
focal_class.identifier: execute
focal_class.modifiers: private static
focal_class.parameters: (String[] args)
focal_class.return: int
focal_class.signature: int execute(String[] args)
focal_method.body: public static int execSafe(String file, String[] args) throws ExecuteException, IOException{
  		String actualScript = file;
  		String[] args2 = args;
  		if(file.contains(" ")){
  
  			String[] providedArguments = file.split("\\s+");
  			args2 = new String[providedArguments.length-1+args.length];
  			actualScript=providedArguments[0];
  			int i=1;
  			for(i=1;i<providedArguments.length;i++){
  				args2[i-1]=providedArguments[i];
  			}
  			for(int j=0;j<args.length;j++){
  				args2[j+i-1]=args[j];
  			}
  
  		}
  
  		return exec(actualScript, args2);
  	}
focal_method.class_method_signature: ScriptExecutor.execSafe(String file, String[] args)
focal_method.full_signature: public static int execSafe(String file, String[] args)
focal_method.identifier: execSafe
focal_method.invocations: contains split exec
focal_method.modifiers: public static
focal_method.parameters: (String file, String[] args)
focal_method.return: int
focal_method.signature: int execSafe(String file, String[] args)