From d1000ed0d0dc6a4a21f8aa8ad2b6645f62da51d9 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 29 Apr 2016 11:38:47 +0200 Subject: [PATCH] Fix unit test - wsdl has no rulesets yet --- .../java/net/sourceforge/pmd/AbstractLanguageVersionTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java b/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java index 7c0061f4b0..5787bd7e08 100644 --- a/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java +++ b/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java @@ -111,6 +111,8 @@ public class AbstractLanguageVersionTest { RuleSetFactory factory = new RuleSetFactory(); + if (rulesetFilenames.trim().isEmpty()) return; + String[] rulesets = rulesetFilenames.split(","); for (String r : rulesets) { InputStream stream = ResourceLoader.loadResourceAsStream(r);