1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-07 02:40:52 +00:00
plantuml/test/test/utils/TestUtils.java
The-Lum e11d974ce5 refactor: place net.sourceforge.plantuml.test on test.utils
Create `test` folder with:
- `example`
- `utils`

And put all `net.sourceforge.plantuml.test` on `test.utils`.
_[no other change]_
2024-02-12 19:13:02 +00:00

17 lines
364 B
Java

package test.utils;
import static java.nio.charset.StandardCharsets.UTF_8;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
public class TestUtils {
public static void writeUtf8File(Path path, String string) throws IOException {
Files.createDirectories(path.getParent());
Files.write(path, string.getBytes(UTF_8));
}
}