]> source.dussan.org Git - sonarqube.git/commitdiff
Trying to fix the build on windows
authorDavid Gageot <david@gageot.net>
Tue, 1 May 2012 06:50:03 +0000 (08:50 +0200)
committerDavid Gageot <david@gageot.net>
Tue, 1 May 2012 06:50:03 +0000 (08:50 +0200)
plugins/sonar-pmd-plugin/src/test/java/org/sonar/plugins/pmd/PmdConfigurationTest.java

index 1964f5c9538e3cba00e2db4ba00b6cb6fc6f7780..411eaa387d7ed72b6e5b0cd6acf63bf13f0031f3 100644 (file)
@@ -90,7 +90,7 @@ public class PmdConfigurationTest {
 
   @Test
   public void should_dump_xml_report() throws IOException {
-    when(fs.writeToWorkingDirectory(matches(".*[\r\n]*<pmd.*[\r\n].*</pmd>"), eq("pmd-result.xml"))).thenReturn(new File("/workingDir/pmd-result.xml"));
+    when(fs.writeToWorkingDirectory(matches("(?s).*<pmd.*>.*</pmd>"), eq("pmd-result.xml"))).thenReturn(new File("/workingDir/pmd-result.xml"));
 
     settings.setProperty(PmdConfiguration.PROPERTY_GENERATE_XML, true);
     File reportFile = configuration.dumpXmlReport(new Report());