Re: Getting a ISVNClientAdapter in an Eclipse plugin test

Mark Phippard <[email protected]> Wed, 23 Apr 2014 17:54:58 -0400
Newsgroups gmane.comp.version-control.subversion.subclipse.user
Message-ID <[email protected]>
Can you require Subclipse core and then use the SVNProviderPlugin.getPlugin().getSVNCliient() method it provides to get it?


Mark

> On Apr 23, 2014, at 5:34 PM, Robert Munteanu <[email protected]> wrote:
> 
> 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]].

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

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