From 41d54c3f7ead1f2464fe3b885ebfacb9cc1cb390 Mon Sep 17 00:00:00 2001 From: "Vladislav.Soroka" Date: Tue, 21 Oct 2014 13:14:13 +0400 Subject: [PATCH] IDEA-131624 Unit tests run from within IDEA are missing system properties defined in pom --- .../org/jetbrains/idea/maven/execution/MavenJUnitPatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenJUnitPatcher.java b/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenJUnitPatcher.java index cb612cebdc1c..7636a02fe98b 100644 --- a/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenJUnitPatcher.java +++ b/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenJUnitPatcher.java @@ -63,7 +63,7 @@ public class MavenJUnitPatcher extends JUnitPatcher { } } - if (testRunningSettings.isPassEnvironmentVariables() && isEnabled("systemPropertyVariables")) { + if (testRunningSettings.isPassSystemProperties() && isEnabled("systemPropertyVariables")) { Element systemPropertyVariables = config.getChild("systemPropertyVariables"); if (systemPropertyVariables != null) { for (Element element : systemPropertyVariables.getChildren()) {