Community
Participate
Working Groups
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.
haven't seen this test fial for weeks. closing as worksforme
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.
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
This test passes with the changes merged into master.