1 package org.apache.maven.changelog.stubs;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.maven.scm.repository.ScmRepository;
20 import org.apache.maven.scm.repository.ScmRepositoryException;
21 import org.apache.maven.scm.manager.NoSuchScmProviderException;
22 import org.apache.maven.scm.provider.ScmProviderRepositoryWithHost;/**
23 * @author Edwin Punzalan
24 */
25 public class ScmManagerWithHostStub
26 extends ScmManagerStub
27 {
28 public ScmRepository makeScmRepository( String string )
29 throws ScmRepositoryException, NoSuchScmProviderException
30 {
31 ScmProviderRepositoryWithHost scmRepository = new ScmProviderRepositoryWithHost()
32 {
33 public String getHost()
34 {
35 return "scmHost";
36 }
37
38 public int getPort()
39 {
40 return 7777;
41 }
42 };
43
44 return new ScmRepositoryStub( "ScmRepositoryStubWithHost", scmRepository );
45 }
46 }