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 93778 - Failing tests in search API
Summary: Failing tests in search API
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marian Petras
URL: http://ffjqa.czech:8080/unittest/Test...
Keywords: TEST
Depends on: 110940
Blocks:
  Show dependency tree
 
Reported: 2007-02-01 10:58 UTC by Jaroslav Tulach
Modified: 2007-07-26 18:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the failure (12.44 KB, text/html)
2007-02-01 10:59 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2007-02-01 10:58:49 UTC
testPlainSearchInfo  fail  Files differ; 
check /space/test4u2/builds/bindist_netbeans_Dev_daily_latest/unit/ide8/org-openidex-util/work/user/org.openidex.search.SearchIteratorTest/testPlainSearchInfo/testPlainSearchInfo.diff  
Yes  2168
  testVisibilitySearchInfo  fail  Files differ; 
check /space/test4u2/builds/bindist_netbeans_Dev_daily_latest/unit/ide8/org-openidex-util/work/user/org.openidex.search.SearchIteratorTest/testVisibilitySearchInfo/testVisibilitySearchInfo.diff  
Yes  379
  testSharabilitySearchInfo  fail  Files differ; 
check /space/test4u2/builds/bindist_netbeans_Dev_daily_latest/unit/ide8/org-openidex-util/work/user/org.openidex.search.SearchIteratorTest/testSharabilitySearchInfo/testSharabilitySearchInfo.diff  
Yes  1269
  testVisibSharSearchInfo  pass  Yes  121
  testNonRecursiveSearchInfo
Comment 1 Jaroslav Tulach 2007-02-01 10:59:20 UTC
Created attachment 37912 [details]
the failure
Comment 3 Antonin Nebuzelsky 2007-07-23 10:29:14 UTC
> If the issue is not resolved by end of May, I'll not hesitate to rollback the code changes

Mariane, you should do something with the test right now.

Otherwise prepare a reasoning for waiving this P2...
Comment 4 Marian Petras 2007-07-25 14:37:30 UTC
Partially fixed.

Now it fails due to AssertionErrors thrown from openide/loaders - see bug #110940 ("AssertionError from
FolderList.getChildrenList").
Comment 5 Marian Petras 2007-07-25 14:42:44 UTC
I forgot to attach the list of modified files:

   openidex/nbproject/project.xml   (1.9)
   openidex/test/cfg-unit.xml   (1.12)

Diffs:
http://openidex.netbeans.org/source/browse/openidex/nbproject/project.xml?r1=1.8&r2=1.9&diff_format=u
http://openidex.netbeans.org/source/browse/openidex/test/cfg-unit.xml?r1=1.11&r2=1.12&diff_format=u
Comment 6 Marian Petras 2007-07-26 18:39:12 UTC
Fixed.

I added custom definitions of visibility and sharability (VisibilityQuery, SharabilityQuery) and accomodated the golden
files and the test itself appropriately.

New and modified files:
   src/org/openidex/search/SharabilityQueryImpl.java   (1.1 - new)
   src/org/openidex/search/VisibilityQueryImpl.java   (1.1 - new)
   src/META-INF/services/org.netbeans.spi.queries.SharabilityQueryImplementation   (1.1 - new)
   src/META-INF/services/org.netbeans.spi.queries.VisibilityQueryImplementation   (1.1 - new)
   data/goldenfiles/org/openidex/search/SearchIteratorTest/testPlainSearchInfo.pass   (1.2)
   data/goldenfiles/org/openidex/search/SearchIteratorTest/testSharabilitySearchInfo.pass   (1.2)
   data/goldenfiles/org/openidex/search/SearchIteratorTest/testNonRecursiveSearchInfo.pass   (1.2)
   src/org/openidex/search/SearchIteratorTest.java   (1.7)

Diffs:
http://openidex.netbeans.org/source/browse/openidex/test/unit/src/org/openidex/search/SharabilityQueryImpl.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://openidex.netbeans.org/source/browse/openidex/test/unit/src/org/openidex/search/VisibilityQueryImpl.java?rev=1.1&content-type=text/vnd.viewcvs-markup
http://openidex.netbeans.org/source/browse/openidex/test/unit/src/META-INF/services/org.netbeans.spi.queries.SharabilityQueryImplementation?rev=1.1&content-type=text/vnd.viewcvs-markup
http://openidex.netbeans.org/source/browse/openidex/test/unit/src/META-INF/services/org.netbeans.spi.queries.VisibilityQueryImplementation?rev=1.1&content-type=text/vnd.viewcvs-markup
http://openidex.netbeans.org/source/browse/openidex/test/unit/data/goldenfiles/org/openidex/search/SearchIteratorTest/testPlainSearchInfo.pass?r1=1.1&r2=1.2&diff_format=u
http://openidex.netbeans.org/source/browse/openidex/test/unit/data/goldenfiles/org/openidex/search/SearchIteratorTest/testSharabilitySearchInfo.pass?r1=1.1&r2=1.2&diff_format=u
http://openidex.netbeans.org/source/browse/openidex/test/unit/data/goldenfiles/org/openidex/search/SearchIteratorTest/testNonRecursiveSearchInfo.pass?r1=1.1&r2=1.2&diff_format=u
http://openidex.netbeans.org/source/browse/openidex/test/unit/src/org/openidex/search/SearchIteratorTest.java?r1=1.6&r2=1.7&diff_format=u