Hi Steffen, thanks for your fast response. With your suggestion, I got at first a "java.lang.Exception: No runnable methods" which is clear because I use Junit 4 styled annotation rather than testXYZ method names.
I add JUNIT 4 as required plugin and now it works. It's not exactly what I've expected, because I thought it's testable without all the <start-new-eclipse-app> , but it's better than manually click'n'go... Thanks a lot Dominik -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Steffen Pingel Gesendet: Montag, 15. Dezember 2008 22:06 An: Mylyn Integrators list Betreff: Re: [mylyn-integrators] NoClassDefFound for repository connector unittests Try running the test as a JUnit Plug-in Test and verify that the Plug-in configuration validates on the Plug-ins tab (Run > Run Configurations). Also make sure that your target environment is setup correctly and points to the full Eclipse SDK (Preferences > Plug-in Development > Target Platform). Steffen On 12/15/08, Dominik Hirt <[email protected]> wrote: Hi, I'm trying to implement a mylyn connector for the tracker used by our company. I've wrote a first draft with getting (query) the issues from the repository and show these issues in the tasklist. This works pretty well. Then I start writing unit tests like this: public class MKSRepositoryConnectorTest { MKSRepositoryConnector connector; @Before public void setup() { connector = (MKSRepositoryConnector)TasksUi.getRepositoryConnector(MKSRepositoryConn ector.CONNECTOR_KIND); } @Test public void testConnector() { assertNotNull(connector); } } But everytime I get the following exception. java.lang.NoClassDefFoundError: org/eclipse/core/net/proxy/IProxyChangeListener at org.eclipse.mylyn.tasks.ui.TasksUi.getRepositoryManager(TasksUi.java:39) at org.eclipse.mylyn.tasks.ui.TasksUi.getRepositoryConnector(TasksUi.java:3 1) at com.wincor.mmc.MKSRepositoryConnectorTest.setup(MKSRepositoryConnectorTe st.java:21) The reason for that is clear, but I can't solve the problem: IProxyChangeListener.class is part of the plugin org.eclipse.core.net This plugin is located in the dependency hierarchy for org.eclipse.mylyn.tasks.ui which is direct required by my connector plugin. Here a sketch of the plugin dependency hierarchy: myConnectorPlugin - plugin1 - plugin2 - org.eclipse.mylyn.tasks.ui - plugin3 - org.eclipse.core.net The runtime classpath of the launch config of MKSRepositoryConnectorTest contains the "Plug-in Dependencies" but obviously only the first level, not recursive into lower levels of the dependency hierarchy... I've test also with separate eclipse projects for core and test ... With the same result. I export the "Plug-In dependencies" ... Nothing. I'm looking for help by googling... Nothing. Then, I checkout org.eclipse.mylyn.trac.tests from Eclipse Mylyn CVS ... and got the same result for the TracRepositoryConnectorTest: There is a line connector = (TracRepositoryConnector) TasksUi.getRepositoryConnector(TracCorePlugin.CONNECTOR_KIND); And for this line I get java.lang.NoClassDefFoundError: org/eclipse/core/net/proxy/IProxyChangeListener at org.eclipse.mylyn.tasks.ui.TasksUi.getRepositoryManager(TasksUi.java:39) at org.eclipse.mylyn.tasks.ui.TasksUi.getRepositoryConnector(TasksUi.java:3 1) at org.eclipse.mylyn.trac.tests.core.TracRepositoryConnectorTest.setUp(Trac RepositoryConnectorTest.java:72) Now I'm a little bit confused ... and need some help. Thanks in advance Dominik _______________________________________________ mylyn-integrators mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
_______________________________________________ mylyn-integrators mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
