khmarbaise closed pull request #6: removing MockArtifact, not used
URL: https://github.com/apache/maven-jar-plugin/pull/6
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/test/java/org/apache/maven/plugins/jar/MockArtifact.java 
b/src/test/java/org/apache/maven/plugins/jar/MockArtifact.java
deleted file mode 100644
index fac8d62..0000000
--- a/src/test/java/org/apache/maven/plugins/jar/MockArtifact.java
+++ /dev/null
@@ -1,303 +0,0 @@
-package org.apache.maven.plugins.jar;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.io.File;
-import java.util.Collection;
-import java.util.List;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.handler.ArtifactHandler;
-import org.apache.maven.artifact.metadata.ArtifactMetadata;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
-import org.apache.maven.artifact.versioning.ArtifactVersion;
-import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
-import org.apache.maven.artifact.versioning.VersionRange;
-
-/**
- * @todo move to maven-artifact-test
- */
-class MockArtifact
-    implements Artifact
-{
-    private String groupId;
-
-    private String artifactId;
-
-    private String version;
-
-    private File file;
-
-    private String scope;
-
-    private String type;
-
-    private String classifier;
-
-    private String baseVersion;
-
-    public String getGroupId()
-    {
-        return groupId;
-    }
-
-    public String getArtifactId()
-    {
-        return artifactId;
-    }
-
-    public String getVersion()
-    {
-        return version;
-    }
-
-    public void setVersion( String string )
-    {
-        this.version = string;
-    }
-
-    public String getScope()
-    {
-        return scope;
-    }
-
-    public String getType()
-    {
-        return type;
-    }
-
-    public String getClassifier()
-    {
-        return classifier;
-    }
-
-    public boolean hasClassifier()
-    {
-        return classifier != null;
-    }
-
-    public File getFile()
-    {
-        return file;
-    }
-
-    public void setFile( File file )
-    {
-        this.file = file;
-    }
-
-    public String getBaseVersion()
-    {
-        return baseVersion;
-    }
-
-    public void setBaseVersion( String string )
-    {
-        this.baseVersion = string;
-    }
-
-    public String getId()
-    {
-        return null;
-    }
-
-    public String getDependencyConflictId()
-    {
-        return null;
-    }
-
-    public void addMetadata( ArtifactMetadata artifactMetadata )
-    {
-        // intentionally empty.
-    }
-
-    public Collection getMetadataList()
-    {
-        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setRepository( ArtifactRepository artifactRepository )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public ArtifactRepository getRepository()
-    {
-        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void updateVersion( String string, ArtifactRepository 
artifactRepository )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public String getDownloadUrl()
-    {
-        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setDownloadUrl( String string )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public ArtifactFilter getDependencyFilter()
-    {
-        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setDependencyFilter( ArtifactFilter artifactFilter )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public ArtifactHandler getArtifactHandler()
-    {
-        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public List getDependencyTrail()
-    {
-        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setDependencyTrail( List list )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public void setScope( String string )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public VersionRange getVersionRange()
-    {
-        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setVersionRange( VersionRange versionRange )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public void selectVersion( String string )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public boolean isSnapshot()
-    {
-        return false;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setResolved( boolean b )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public boolean isResolved()
-    {
-        return false;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setResolvedVersion( String string )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public void setArtifactHandler( ArtifactHandler artifactHandler )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public boolean isRelease()
-    {
-        return false;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setRelease( boolean b )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public List getAvailableVersions()
-    {
-        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setAvailableVersions( List list )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public boolean isOptional()
-    {
-        return false;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setOptional( boolean b )
-    {
-        //To change body of implemented methods use File | Settings | File 
Templates.
-    }
-
-    public ArtifactVersion getSelectedVersion()
-        throws OverConstrainedVersionException
-    {
-        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public boolean isSelectedVersionKnown()
-        throws OverConstrainedVersionException
-    {
-        return false;  //To change body of implemented methods use File | 
Settings | File Templates.
-    }
-
-    public void setGroupId( String groupId )
-    {
-        this.groupId = groupId;
-    }
-
-    public void setArtifactId( String artifactId )
-    {
-        this.artifactId = artifactId;
-    }
-
-    public void setType( String type )
-    {
-        this.type = type;
-    }
-
-    public void setClassifier( String classifier )
-    {
-        this.classifier = classifier;
-    }
-
-    public int compareTo( Artifact o )
-    {
-        return 0;
-    }
-
-    public ArtifactMetadata getMetadata( Class<?> metadataClass )
-    {
-        return null;
-    }
-}


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to