Bug 221877 - [api tooling] test failure in N20080307-0100
Summary: [api tooling] test failure in N20080307-0100
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.3 M5   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 332772
Blocks:
  Show dependency tree
 
Reported: 2008-03-07 11:25 EST by Olivier Thomann CLA
Modified: 2013-01-03 15:45 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2008-03-07 11:25:36 EST
there should be 4 resources with filters expected:<4> but was:<0>

junit.framework.AssertionFailedError: there should be 4 resources with filters expected:<4> but was:<0>
at org.eclipse.pde.api.tools.model.tests.ApiFilterStoreTests.assertFilterStore(ApiFilterStoreTests.java:98)
at org.eclipse.pde.api.tools.model.tests.ApiFilterStoreTests.testAnnotateStoreFromLocalFile(ApiFilterStoreTests.java:150)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:354)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:206)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:35)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:547)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:362)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
at org.eclipse.core.launcher.Main.main(Main.java:30)

Test runs fine when executed locally. I'll investigate using the test framework.
Comment 1 Michael Rennie CLA 2008-03-24 11:26:05 EDT
haven't seen this test fial for weeks.

closing as worksforme
Comment 2 Curtis Windatt CLA 2012-12-21 14:36:25 EST
Reopening, the reason why this test failure wasn't seen for a long time is because the test was disabled.  I will reenable it as part of changes for bug 332772, but we will have to keep our eye out for any failures.
Comment 3 Curtis Windatt CLA 2012-12-21 17:13:10 EST
In addition to some fixes to ApiFilterStore the example api filter ids were way out of date.  The tests should be fixed when the changes for Bug 332772 get merged into master:

http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?h=cwindatt/bug332772_filter_use_scans&id=9b41ed90e55c5a58d45c9a79d7b9a08b743c5c42
Comment 4 Curtis Windatt CLA 2013-01-03 15:45:05 EST
This test passes with the changes merged into master.