Mercurial > hg > mercurial
changeset 740:7fe4a31c5a76
do not run test on older version of mercurial
author | eugene.petrenko@jetbrains.com |
---|---|
date | Thu, 23 Jan 2014 16:25:48 +0100 |
parents | c27df31c72fc |
children | fba173530aa6 |
files | mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/CommitsInfoBuilderSupportTest.java |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/CommitsInfoBuilderSupportTest.java Thu Jan 23 15:17:23 2014 +0100 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/CommitsInfoBuilderSupportTest.java Thu Jan 23 16:25:48 2014 +0100 @@ -38,6 +38,8 @@ * * @author Eugene Petrenko (eugene.petrenko@jetbrains.com) */ +@RequiredHgVersion(min = "2.0.0") //support subrepos only for hg with revsets +@Test(dataProviderClass = HgVersionConstraint.class, dataProvider = "installedHgVersion") public class CommitsInfoBuilderSupportTest extends BaseMercurialTestCase { private File myRemoteRepo; private MercurialVcsSupport myVcs; @@ -58,8 +60,7 @@ copyRepository(new File("mercurial-tests/testData/rep2"), myRemoteRepo); } - @Test - public void simpleTest() throws IOException, VcsException { + public void simpleTest(@NotNull HgVersion _) throws IOException, VcsException { TestLogger.enableMainAndVCSLoggerDebug(); VcsRoot root = vcsRoot().withUrl(myRemoteRepo).build(); @@ -101,8 +102,7 @@ Assert.assertFalse(parents.contains(v)); } - @Test - public void should_not_have_parse_errors() throws IOException, VcsException { + public void should_not_have_parse_errors(@NotNull HgVersion _) throws IOException, VcsException { TestLogger.enableMainAndVCSLoggerDebug(); VcsRoot root = vcsRoot().withUrl(myRemoteRepo).build(); @@ -120,8 +120,7 @@ } } - @Test - public void should_return_subrepos_graphcommits() throws Exception { + public void should_return_subrepos_graphcommits(@NotNull HgVersion _) throws Exception { myRemoteRepo = myTempFiles.createTempDir(); copyRepository(new File("mercurial-tests/testData/subrepos/r1"), myRemoteRepo); @@ -142,7 +141,7 @@ } @Test(enabled = false) - public void should_return_graphcommits() throws Exception { + public void should_return_graphcommits(@NotNull HgVersion _) throws Exception { VcsRoot root = vcsRoot().withLocalRepository(new File("F:\\Work\\ReSharper")).build(); final AtomicBoolean hasSubRepo = new AtomicBoolean(false);