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 252759 - tools create/update test doesn't work
Summary: tools create/update test doesn't work
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P1 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2015-06-02 17:10 UTC by Tomas Stupka
Modified: 2015-06-05 02:38 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 Tomas Stupka 2015-06-02 17:10:39 UTC
Product Version = NetBeans IDE Dev (Build 20150602-5f5bd458d4ed)
Operating System = Mac OS X version 10.10.3 running on x86_64
Java; VM; Vendor = 1.7.0_80
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.80-b11

- create a new java app
- select a java file
- tools > create/update tests

nothing happens and there is an exception in the log 
INFO: No FileObject found for the following URL: file:/Users/tomas/NetBeansProjects/JavaApplication3/test/
java.lang.IllegalStateException: No FileObject found for the following URL: file:/Users/tomas/NetBeansProjects/JavaApplication3/test/
	at org.netbeans.modules.java.testrunner.CommonTestUtil.getTestTargets(CommonTestUtil.java:155)
	at org.netbeans.modules.java.testrunner.JavaUtils.getTestSourceRoots(JavaUtils.java:231)
	at org.netbeans.modules.java.testrunner.ui.JavaTestCreatorConfigurationProvider.getTestSourceRoots(JavaTestCreatorConfigurationProvider.java:442)
	at org.netbeans.modules.gsf.testrunner.ui.CommonTestsCfgOfCreate.setupLocationChooser(CommonTestsCfgOfCreate.java:1000)
	at org.netbeans.modules.gsf.testrunner.ui.CommonTestsCfgOfCreate.fillFormData(CommonTestsCfgOfCreate.java:984)
	at org.netbeans.modules.gsf.testrunner.ui.CommonTestsCfgOfCreate.fireFrameworkChanged(CommonTestsCfgOfCreate.java:529)
	at org.netbeans.modules.gsf.testrunner.ui.CommonTestsCfgOfCreate.addTestingFrameworks(CommonTestsCfgOfCreate.java:577)
	at org.netbeans.modules.gsf.testrunner.ui.api.TestCreatorPanelDisplayer.displayPanel(TestCreatorPanelDisplayer.java:105)
	at org.netbeans.modules.gsf.testrunner.ui.TestCreatorAction.performAction(TestCreatorAction.java:129)
	at org.openide.util.actions.NodeAction.performAction(NodeAction.java:295)
	at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:130)
	at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
	at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
	at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
	at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:127)
	at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:283)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
Comment 1 Theofanis Oikonomou 2015-06-03 09:43:41 UTC
Reproducible. The exception is "to be expected" and plays no role in this behavior. This is due to recent changes in junit area related to bug 245637. I will investigate asap.
Comment 2 Theofanis Oikonomou 2015-06-03 09:57:29 UTC
Fixed: http://hg.netbeans.org/core-main/rev/68af0504ec73. Thanks for catching
Comment 3 Quality Engineering 2015-06-05 02:38:43 UTC
Integrated into 'main-silver', will be available in build *201506050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/68af0504ec73
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Bug 252759 - tools create/update test doesn't work