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 83185

Summary: editor unit tests are uncompilable
Product: apisupport Reporter: pzajac <pzajac>
Component: HarnessAssignee: pzajac <pzajac>
Status: RESOLVED FIXED    
Severity: blocker CC: msauer
Priority: P2 Keywords: TEST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 83174    

Description pzajac 2006-08-22 14:17:19 UTC
cd editor
ant test

 [javac] Compiling 16 source files to
/home/pzajac/cvss/freshtrunk/editor/build/test/unit/classes
    [xtest]
/home/pzajac/cvss/freshtrunk/editor/test/unit/src/org/netbeans/modules/editor/openide/InheritedNbDocumentTest.java:34:
cannot find symbol
    [xtest] symbol: class NbDocumentTest
    [xtest] public class InheritedNbDocumentTest extends NbDocumentTest {
    [xtest]                                              ^
    [xtest]
/home/pzajac/cvss/freshtrunk/editor/test/unit/src/org/netbeans/modules/editor/openide/InheritedNotifyModifiedTest.java:29:
cannot find symbol
    [xtest] symbol: class NotifyModifiedOnNbEditorLikeKitTest
    [xtest] public class InheritedNotifyModifiedTest extends
NotifyModifiedOnNbEditorLikeKitTest {
    [xtest]                                                  ^
    [xtest]
/home/pzajac/cvss/freshtrunk/editor/test/unit/src/org/netbeans/modules/editor/openide/InheritedUndoRedoTest.java:29:
cannot find symbol
    [xtest] symbol: class UndoRedoCooperationTest
    [xtest] public class InheritedUndoRedoTest extends UndoRedoCooperationTest {
    [xtest]                                            ^
    [xtest] 3 errors

Please remove at least cfg-unit.xml file to exclude tests from  binary test
distribution. For details look at #83174.
Comment 1 Jiri Prox 2006-08-22 15:07:33 UTC
Tests from openide/text must be compiled first
Comment 2 Max Sauer 2006-08-23 10:38:09 UTC
This issue is still valid.

[ms159439@roman-ws editor]$ ant test-build
ends with "BUILD FAILED"
Comment 3 Max Sauer 2006-08-23 12:29:31 UTC
Jirka was right, sorry => WORKSFORME.
Comment 4 pzajac 2006-08-28 08:42:52 UTC
SortSuite modules ant tasks doesn't sort test dependencies.
Comment 5 pzajac 2006-08-28 09:09:01 UTC
IDE: [8/28/06 10:00 AM] Committing Files started
Checking in test/unit/src/org/netbeans/nbbuild/SortSuiteModulesTest.java;
/cvs/nbbuild/test/unit/src/org/netbeans/nbbuild/SortSuiteModulesTest.java,v  <--
 SortSuiteModulesTest.java
new revision: 1.2; previous revision: 1.1
done
Checking in build.xml;
/cvs/nbbuild/build.xml,v  <--  build.xml
new revision: 1.754; previous revision: 1.753
done
Checking in antsrc/org/netbeans/nbbuild/SortSuiteModules.java;
/cvs/nbbuild/antsrc/org/netbeans/nbbuild/SortSuiteModules.java,v  <-- 
SortSuiteModules.java
new revision: 1.5; previous revision: 1.4
done