コード例 #1
0
  /** Constructor for JUnit Testing purposes only. Do not use it normally. */
  GroovyDataProvider(URL configURL) {
    configObject = doBootstrap();

    // parse the configuration file once
    ConfigObject highPriorityCO = cs.parse(configURL);
    configObject = mergeConfigObjects(configObject, highPriorityCO);
  }
コード例 #2
0
 /** load the bootstrap configuration */
 private ConfigObject doBootstrap() {
   URL url = getClass().getClassLoader().getResource(BOOTSTRAP_FILE_NAME);
   String msg =
       String.format(
           "Missing bootstrap file: %s. (Hint: copy "
               + "framework/test-contract/src/bootstrap.groovy to folder framework/test-contract/build)",
           BOOTSTRAP_FILE_NAME);
   Assert.assertNotNull(msg, url);
   return cs.parse(url);
 }