KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > tools > jbiplugin > mock > ArtifactRepositoryMock


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: ArtifactRepositoryMock.java 11:35:47 ddesjardins $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.tools.jbiplugin.mock;
23
24 import org.apache.maven.artifact.Artifact;
25 import org.apache.maven.artifact.metadata.ArtifactMetadata;
26 import org.apache.maven.artifact.repository.ArtifactRepository;
27 import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
28 import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
29
30 /**
31  * Used to simulate an artifact repository
32  *
33  * @author ddesjardins - eBMWebsourcing
34  */

35 public class ArtifactRepositoryMock implements ArtifactRepository {
36
37     private String JavaDoc baseDir;
38
39     public void setBaseDir(String JavaDoc baseDir) {
40         this.baseDir = baseDir;
41     }
42
43     public String JavaDoc pathOf(Artifact arg0) {
44         return null;
45     }
46
47     public String JavaDoc pathOfRemoteRepositoryMetadata(ArtifactMetadata arg0) {
48         return null;
49     }
50
51     public String JavaDoc pathOfLocalRepositoryMetadata(ArtifactMetadata arg0,
52             ArtifactRepository arg1) {
53         return null;
54     }
55
56     public String JavaDoc getUrl() {
57         return null;
58     }
59
60     public String JavaDoc getBasedir() {
61         return baseDir;
62     }
63
64     public String JavaDoc getProtocol() {
65         return null;
66     }
67
68     public String JavaDoc getId() {
69         return null;
70     }
71
72     public ArtifactRepositoryPolicy getSnapshots() {
73         return null;
74     }
75
76     public ArtifactRepositoryPolicy getReleases() {
77         return null;
78     }
79
80     public ArtifactRepositoryLayout getLayout() {
81         return null;
82     }
83
84     public String JavaDoc getKey() {
85         return null;
86     }
87
88     public boolean isUniqueVersion() {
89         return false;
90     }
91
92     public void setBlacklisted(boolean arg0) {
93     }
94
95     public boolean isBlacklisted() {
96         return false;
97     }
98
99 }
100
Popular Tags