From cddbc285a2f8dbe6f18d5b09ff90eed1f8a00ddf Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Wed, 28 Aug 2013 19:45:18 +0400 Subject: [PATCH] EA-48802 - assert: JavaFileManagerBase.findClass --- .../application/ApplicationConfiguration.java | 4 ++-- .../com/intellij/execution/JavaExecutionUtil.java | 15 ++++++++++----- .../execution/junit/JUnitConfiguration.java | 4 ++-- .../theoryinpractice/testng/model/TestData.java | 4 ++-- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/java/execution/impl/src/com/intellij/execution/application/ApplicationConfiguration.java b/java/execution/impl/src/com/intellij/execution/application/ApplicationConfiguration.java index a15f2de7d5fa..f98100026007 100644 --- a/java/execution/impl/src/com/intellij/execution/application/ApplicationConfiguration.java +++ b/java/execution/impl/src/com/intellij/execution/application/ApplicationConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -111,7 +111,7 @@ public class ApplicationConfiguration extends ModuleBasedConfiguration 1 ? " and " + (size - 1) + " more" : ""); } - final String className = JavaExecutionUtil.getPresentableClassName(getMainClassName(), configurationModule); + final String className = JavaExecutionUtil.getPresentableClassName(getMainClassName()); if (TEST_METHOD.equals(TEST_OBJECT)) { return className + '.' + getMethodName(); } diff --git a/plugins/testng/src/com/theoryinpractice/testng/model/TestData.java b/plugins/testng/src/com/theoryinpractice/testng/model/TestData.java index f88daee3e06b..55a6a3db11b5 100644 --- a/plugins/testng/src/com/theoryinpractice/testng/model/TestData.java +++ b/plugins/testng/src/com/theoryinpractice/testng/model/TestData.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -177,7 +177,7 @@ public class TestData implements Cloneable public String getGeneratedName(JavaRunConfigurationModule runconfigurationmodule) { if (TestType.PACKAGE.getType().equals(TEST_OBJECT)) if (getPackageName().length() == 0) return ""; else return getPackageName(); - String name = JavaExecutionUtil.getPresentableClassName(getMainClassName(), runconfigurationmodule); + String name = JavaExecutionUtil.getPresentableClassName(getMainClassName()); if (TestType.METHOD.getType().equals(TEST_OBJECT)) { return name + '.' + getMethodName(); }