Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 396760 - fix standalone tests for Bugzilla
Summary: fix standalone tests for Bugzilla
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: 3.9   Edit
Assignee: Frank Becker CLA
QA Contact: Frank Becker CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-17 10:03 EST by Steffen Pingel CLA
Modified: 2013-04-19 02:34 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (35.92 KB, application/octet-stream)
2013-04-18 16:45 EDT, Frank Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2012-12-17 10:03:14 EST
https://hudson.eclipse.org/hudson/user/spingel/my-views/view/Mylyn/job/mylyn-integration-standalone/

Test Results for Build 148

org.eclipse.mylyn.tests.AllHeadlessStandaloneTest
org.eclipse.mylyn.bugzilla.tests.core.BugzillaCustomFieldsTest

testCustomAttributes(org.eclipse.mylyn.bugzilla.tests.core.BugzillaCustomFieldsTest)

java.lang.NoClassDefFoundError: org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin
	at org.eclipse.mylyn.bugzilla.tests.AbstractBugzillaTest.setUp(AbstractBugzillaTest.java:67)
	

From https://bugs.eclipse.org/bugs/show_bug.cgi?id=393640:

	(In reply to comment #8)
	> (In reply to comment #5)
	> > Some standalone tests are now failing with this error:
	> >
	> >
	> https://hudson.eclipse.org/hudson/user/spingel/my-views/view/Mylyn/job/mylyn-integration-standalone/
	> >
	> > Test Results for Build 148
	> For the Bugzilla Tests if looks like we have an build problem because we did
	> not find class TasksUiPlugin.

The standalone tests do not load any of the UI bundles and must not have any UI dependencies. It's a problem in the tests that was introduced by a recent change.
Comment 1 Frank Becker CLA 2012-12-17 14:53:28 EST
This is related to bug#386344 see review https://git.eclipse.org/r/#/c/8489/4 we create class BugzillaHarness and change the parent of some tests from TestCase to AbstractBugzillaTest.

The classes are BugzillaCustomFieldsTest and BugzillaXmlRpcClientTest.

How can I setup the org.eclipse.mylyn.tests.AllHeadlessStandaloneTest tests not to load any UI bundles?
Comment 2 Steffen Pingel CLA 2013-04-18 08:54:45 EDT
Run the tests as plug-in tests and the select "Headless Mode" under Main > Run as application. You can reproduce the error that way. Frank, it would be great to get this resolved so we get back to a green build.
Comment 3 Frank Becker CLA 2013-04-18 16:45:05 EDT
now we have review https://git.eclipse.org/r/12038
Comment 4 Frank Becker CLA 2013-04-18 16:45:57 EDT
Created attachment 229882 [details]
mylyn/context/zip
Comment 5 Steffen Pingel CLA 2013-04-19 02:34:24 EDT
It looks like your change worked: https://hudson.eclipse.org/hudson/job/mylyn-integration-standalone/165/ ! Thanks very much for fixing this!