1 package org.apache.maven.scm.provider.svn.svnexe.command.remoteinfo;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import org.apache.maven.scm.ScmTestCase;
22 import org.apache.maven.scm.provider.svn.repository.SvnScmProviderRepository;
23
24
25
26
27 public class SvnRemoteInfoCommandTest
28 extends ScmTestCase
29 {
30 public void testExist()
31 throws Exception
32 {
33 SvnRemoteInfoCommand svnRemoteInfoCommand = new SvnRemoteInfoCommand();
34
35 SvnScmProviderRepository svnScmProviderRepository =
36 new SvnScmProviderRepository( "http://svn.apache.org/repos/asf/maven/scm/trunk/" );
37 assertTrue( svnRemoteInfoCommand.remoteUrlExist( svnScmProviderRepository, null ) );
38 }
39
40 public void testNotExist()
41 throws Exception
42 {
43 SvnRemoteInfoCommand svnRemoteInfoCommand = new SvnRemoteInfoCommand();
44
45 SvnScmProviderRepository svnScmProviderRepository =
46 new SvnScmProviderRepository( "http://svn.apache.org/repos/asf/maven/scm/trunk/foo/bar/beer" );
47 assertFalse( svnRemoteInfoCommand.remoteUrlExist( svnScmProviderRepository, null ) );
48 }
49 }