Search in sources :

Example 1 with CheckoutRequest

use of org.eclipse.che.plugin.svn.shared.CheckoutRequest in project che by eclipse.

the class SubversionApiITest method testCheckout.

/**
     * Tests for {@link SubversionApi#checkout(CheckoutRequest)}.
     *
     * @throws Exception
     *         if anything goes wrong
     */
@Test
public void testCheckout() throws Exception {
    CLIOutputWithRevisionResponse response = this.subversionApi.checkout(DtoFactory.getInstance().createDto(CheckoutRequest.class).withProjectPath(tmpDir.toFile().getAbsolutePath()).withUrl(repoUrl));
    assertTrue(response.getRevision() > -1);
}
Also used : CLIOutputWithRevisionResponse(org.eclipse.che.plugin.svn.shared.CLIOutputWithRevisionResponse) CheckoutRequest(org.eclipse.che.plugin.svn.shared.CheckoutRequest) Test(org.junit.Test)

Aggregations

CLIOutputWithRevisionResponse (org.eclipse.che.plugin.svn.shared.CLIOutputWithRevisionResponse)1 CheckoutRequest (org.eclipse.che.plugin.svn.shared.CheckoutRequest)1 Test (org.junit.Test)1