3
3
import java .io .File ;
4
4
import java .io .FileInputStream ;
5
5
import java .io .IOException ;
6
- import java .io .InputStream ;
6
+ import java .io .InputStreamReader ;
7
7
import java .util .Properties ;
8
8
9
9
public class HelperUtils {
@@ -25,7 +25,7 @@ public class HelperUtils {
25
25
// Load the base test properties from "src/test/resources/test-gitlab4j.properties"
26
26
File propertiesFile = new File (basedir , "src/test/resources/test-gitlab4j.properties" );
27
27
if (propertiesFile .exists ()) {
28
- try (InputStream input = new FileInputStream (propertiesFile )) {
28
+ try (InputStreamReader input = new InputStreamReader ( new FileInputStream (propertiesFile ) )) {
29
29
testProperties .load (input );
30
30
System .out .format ("Loaded base test properties from: %n%s%n" , propertiesFile .getAbsolutePath ());
31
31
propertiesLoaded = true ;
@@ -37,7 +37,7 @@ public class HelperUtils {
37
37
// Now load the overriding test properties if found in the user's home directory
38
38
propertiesFile = new File ((String ) System .getProperties ().get ("user.home" ), "test-gitlab4j.properties" );
39
39
if (propertiesFile .exists ()) {
40
- try (InputStream input = new FileInputStream (propertiesFile )) {
40
+ try (InputStreamReader input = new InputStreamReader ( new FileInputStream (propertiesFile ) )) {
41
41
testProperties .load (input );
42
42
System .out .format ("Loaded overriding test properties from: %n%s%n" , propertiesFile .getAbsolutePath ());
43
43
propertiesLoaded = true ;
0 commit comments