[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] Getting a ISVNClientAdapter in an Eclipse plugin test

From: Robert Munteanu <robert.munteanu_at_gmail.com>
Date: Wed, 23 Apr 2014 14:34:32 -0700 (PDT)

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: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2014-04-23 23:38:42 CEST

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.