return changeset count for bundle and unbundle command

This commit is contained in:
Sebastian Sdorra
2014-11-02 17:55:59 +01:00
parent 1b7ab0a35d
commit 3e6ef0ce65
7 changed files with 165 additions and 8 deletions

View File

@@ -77,7 +77,8 @@ public class SvnBundleCommandTest extends AbstractSvnCommandTestBase
BundleResponse res = new SvnBundleCommand(createContext(),
repository).bundle(req);
assertNotNull(res);
assertThat(res, notNullValue());
assertThat(res.getChangesetCount(), is(5l));
assertTrue("file does not exists", file.exists());
assertThat(file.length(), greaterThan(0l));
}

View File

@@ -86,7 +86,8 @@ public class SvnUnbundleCommandTest extends AbstractSvnCommandTestBase
);
//J+
assertNotNull(res);
assertThat(res, notNullValue());
assertThat(res.getChangesetCount(), is(5l));
SVNRepository repo = ctx.open();