chrome/test/chromedriver/test/run_java_tests.py
def _RunTest(java_tests_src_dir, jvm_args, sys_props, tests_report_file):
  """Runs a single JUnit test suite.

  Args:
    java_tests_src_dir: the directory to run the tests in.
    sys_props: Java system properties to set when running the tests.
    jvm_args: Java VM command line args to use.
  """

  classpath = []
  for name in glob.glob(java_tests_src_dir + "/jar/*.jar"):
    classpath.append(name)

  if util.IsWindows():
    separator = ';'
  else:
    separator = ':'

  code = util.RunCommand(
                         ['java'] +
                         ['-D%s' % sys_prop for sys_prop in sys_props] +
                         ['-D%s' % jvm_arg for jvm_arg in jvm_args] +
                         ['-cp', separator.join(classpath),
                          'org.junit.runner.JUnitCore',
                          'org.openqa.selenium.chrome.ChromeDriverTests'],
                         java_tests_src_dir,
                         tests_report_file)

  if code != 0:
    print('FAILED to run java tests of ChromeDriverTests')
Runs a single JUnit test suite.

  Args:
    java_tests_src_dir: the directory to run the tests in.
    sys_props: Java system properties to set when running the tests.
    jvm_args: Java VM command line args to use.
  
Runs a single JUnit test suite.
Runs a single JUnit test suite .
def _RunTest(java_tests_src_dir, jvm_args, sys_props, tests_report_file):
  classpath = []
  for name in glob.glob(java_tests_src_dir + "/jar/*.jar"):
    classpath.append(name)
  if util.IsWindows():
    separator = ';'
  else:
    separator = ':'
  code = util.RunCommand(
                         ['java'] +
                         ['-D%s' % sys_prop for sys_prop in sys_props] +
                         ['-D%s' % jvm_arg for jvm_arg in jvm_args] +
                         ['-cp', separator.join(classpath),
                          'org.junit.runner.JUnitCore',
                          'org.openqa.selenium.chrome.ChromeDriverTests'],
                         java_tests_src_dir,
                         tests_report_file)
  if code != 0:
    print('FAILED to run java tests of ChromeDriverTests')
def _RunTest ( java_tests_src_dir , jvm_args , sys_props , tests_report_file ) : classpath = [ ] for name in glob . glob ( java_tests_src_dir + "/jar/*.jar" ) : classpath . append ( name ) if util . IsWindows ( ) : separator = ';' else : separator = ':' code = util . RunCommand ( [ 'java' ] + [ '-D%s' % sys_prop for sys_prop in sys_props ] + [ '-D%s' % jvm_arg for jvm_arg in jvm_args ] + [ '-cp' , separator . join ( classpath ) , 'org.junit.runner.JUnitCore' , 'org.openqa.selenium.chrome.ChromeDriverTests' ] , java_tests_src_dir , tests_report_file ) if code != 0 : print ( 'FAILED to run java tests of ChromeDriverTests' )
Runs a single JUnit test suite.
Runs a single JUnit test suite .
"""Runs a single JUnit test suite.

  Args:
    java_tests_src_dir: the directory to run the tests in.
    sys_props: Java system properties to set when running the tests.
    jvm_args: Java VM command line args to use.
  """
java_tests_src_dir
the directory to run the tests in.
the directory to run the tests in .
jvm_args
Java VM command line args to use.
Java VM command line args to use .
sys_props
Java system properties to set when running the tests.
Java system properties to set when running the tests .
tests_report_file