Getting a ISVNClientAdapter in an Eclipse plugin test

Robert Munteanu <[email protected]> Wed, 23 Apr 2014 14:34:32 -0700 (PDT)
Newsgroups gmane.comp.version-control.subversion.subclipse.user
Message-ID <198178107.2101.1398288872296.JavaMail.httpd@localhost>
Hi,

The Eclipse plugin I'm developing - ereviewboard - depends on Subclipse for certain features. I need to narrow down some bugs so I'm trying to write Eclipse plug-in tests for that.

What I want to achieve is get a ISVNClientAdapter, so I tried the following:

1. created an Eclipse test plugin, with the requirements

Require-Bundle: org.junit,
 org.tigris.subversion.clientadapter,
 org.tmatesoft.svnkit,
 org.tigris.subversion.clientadapter.svnkit

2. Created a basic JUnit test

    @Test
    public void diffCreatorStuff() throws IOException, ClientException, SVNClientException {

        ISVNClientAdapter svnClient = SVNClientAdapterFactory.createSVNClient("svnkit");

        assertThat("svnClient is null", svnClient, notNullValue());

     }

3. Tried to execute the test, both as JUnit Plug-in test in Eclipse and using Tycho.

Both tests fail, with the svnClient instance being null. I think that all that is needed is for the org.tigris.subversion.clientadapter.svnkit bundle to be present in the Eclipse environment, but I might be wrong.

That being said, any idea on how to solve/debug this problem is welcome.

Thanks!

Robert

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=3076941

To unsubscribe from this discussion, e-mail: [[email protected]].