destin / maven-test-support-plugin

Apache License 2.0
10 stars 4 forks source link

IntelliJ IDEA 2017.1 - NoSuchMethodError #14

Closed tibormucha closed 7 years ago

tibormucha commented 7 years ago

selecting "Show Test Results" cause exception after IntelliJ IDEA 2017.1 Build #IU-171.3780.107, built on March 22, 2017

com.intellij.execution.testframework.sm.runner.events.TestFinishedEvent.<init>(Ljava/lang/String;Ljava/lang/String;J)V
java.lang.NoSuchMethodError: com.intellij.execution.testframework.sm.runner.events.TestFinishedEvent.<init>(Ljava/lang/String;Ljava/lang/String;J)V
    at org.dpytel.intellij.plugin.maventest.ReportParser.parseTestCase(ReportParser.java:85)
    at org.dpytel.intellij.plugin.maventest.ReportParser.parseTestSuite(ReportParser.java:59)
    at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.parseAndAddToRoot(SurefireTestReportsParser.java:101)
    at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.addReports(SurefireTestReportsParser.java:89)
    at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.processReportsDir(SurefireTestReportsParser.java:81)
    at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.parseReportFiles(SurefireTestReportsParser.java:71)
    at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.parseReports(SurefireTestReportsParser.java:56)
    at org.dpytel.intellij.plugin.maventest.toolwindow.MavenTestConsoleProperties$1.lambda$onStartTesting$0(MavenTestConsoleProperties.java:60)
    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
destin commented 7 years ago

Thanks for letting me know. Seemingly JetBrains again tweaks the API for displaying test results :disappointed:

I will take a look at it even today.

arngrimur commented 7 years ago

Can verify this bug, com.intellij.execution.testframework.sm.runner.events.TestFinishedEvent.<init>(Ljava/lang/String;Ljava/lang/String;J)V java.lang.NoSuchMethodError: com.intellij.execution.testframework.sm.runner.events.TestFinishedEvent.<init>(Ljava/lang/String;Ljava/lang/String;J)V at org.dpytel.intellij.plugin.maventest.ReportParser.parseTestCase(ReportParser.java:85) at org.dpytel.intellij.plugin.maventest.ReportParser.parseTestSuite(ReportParser.java:59) at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.parseAndAddToRoot(SurefireTestReportsParser.java:101) at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.addReports(SurefireTestReportsParser.java:89) at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.processReportsDir(SurefireTestReportsParser.java:81) at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.parseReportFiles(SurefireTestReportsParser.java:71) at org.dpytel.intellij.plugin.maventest.SurefireTestReportsParser.parseReports(SurefireTestReportsParser.java:56) at org.dpytel.intellij.plugin.maventest.toolwindow.MavenTestConsoleProperties$1.lambda$onStartTesting$0(MavenTestConsoleProperties.java:60) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

destin commented 7 years ago

Thank you both for raising this. I've just uploaded fixed version to JetBrains. Should be available for update soon.

arngrimur commented 7 years ago

Thanks for the good work and quick response. Very much appreciated!

tibormucha commented 7 years ago

@arngrimur you are welcome @destin thx for fixing

tested, it works