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 21
21
import java .io .FileNotFoundException ;
22
22
import java .io .FileWriter ;
23
23
import java .io .IOException ;
24
+ import java .nio .charset .StandardCharsets ;
24
25
25
26
import org .junit .jupiter .api .AfterEach ;
26
27
import org .junit .jupiter .api .BeforeEach ;
@@ -82,7 +83,7 @@ void testcopyExternalResource_emptyStringAsFile() {
82
83
void testGetConfiguredTemplate () {
83
84
String templateName = "" ;
84
85
85
- try (FileWriter fileWriter = new FileWriter (tempFile )) {
86
+ try (FileWriter fileWriter = new FileWriter (tempFile , StandardCharsets . UTF_8 )) {
86
87
fileWriter .append ("new_command.template=templates/col_new_template_migration.sql" );
87
88
fileWriter .flush ();
88
89
templateName = ExternalResources .getConfiguredTemplate (tempFile .getAbsolutePath (), "new_command.template" );
You can’t perform that action at this time.
0 commit comments