mirror of
https://github.com/octoleo/plantuml.git
synced 2024-06-07 02:40:52 +00:00
e11d974ce5
Create `test` folder with: - `example` - `utils` And put all `net.sourceforge.plantuml.test` on `test.utils`. _[no other change]_
17 lines
364 B
Java
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));
|
|
}
|
|
}
|