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 95968 - apisupport tests uncompilable
Summary: apisupport tests uncompilable
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: TEST
Depends on:
Blocks: 95366
  Show dependency tree
 
Reported: 2007-02-19 20:15 UTC by Jesse Glick
Modified: 2007-02-20 17:53 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 Jesse Glick 2007-02-19 20:15:02 UTC
Probably due to issue #95366 changes. Please do not commit anything until tests
compile and pass.

/space/src/nb_all/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/SuiteLogicalViewTest.java:32:
cannot find symbol
symbol  : class ModulesNode
location: class org.netbeans.modules.apisupport.project.ui.SuiteLogicalView
import
org.netbeans.modules.apisupport.project.ui.SuiteLogicalView.ModulesNode.ModuleChildren;
/space/src/nb_all/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/ModuleLogicalViewTest.java:64:
cannot find symbol
symbol  : variable IMPORTANT_FILES_NAME
location: class org.netbeans.modules.apisupport.project.ui.ModuleLogicalView
        Node iFiles =
root.getChildren().findChild(ModuleLogicalView.IMPORTANT_FILES_NAME);
/space/src/nb_all/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/ModuleLogicalViewTest.java:93:
cannot find symbol
symbol  : variable RP
location: class org.netbeans.modules.apisupport.project.ui.ModuleLogicalView
        ModuleLogicalView.RP.post(new Runnable() {
/space/src/nb_all/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/SuiteLogicalViewTest.java:58:
cannot find symbol
symbol  : class ModulesNode
location: class org.netbeans.modules.apisupport.project.ui.SuiteLogicalView
        Node modulesNode = new SuiteLogicalView.ModulesNode(suite1);
/space/src/nb_all/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/SuiteLogicalViewTest.java:63:
cannot find symbol
symbol  : class ModuleChildren
location: class org.netbeans.modules.apisupport.project.ui.SuiteLogicalViewTest
        final ModuleChildren children = (ModuleChildren) modulesNode.getChildren();
/space/src/nb_all/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/SuiteLogicalViewTest.java:63:
cannot find symbol
symbol  : class ModuleChildren
location: class org.netbeans.modules.apisupport.project.ui.SuiteLogicalViewTest
        final ModuleChildren children = (ModuleChildren) modulesNode.getChildren();
Comment 1 Milos Kleint 2007-02-19 20:42:20 UTC
sorry, I keep on forgetting about running unit test prior commits.

I've noticed the tests today in the morning, but failed to get them running 1.
because I have other modified stuff locally that breaks yet more tests.
2. it requires some magic skills with test module dependencies to get the tests
to pick up stuff from layer files.

commiting compilation fixes now, I'll address the failures on a clean box at
work tomorrow.
Comment 2 Milos Kleint 2007-02-20 13:40:44 UTC
compilable now, some tests are failing but I could not find a link to my changes
in them. I guess they are failing for a long time already.
Comment 3 pzajac 2007-02-20 17:53:20 UTC
Why not to add building tests to NetBeans continuous build?  

ant build-test-dist -Dtest.fail.on.error=false | grep "Failure for target"

Shows:
 [subant] Failure for target 'build-all-tests' of:
/home/pzajac/cvss/nbcvs/apisupport/project/build.xml
   [subant] Failure for target 'build-all-tests' of:
/home/pzajac/cvss/nbcvs/apisupport/samples/feedreader-sample-ui/build.xml
   [subant] Failure for target 'build-all-tests' of:
/home/pzajac/cvss/nbcvs/apisupport/samples/PaintApp-sample-ui/build.xml
   [subant] Failure for target 'build-all-tests' of:
/home/pzajac/cvss/nbcvs/web/jspparser/build.xml
   [subant] Failure for target 'build-all-tests' of:
/home/pzajac/cvss/nbcvs/serverplugins/jboss4/build.xml
   [subant] Failure for target 'build-all-tests' of:
/home/pzajac/cvss/nbcvs/web/jspsyntax/lexer/build.xml
   [subant] Failure for target 'build-all-tests' of:
/home/pzajac/cvss/nbcvs/versioncontrol/localhistory/build.xml