This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250391 - TestRunner: Jump to source of testfailure does not work - if testmethod is inherited
Summary: TestRunner: Jump to source of testfailure does not work - if testmethod is in...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-12 10:42 UTC by markiewb
Modified: 2015-09-19 03:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2015-02-12 10:42:14 UTC
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.maven.junit.nodes.JumpAction$1
java.lang.IllegalArgumentException: fileObject == null
	at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:235)
	at org.netbeans.modules.maven.junit.nodes.OutputUtils.searchAllMethods(OutputUtils.java:263)
	at org.netbeans.modules.maven.junit.nodes.OutputUtils.access$000(OutputUtils.java:92)
	at org.netbeans.modules.maven.junit.nodes.OutputUtils$2.run(OutputUtils.java:232)
	at org.netbeans.modules.maven.junit.nodes.OutputUtils$2.run(OutputUtils.java:212)
	at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:493)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:598)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
	at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
	at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
	at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203)
	at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
	at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:443)
	at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:414)
	at org.netbeans.modules.maven.junit.nodes.OutputUtils.openTestMethod(OutputUtils.java:212)
	at org.netbeans.modules.maven.junit.nodes.OutputUtils.openCallstackFrame(OutputUtils.java:347)
	at org.netbeans.modules.maven.junit.nodes.JumpAction$1.run(JumpAction.java:90)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 markiewb 2015-02-12 14:06:00 UTC
It only happens when the testmethod is inherited from a baseClass.

F.e. execute the tests for ChildTest. Then doubleclick on the node testMe in the testrunner.

ACTUAL:
  Exception
EXPECTED:
 Jump to ParentTest#testMe


public class ChildTest extends ParentTest
{
}

public class ParentTest
{
  @Test
  public void testMe(){}

}
Comment 2 Theofanis Oikonomou 2015-09-18 09:05:09 UTC
Changeset: 8b8243f1d093
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-09-18 11:03
Message:
Comment 3 Theofanis Oikonomou 2015-09-18 09:05:54 UTC
Should work as expected now.
Comment 4 Quality Engineering 2015-09-19 03:04:50 UTC
Integrated into 'main-silver', will be available in build *201509190002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8b8243f1d093
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #250391 - TestRunner: Jump to source of testfailure does not work - if testmethod is inherited