changeset 527:cd54b079d5ca

Fix BranchSupport
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Sat, 29 Dec 2012 12:13:27 +0400
parents e9de7632c0d4
children 6df6580646b9
files mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java
diffstat 1 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java	Sat Dec 29 12:10:58 2012 +0400
+++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java	Sat Dec 29 12:13:27 2012 +0400
@@ -528,32 +528,6 @@
   }
 
 
-  public void test_getPersonalBranchDescription_when_branch_contains_commits() throws Exception {
-    MercurialBranchSupport branchSupport = new MercurialBranchSupport();
-    MercurialSupportBuilder vcsBuilder = new MercurialSupportBuilder();
-    MercurialVcsSupport vcs = vcsBuilder.withConfig(myPluginConfig).withExtension(branchSupport).build();
-    branchSupport.setMercurialSupport(vcs);
-    branchSupport.setHgRootFactory(vcsBuilder.getHgRootFactory());
-    VcsRootImpl originalRoot = createVcsRoot(simpleRepo());
-    PersonalBranchDescription description = vcs.getVcsExtension(BranchSupport.class).getPersonalBranchDescription(originalRoot, "name with space");
-    assertNotNull(description);
-    assertEquals(description.getBranchId(), "376dcf05cd2a");
-    assertEquals(description.getUsername(), "Pavel.Sher");
-  }
-
-
-  public void test_getPersonalBranchDescription_when_branch_doesnot_contain_commits() throws Exception {
-    MercurialBranchSupport branchSupport = new MercurialBranchSupport();
-    MercurialSupportBuilder vcsBuilder = new MercurialSupportBuilder();
-    MercurialVcsSupport vcs = vcsBuilder.withConfig(myPluginConfig).withExtension(branchSupport).build();
-    branchSupport.setMercurialSupport(vcs);
-    branchSupport.setHgRootFactory(vcsBuilder.getHgRootFactory());
-    VcsRootImpl originalRoot = createVcsRoot(simpleRepo());
-    PersonalBranchDescription description = vcs.getVcsExtension(BranchSupport.class).getPersonalBranchDescription(originalRoot, "default");
-    assertNull(description);
-  }
-
-
   public void labeling_should_not_change_vcs_root_settings() throws Exception {
     VcsRootImpl root = createVcsRoot(simpleRepo(), "test_branch");
     assertNull(root.getProperty(Constants.SERVER_CLONE_PATH_PROP));