fix test
authorPavel Sher <pavel.sher@gmail.com>
Sun, 24 Nov 2013 12:27:37 +0000 (13:27 +0100)
committerPavel Sher <pavel.sher@gmail.com>
Sun, 24 Nov 2013 12:27:37 +0000 (13:27 +0100)
git-tests/src/jetbrains/buildServer/buildTriggers/vcs/git/tests/GitUrlSupportTest.java

index 8c04f6d37d9fee0a64213e325e16301687176202..de2cefea707a4979040e7ba77c5ca80cd97301de 100644 (file)
@@ -87,13 +87,7 @@ public class GitUrlSupportTest extends BaseTestCase {
   @Test
   public void should_throw_exception_when_url_incorrect() throws MalformedURLException, VcsException {
     MavenVcsUrl url = new MavenVcsUrl("scm:svn:ssh://svn.repo.com/path_to_repository");
-    try {
-      toGitRoot(url);
-      fail("Should fail here");
-    } catch (VcsException e) {
-      assertTrue(true);
-      assertTrue(e.getMessage().contains("Unknown provider schema"));
-    }
+    assertNull(mySupport.convertToVcsRootProperties(url));
   }