Skip to content

Commit

Permalink
[ci] Use charset with filewriter
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Dec 10, 2022
1 parent 9ea182f commit 67cb10d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -82,7 +83,7 @@ void testcopyExternalResource_emptyStringAsFile() {
void testGetConfiguredTemplate() {
String templateName = "";

try (FileWriter fileWriter = new FileWriter(tempFile)) {
try (FileWriter fileWriter = new FileWriter(tempFile, StandardCharsets.UTF_8)) {
fileWriter.append("new_command.template=templates/col_new_template_migration.sql");
fileWriter.flush();
templateName = ExternalResources.getConfiguredTemplate(tempFile.getAbsolutePath(), "new_command.template");
Expand Down

0 comments on commit 67cb10d

Please sign in to comment.