You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/05/15 10:03:25 UTC

[GitHub] [shardingsphere] terrymanu commented on issue #5428: Use YAML file instead of inline string in test cases

terrymanu commented on issue #5428:
URL: https://github.com/apache/shardingsphere/issues/5428#issuecomment-629148958


   Please ref #5629, use 
   
   ```java
   @SneakyThrows
       private String readYAML(final String yamlFile) {
           return Files.readAllLines(Paths.get(ClassLoader.getSystemResource(yamlFile).toURI())).stream().map(each -> each + System.lineSeparator()).collect(Collectors.joining());
       }
   ```
   
   to load file content


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org