From 44023b33d97d874e79ecd11efe745f004063e8b7 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 5 Jul 2017 14:32:37 +0200 Subject: Fix tests on Windows --- .../java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonar-scanner-engine') diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java index 4a7800668e3..bf8091f5853 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java @@ -64,7 +64,7 @@ public class InputFileBuilderTest { DefaultInputFile inputFile = builder.create(filePath, Type.MAIN, StandardCharsets.UTF_8); assertThat(inputFile.moduleKey()).isEqualTo("module1"); - assertThat(inputFile.absolutePath()).isEqualTo(filePath.toString()); + assertThat(inputFile.absolutePath()).isEqualTo(filePath.toString().replaceAll("\\\\", "/")); assertThat(inputFile.key()).isEqualTo("module1:src/File1.xoo"); assertThat(inputFile.publish()).isFalse(); } -- cgit v1.2.3