[testng] 260/355: Fix failing test on Windows.
Eugene Zhukov
eugene-guest at moszumanska.debian.org
Tue Aug 18 10:20:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
eugene-guest pushed a commit to annotated tag OpenBSD
in repository testng.
commit 2f919e3b1315ee82a3db9fc42b6373119ecfc30c
Author: Cedric Beust <cedric at beust.com>
Date: Sun May 3 19:28:50 2015 -0700
Fix failing test on Windows.
---
src/test/java/test/EclipseTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/java/test/EclipseTest.java b/src/test/java/test/EclipseTest.java
index 8c46e99..6260dad 100644
--- a/src/test/java/test/EclipseTest.java
+++ b/src/test/java/test/EclipseTest.java
@@ -14,6 +14,7 @@ public class EclipseTest {
@Test
public void xmlFileShouldBeRunAtItsPlaceAndNotCopied(ITestContext ctx) {
- Assert.assertTrue(ctx.getSuite().getXmlSuite().getFileName().contains("src/test/resources"));
+ String fileName = ctx.getSuite().getXmlSuite().getFileName().replace("\\", "/");
+ Assert.assertTrue(fileName.contains("src/test/resources"));
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git
More information about the pkg-java-commits
mailing list