diff --git a/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java b/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java index daf085ae662c..cfcc53a22abc 100644 --- a/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java +++ b/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java @@ -84,7 +84,7 @@ public class JavaTestLocator implements SMTestLocator { for (Location location : locations) { PsiElement element = location.getPsiElement(); if (element instanceof PsiMethod) { - if (metainfo.equals(ClassUtil.getVMParametersMethodSignature((PsiMethod)element))) { + if (StringUtil.equalsIgnoreWhitespaces(metainfo, ClassUtil.getVMParametersMethodSignature((PsiMethod)element))) { return Collections.singletonList(location); } }