1 package org.apache.maven.plugin.jar;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.artifact.Artifact;
23 import org.apache.maven.artifact.handler.ArtifactHandler;
24 import org.apache.maven.artifact.metadata.ArtifactMetadata;
25 import org.apache.maven.artifact.repository.ArtifactRepository;
26 import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
27 import org.apache.maven.artifact.versioning.ArtifactVersion;
28 import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
29 import org.apache.maven.artifact.versioning.VersionRange;
30
31 import java.io.File;
32 import java.util.Collection;
33 import java.util.List;
34
35
36
37
38 class MockArtifact
39 implements Artifact
40 {
41 private String groupId;
42
43 private String artifactId;
44
45 private String version;
46
47 private File file;
48
49 private String scope;
50
51 private String type;
52
53 private String classifier;
54
55 private String baseVersion;
56
57 public String getGroupId()
58 {
59 return groupId;
60 }
61
62 public String getArtifactId()
63 {
64 return artifactId;
65 }
66
67 public String getVersion()
68 {
69 return version;
70 }
71
72 public void setVersion( String string )
73 {
74 this.version = string;
75 }
76
77 public String getScope()
78 {
79 return scope;
80 }
81
82 public String getType()
83 {
84 return type;
85 }
86
87 public String getClassifier()
88 {
89 return classifier;
90 }
91
92 public boolean hasClassifier()
93 {
94 return classifier != null;
95 }
96
97 public File getFile()
98 {
99 return file;
100 }
101
102 public void setFile( File file )
103 {
104 this.file = file;
105 }
106
107 public String getBaseVersion()
108 {
109 return baseVersion;
110 }
111
112 public void setBaseVersion( String string )
113 {
114 this.baseVersion = string;
115 }
116
117 public String getId()
118 {
119
120 return null;
121 }
122
123 public String getDependencyConflictId()
124 {
125
126 return null;
127 }
128
129 public void addMetadata( ArtifactMetadata artifactMetadata )
130 {
131
132 }
133
134 public Collection getMetadataList()
135 {
136
137 return null;
138 }
139
140 public void setRepository( ArtifactRepository artifactRepository )
141 {
142
143
144 }
145
146 public ArtifactRepository getRepository()
147 {
148
149 return null;
150 }
151
152 public void updateVersion( String string, ArtifactRepository artifactRepository )
153 {
154
155
156 }
157
158 public String getDownloadUrl()
159 {
160
161 return null;
162 }
163
164 public void setDownloadUrl( String string )
165 {
166
167
168 }
169
170 public ArtifactFilter getDependencyFilter()
171 {
172
173 return null;
174 }
175
176 public void setDependencyFilter( ArtifactFilter artifactFilter )
177 {
178
179
180 }
181
182 public ArtifactHandler getArtifactHandler()
183 {
184
185 return null;
186 }
187
188 public List getDependencyTrail()
189 {
190
191 return null;
192 }
193
194 public void setDependencyTrail( List list )
195 {
196
197
198 }
199
200 public void setScope( String string )
201 {
202
203
204 }
205
206 public VersionRange getVersionRange()
207 {
208
209 return null;
210 }
211
212 public void setVersionRange( VersionRange versionRange )
213 {
214
215
216 }
217
218 public void selectVersion( String string )
219 {
220
221
222 }
223
224 public boolean isSnapshot()
225 {
226
227 return false;
228 }
229
230 public void setResolved( boolean b )
231 {
232
233
234 }
235
236 public boolean isResolved()
237 {
238
239 return false;
240 }
241
242 public void setResolvedVersion( String string )
243 {
244
245
246 }
247
248 public void setArtifactHandler( ArtifactHandler artifactHandler )
249 {
250
251
252 }
253
254 public boolean isRelease()
255 {
256
257 return false;
258 }
259
260 public void setRelease( boolean b )
261 {
262
263
264 }
265
266 public List getAvailableVersions()
267 {
268
269 return null;
270 }
271
272 public void setAvailableVersions( List list )
273 {
274
275
276 }
277
278 public boolean isOptional()
279 {
280 return false;
281
282 }
283
284 public void setOptional( boolean b )
285 {
286
287
288 }
289
290 public ArtifactVersion getSelectedVersion()
291 throws OverConstrainedVersionException
292 {
293
294 return null;
295 }
296
297 public boolean isSelectedVersionKnown()
298 throws OverConstrainedVersionException
299 {
300 return false;
301
302 }
303
304 public void setGroupId( String groupId )
305 {
306 this.groupId = groupId;
307 }
308
309 public void setArtifactId( String artifactId )
310 {
311 this.artifactId = artifactId;
312 }
313
314 public void setType( String type )
315 {
316 this.type = type;
317 }
318
319 public void setClassifier( String classifier )
320 {
321 this.classifier = classifier;
322 }
323
324 public int compareTo( Object o )
325 {
326
327 return 0;
328 }
329 }