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 250477 - "test package" in context menu gets compile errors
Summary: "test package" in context menu gets compile errors
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Test Runner (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-17 21:26 UTC by err
Modified: 2015-02-26 11:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project with the issue (24.18 KB, text/plain)
2015-02-17 21:28 UTC, err
Details

Note You need to log in before you can comment on or make changes to this bug.
Description err 2015-02-17 21:26:52 UTC
In the attached test project, the two unit tests under "Test Packages" run
correctly when individually run. The "TestSuite.java" runs correctly.

In the context menu when the mouse is over either
"source Packages"/org.metawb.lib or "Test Packages"/org.metawb.lib
there is menu item "Test Package". Selecting this produces errors
when attempting to compile each of the two unit tests.

=== output showing typical errors ===
...
Compiling 2 source files to C:\a\src\bugs\UnitTestCompileBug\build\test\classes
C:\a\src\bugs\UnitTestCompileBug\test\org\metawb\lib\DMSTest.java:279: error: cannot find symbol
    static private void testConstructorCommon(String tag, DMS d, String exp) {
  symbol:   class DMS
  location: class DMSTest
...
C:\a\src\bugs\UnitTestCompileBug\test\org\metawb\lib\UtilTest.java:80: error: cannot find symbol
                = Util.buildMapFromResource(mapFileName, clazz, dir);
  symbol:   variable Util
  location: class UtilTest
...
31 errors
C:\a\src\bugs\UnitTestCompileBug\nbproject\build-impl.xml:1250: The following error occurred while executing this line:
C:\a\src\bugs\UnitTestCompileBug\nbproject\build-impl.xml:263: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)



Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07
Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 err 2015-02-17 21:28:20 UTC
Created attachment 152043 [details]
Test project with the issue