new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonTestUtils.java
private static void addModelFile(Map<String, String> data, String modelFileName) {
    LoggingFacade logger = getLogger();
    logger.info("Add model file {0}", modelFileName);
    String dsModelFile = String.format("%s/%s", MODEL_DIR, modelFileName);

    String cmData = assertDoesNotThrow(() -> Files.readString(Paths.get(dsModelFile)),
        String.format("Failed to read model file %s", dsModelFile));
    assertNotNull(cmData,
        String.format("Failed to read model file %s", dsModelFile));

    data.put(modelFileName, cmData);
  }
/**
   * Read the content of a model file as a String and add it to a map.
   */
Read the content of a model file as a String and add it to a map.
Read the content of a model file as a String and add it to a map .
private static void addModelFile(Map<String, String> data, String modelFileName) {
    LoggingFacade logger = getLogger();
    logger.info("Add model file {0}", modelFileName);
    String dsModelFile = String.format("%s/%s", MODEL_DIR, modelFileName);
    String cmData = assertDoesNotThrow(() -> Files.readString(Paths.get(dsModelFile)),
        String.format("Failed to read model file %s", dsModelFile));
    assertNotNull(cmData,
        String.format("Failed to read model file %s", dsModelFile));
    data.put(modelFileName, cmData);
  }
private static void addModelFile ( Map < String , String > data , String modelFileName ) { LoggingFacade logger = getLogger ( ) ; logger . info ( "Add model file {0}" , modelFileName ) ; String dsModelFile = String . format ( "%s/%s" , MODEL_DIR , modelFileName ) ; String cmData = assertDoesNotThrow ( ( ) -> Files . readString ( Paths . get ( dsModelFile ) ) , String . format ( "Failed to read model file %s" , dsModelFile ) ) ; assertNotNull ( cmData , String . format ( "Failed to read model file %s" , dsModelFile ) ) ; data . put ( modelFileName , cmData ) ; }
Read the content of a model file as a String and add it to a map.
Read the content of a model file as a String and add it to a map .