test discovery: show tests for methods from anonymous classes, fix UI

This commit is contained in:
Sergey Ignatov
2018-03-27 17:05:37 +03:00
parent 825b313b38
commit d928e6e6af
@@ -104,7 +104,7 @@ public class ShowDiscoveredTestsAction extends AnAction {
String fqn = couple != null ? couple.first : null;
if (fqn == null || c == null) return;
String methodName = couple.second;
String methodPresentationName = c.getName() + "." + methodName;
String methodPresentationName = ClassUtil.extractClassName(fqn) + "." + methodName;
DataContext dataContext = DataManager.getInstance().getDataContext(e.getRequiredData(EDITOR).getContentComponent());
FeatureUsageTracker.getInstance().triggerFeatureUsed("test.discovery");