integration-tests/src/test/java/oracle/kubernetes/operator/MiiConfigUpdateBaseTest.java
protected void copyTestModelFiles(String destDir, String[] modelFiles) {
    LoggerHelper.getLocal().log(Level.INFO, "Creating configMap");
    final String origDir = BaseTest.getProjectRoot()
        + "/integration-tests/src/test/resources/model-in-image";

    try {
      Files.deleteIfExists(Paths.get(destDir));
      Files.createDirectories(Paths.get(destDir));

      for (String modelFile : modelFiles) {
        TestUtils.copyFile(origDir + "/" + modelFile, destDir + "/" + modelFile);
        LoggerHelper.getLocal().log(Level.INFO, "Copied <" + origDir
            + "/" + modelFile + "> to <" + destDir + "/" + modelFile + ">");
      }
    } catch (Exception ex) {
      ex.printStackTrace();
      fail("Failed to copy model files", ex.getCause());
    }
  }
/**
   * Copy model files from source dir. to test dir.
   * @param destDir destination directory name to copy model files to
   * @param modelFiles names of model files to copy
   */
Copy model files from source dir. to test dir.
@param destDir destination directory name to copy model files to
@param modelFiles names of model files to copy
Copy model files from source dir . to test dir . @param destDir destination directory name to copy model files to @param modelFiles names of model files to copy
protected void copyTestModelFiles(String destDir, String[] modelFiles) {
    LoggerHelper.getLocal().log(Level.INFO, "Creating configMap");
    final String origDir = BaseTest.getProjectRoot()
        + "/integration-tests/src/test/resources/model-in-image";
    try {
      Files.deleteIfExists(Paths.get(destDir));
      Files.createDirectories(Paths.get(destDir));
      for (String modelFile : modelFiles) {
        TestUtils.copyFile(origDir + "/" + modelFile, destDir + "/" + modelFile);
        LoggerHelper.getLocal().log(Level.INFO, "Copied <" + origDir
            + "/" + modelFile + "> to <" + destDir + "/" + modelFile + ">");
      }
    } catch (Exception ex) {
      ex.printStackTrace();
      fail("Failed to copy model files", ex.getCause());
    }
  }
protected void copyTestModelFiles ( String destDir , String [ ] modelFiles ) { LoggerHelper . getLocal ( ) . log ( Level . INFO , "Creating configMap" ) ; final String origDir = BaseTest . getProjectRoot ( ) + "/integration-tests/src/test/resources/model-in-image" ; try { Files . deleteIfExists ( Paths . get ( destDir ) ) ; Files . createDirectories ( Paths . get ( destDir ) ) ; for ( String modelFile : modelFiles ) { TestUtils . copyFile ( origDir + "/" + modelFile , destDir + "/" + modelFile ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Copied <" + origDir + "/" + modelFile + "> to <" + destDir + "/" + modelFile + ">" ) ; } } catch ( Exception ex ) { ex . printStackTrace ( ) ; fail ( "Failed to copy model files" , ex . getCause ( ) ) ; } }
Copy model files from source dir.
Copy model files from source dir .