This is an automated email from the ASF dual-hosted git repository.
sgoeschl pushed a commit to branch FREEMARKER-188
in repository https://gitbox.apache.org/repos/asf/freemarker-generator.git
The following commit(s) were added to refs/heads/FREEMARKER-188 by this push:
new 0733770 FREEMARKER-188 Fix broken unit test
0733770 is described below
commit 073377053692b9bb166a2b762720bb0e3a16dc80
Author: Siegfried Goeschl <[email protected]>
AuthorDate: Wed Sep 8 21:46:55 2021 +0200
FREEMARKER-188 Fix broken unit test
---
.../cli/config/output/DataSourceSeedingOutputMapperTest.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/freemarker-generator-cli/src/test/java/org/apache/freemarker/generator/cli/config/output/DataSourceSeedingOutputMapperTest.java
b/freemarker-generator-cli/src/test/java/org/apache/freemarker/generator/cli/config/output/DataSourceSeedingOutputMapperTest.java
index 8e81ca8..494a2ad 100644
---
a/freemarker-generator-cli/src/test/java/org/apache/freemarker/generator/cli/config/output/DataSourceSeedingOutputMapperTest.java
+++
b/freemarker-generator-cli/src/test/java/org/apache/freemarker/generator/cli/config/output/DataSourceSeedingOutputMapperTest.java
@@ -63,7 +63,9 @@ public class DataSourceSeedingOutputMapperTest {
private static String path(File file) {
final File workingDir = new File(".");
final String relativePath = FileUtils.getRelativePath(workingDir,
file);
- return StringUtils.isEmpty(relativePath) ?
- file.getName() : fixSeparators(relativePath) +
File.separatorChar + file.getName();
+
+ return fixSeparators(StringUtils.isEmpty(relativePath) ?
+ file.getName() :
+ relativePath + File.separatorChar + file.getName());
}
}