Search in sources :

Example 1 with ExceptionInfoCache

use of com.intellij.execution.filters.ExceptionInfoCache in project intellij-community by JetBrains.

the class ExceptionFilterTest method testNonClassInTheLine.

public void testNonClassInTheLine() throws Exception {
    ExceptionWorker worker = new ExceptionWorker(new ExceptionInfoCache(GlobalSearchScope.allScope(getProject())));
    String line = "2016-12-20 10:58:36,617 [   5740]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android Support (10.2.2), Ant Support (1.0), Application Servers View (0.2.0), AspectJ Support (1.2), CFML Support (3.53), CSS Support (163.7743.44), CVS Integration (11), Cloud Foundry integration (1.0), CloudBees integration (1.0), Copyright (8.1), Coverage (163.7743.44), DSM Analysis (1.0.0), Database Tools and SQL (1.0), Eclipse Integration (3.0), EditorConfig (163.7743.44), Emma (163.7743.44), Flash/Flex Support (163.7743.44)";
    worker.execute(line, line.length());
    assertNull(worker.getPsiClass());
}
Also used : ExceptionInfoCache(com.intellij.execution.filters.ExceptionInfoCache) ExceptionWorker(com.intellij.execution.filters.ExceptionWorker)

Example 2 with ExceptionInfoCache

use of com.intellij.execution.filters.ExceptionInfoCache in project intellij-community by JetBrains.

the class ExceptionFilterTest method testJava9ModulePrefixed.

public void testJava9ModulePrefixed() throws Throwable {
    PsiClass psiClass = myFixture.addClass("package p; public class A {\n" + "  public void foo() {}\n" + "}");
    ExceptionWorker worker = new ExceptionWorker(new ExceptionInfoCache(GlobalSearchScope.projectScope(getProject())));
    String line = "at mod.name/p.A.foo(A.java:2)";
    worker.execute(line, line.length());
    PsiClass aClass = worker.getPsiClass();
    assertNotNull(aClass);
    assertEquals(psiClass, aClass);
}
Also used : ExceptionInfoCache(com.intellij.execution.filters.ExceptionInfoCache) ExceptionWorker(com.intellij.execution.filters.ExceptionWorker) PsiClass(com.intellij.psi.PsiClass)

Aggregations

ExceptionInfoCache (com.intellij.execution.filters.ExceptionInfoCache)2 ExceptionWorker (com.intellij.execution.filters.ExceptionWorker)2 PsiClass (com.intellij.psi.PsiClass)1