Mercurial > hg > mercurial
changeset 659:9dcedc28c5b6
add test for xml parsing
author | eugene.petrenko@gmail.com |
---|---|
date | Mon, 30 Sep 2013 20:46:23 +0200 |
parents | 256817bd4a0e |
children | 25cd8a5fd489 |
files | mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/CommitsInfoBuilderSupportTest.java mercurial-tests/testData/rep2/hg/store/00changelog.i mercurial-tests/testData/rep2/hg/store/phaseroots mercurial-tests/testData/rep2/hg/store/undo mercurial-tests/testData/rep2/hg/store/undo.phaseroots mercurial-tests/testData/rep2/hg/undo.bookmarks mercurial-tests/testData/rep2/hg/undo.branch mercurial-tests/testData/rep2/hg/undo.desc mercurial-tests/testData/rep2/hg/undo.dirstate |
diffstat | 7 files changed, 19 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/CommitsInfoBuilderSupportTest.java Mon Sep 30 20:30:40 2013 +0200 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/CommitsInfoBuilderSupportTest.java Mon Sep 30 20:46:23 2013 +0200 @@ -84,4 +84,19 @@ Assert.assertFalse(parents.contains(v)); } + + @Test + public void should_not_have_parse_errors() throws IOException, VcsException { + TestLogger.enableMainAndVCSLoggerDebug(); + + VcsRoot root = vcsRoot().withUrl(myRemoteRepo).build(); + + final List<CommitInfo> commitInfos = mySupport.collectCommits(root, CheckoutRules.DEFAULT, myVcs.getCollectChangesPolicy().getCurrentState(root)); + Assert.assertFalse(commitInfos.isEmpty()); + + for (CommitInfo commitInfo : commitInfos) { + System.out.println(commitInfo); + } + } + }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial-tests/testData/rep2/hg/store/phaseroots Mon Sep 30 20:46:23 2013 +0200 @@ -0,0 +1,1 @@ +1 ef4a538a17cf3e72eeffcc59140805a69e8c9b03
--- a/mercurial-tests/testData/rep2/hg/undo.branch Mon Sep 30 20:30:40 2013 +0200 +++ b/mercurial-tests/testData/rep2/hg/undo.branch Mon Sep 30 20:46:23 2013 +0200 @@ -1,1 +1,1 @@ -default \ No newline at end of file +<TEST> Branch with exitics)(*&^%$#@! \ No newline at end of file