File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/test/java/org/apache/ibatis/io Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2121import java .io .FileNotFoundException ;
2222import java .io .FileWriter ;
2323import java .io .IOException ;
24+ import java .nio .charset .StandardCharsets ;
2425
2526import org .junit .jupiter .api .AfterEach ;
2627import org .junit .jupiter .api .BeforeEach ;
@@ -82,7 +83,7 @@ void testcopyExternalResource_emptyStringAsFile() {
8283 void testGetConfiguredTemplate () {
8384 String templateName = "" ;
8485
85- try (FileWriter fileWriter = new FileWriter (tempFile )) {
86+ try (FileWriter fileWriter = new FileWriter (tempFile , StandardCharsets . UTF_8 )) {
8687 fileWriter .append ("new_command.template=templates/col_new_template_migration.sql" );
8788 fileWriter .flush ();
8889 templateName = ExternalResources .getConfiguredTemplate (tempFile .getAbsolutePath (), "new_command.template" );
You can’t perform that action at this time.
0 commit comments