|
27 | 27 | import junitparams.JUnitParamsRunner;
|
28 | 28 | import junitparams.Parameters;
|
29 | 29 | import org.junit.runner.RunWith;
|
30 |
| -import pl.project13.core.util.PropertyManager; |
| 30 | +import pl.project13.core.CommitIdPropertiesOutputFormat; |
| 31 | +import pl.project13.core.util.GenericFileManager; |
31 | 32 |
|
32 | 33 | import static java.util.Arrays.asList;
|
33 | 34 | import static org.assertj.core.api.Assertions.assertThat;
|
@@ -76,14 +77,15 @@ public void shouldConformPropertiesFileWhenSpecialCharactersInValueString(boolea
|
76 | 77 | // when the properties file is conform
|
77 | 78 | // it does not matter if we read as UTF-8 or ISO-8859-1
|
78 | 79 | {
|
79 |
| - |
80 |
| - Properties propertiesFromFile = PropertyManager.readProperties(expectedFile, StandardCharsets.UTF_8); |
| 80 | + Properties propertiesFromFile = GenericFileManager.readProperties( |
| 81 | + CommitIdPropertiesOutputFormat.PROPERTIES, expectedFile, StandardCharsets.UTF_8); |
81 | 82 | assertGitPropertiesPresentInProject(propertiesFromFile);
|
82 | 83 | assertThat(propertiesFromFile.get("git.commit.message.full"))
|
83 | 84 | .isEqualTo(propertiesInProject.get("git.commit.message.full"));
|
84 | 85 | }
|
85 | 86 | {
|
86 |
| - Properties propertiesFromFile = PropertyManager.readProperties(expectedFile, StandardCharsets.ISO_8859_1); |
| 87 | + Properties propertiesFromFile = GenericFileManager.readProperties( |
| 88 | + CommitIdPropertiesOutputFormat.PROPERTIES, expectedFile, StandardCharsets.ISO_8859_1); |
87 | 89 | assertGitPropertiesPresentInProject(propertiesFromFile);
|
88 | 90 | assertThat(propertiesFromFile.get("git.commit.message.full"))
|
89 | 91 | .isEqualTo(propertiesInProject.get("git.commit.message.full"));
|
|
0 commit comments