Author: brett
Date: Sat Aug 26 01:21:22 2006
New Revision: 437125

URL: http://svn.apache.org/viewvc?rev=437125&view=rev
Log:
remove old tests that are not required of the code

Modified:
    
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/AbstractRepositoryReportsTestCase.java
    
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/ChecksumArtifactReporterTest.java
    
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/InvalidPomArtifactReportProcessorTest.java
    
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/LocationArtifactReportProcessorTest.java

Modified: 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/AbstractRepositoryReportsTestCase.java
URL: 
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/AbstractRepositoryReportsTestCase.java?rev=437125&r1=437124&r2=437125&view=diff
==============================================================================
--- 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/AbstractRepositoryReportsTestCase.java
 (original)
+++ 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/AbstractRepositoryReportsTestCase.java
 Sat Aug 26 01:21:22 2006
@@ -34,20 +34,6 @@
      */
     protected ArtifactRepository repository;
 
-    protected static final String remoteRepoUrl = 
"http://public.planetmirror.com/pub/maven2/";;
-
-    protected static final String remoteArtifactGroup = "HTTPClient";
-
-    protected static final String remoteArtifactId = "HTTPClient";
-
-    protected static final String remoteArtifactVersion = "0.3-3";
-
-    protected static final String remoteArtifactScope = "compile";
-
-    protected static final String remoteArtifactType = "jar";
-
-    protected static final String remoteRepoId = "remote-repo";
-
     protected void setUp()
         throws Exception
     {

Modified: 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/ChecksumArtifactReporterTest.java
URL: 
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/ChecksumArtifactReporterTest.java?rev=437125&r1=437124&r2=437125&view=diff
==============================================================================
--- 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/ChecksumArtifactReporterTest.java
 (original)
+++ 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/ChecksumArtifactReporterTest.java
 Sat Aug 26 01:21:22 2006
@@ -136,62 +136,6 @@
     }
 
     /**
-     * Test the checksum of an artifact located in a remote location.
-     */
-    /*   public void testChecksumArtifactRemote()
-    {
-        ArtifactHandler handler = new DefaultArtifactHandler( 
remoteArtifactType );
-        VersionRange version = VersionRange.createFromVersion( 
remoteArtifactVersion );
-        Artifact artifact = new DefaultArtifact( remoteArtifactGroup, 
remoteArtifactId, version, remoteArtifactScope,
-                                                 remoteArtifactType, "", 
handler );
-        ArtifactRepository repository = new DefaultArtifactRepository( 
remoteRepoId, remoteRepoUrl,
-                                                                       new 
DefaultRepositoryLayout() );
-
-        artifactReportProcessor.processArtifact( null, artifact, reporter, 
repository );
-        if ( reporter.getFailures() == 2 )
-            assertTrue( reporter.getFailures() == 2 );
-
-        if ( reporter.getSuccesses() == 2 )
-            assertTrue( reporter.getSuccesses() == 2 );
-
-    }
-    */
-
-    /**
-     * Test the checksum of a metadata file located in a remote location.
-     */
-    /*   public void testChecksumMetadataRemote()
-    {
-
-        try
-        {
-            ArtifactHandler handler = new DefaultArtifactHandler( 
remoteArtifactType );
-            VersionRange version = VersionRange.createFromVersion( 
remoteArtifactVersion );
-            Artifact artifact = new DefaultArtifact( remoteArtifactGroup, 
remoteArtifactId, version,
-                                                     remoteArtifactScope, 
remoteArtifactType, "", handler );
-            ArtifactRepository repository = new DefaultArtifactRepository( 
remoteRepoId, remoteRepoUrl,
-                                                                           new 
DefaultRepositoryLayout() );
-
-            RepositoryMetadata metadata = new 
SnapshotArtifactRepositoryMetadata( artifact );
-
-            metadataReportProcessor.processMetadata( metadata, repository, 
reporter );
-            Iterator iter = reporter.getRepositoryMetadataFailureIterator();
-            if ( iter.hasNext() )
-                assertTrue( "check if there is a failure", iter.hasNext() );
-
-            iter = reporter.getRepositoryMetadataSuccessIterator();
-            if ( iter.hasNext() )
-                assertTrue( "check if there is a success", iter.hasNext() );
-
-        }
-        catch ( Exception e )
-        {
-            e.printStackTrace();
-        }
-    }
-    */
-
-    /**
      * Test the conditional when the checksum files of the artifact & metadata 
do not exist.
      */
     public void testChecksumFilesDoNotExist()

Modified: 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/InvalidPomArtifactReportProcessorTest.java
URL: 
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/InvalidPomArtifactReportProcessorTest.java?rev=437125&r1=437124&r2=437125&view=diff
==============================================================================
--- 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/InvalidPomArtifactReportProcessorTest.java
 (original)
+++ 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/InvalidPomArtifactReportProcessorTest.java
 Sat Aug 26 01:21:22 2006
@@ -83,27 +83,4 @@
         artifactReportProcessor.processArtifact( null, artifact, reporter, 
repository );
         assertEquals( 1, reporter.getWarnings() );
     }
-
-    /**
-     * Test the InvalidPomArtifactReportProcessor when the pom is located in 
-     * a remote repository.
-     */
-    /* public void testRemotePomArtifactReportProcessorSuccess(){
-        try{
-            ArtifactHandler handler = new DefaultArtifactHandler( "pom" );
-            VersionRange version = VersionRange.createFromVersion( 
remoteArtifactVersion );
-            Artifact artifact = new DefaultArtifact( remoteArtifactGroup, 
remoteArtifactId, version, remoteArtifactScope,
-                                                     "pom", "", handler );
-            ArtifactRepository repository = new DefaultArtifactRepository( 
remoteRepoId, remoteRepoUrl,
-                                                                           new 
DefaultRepositoryLayout() );
-        
-            artifactReportProcessor.processArtifact(null, artifact, reporter, 
repository);
-            if(reporter.getSuccesses() == 1)
-                assertTrue(reporter.getSuccesses() == 1);
-                        
-        }catch(Exception e){
-            
-        }
-    }
-    */
 }

Modified: 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/LocationArtifactReportProcessorTest.java
URL: 
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/LocationArtifactReportProcessorTest.java?rev=437125&r1=437124&r2=437125&view=diff
==============================================================================
--- 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/LocationArtifactReportProcessorTest.java
 (original)
+++ 
maven/archiva/trunk/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/LocationArtifactReportProcessorTest.java
 Sat Aug 26 01:21:22 2006
@@ -186,39 +186,4 @@
         artifactReportProcessor.processArtifact( model, artifact, reporter, 
repository );
         assertEquals( 1, reporter.getFailures() );
     }
-
-    /**
-     * Test the LocationArtifactReportProcessor when the artifact is located 
in the remote repository.
-     */
-    /*  public void testRemoteArtifactReportProcessorFailure()
-    {
-
-        ArtifactHandler handler = new DefaultArtifactHandler( 
remoteArtifactType );
-        VersionRange version = VersionRange.createFromVersion( 
remoteArtifactVersion );
-        Artifact artifact = new DefaultArtifact( remoteArtifactGroup, 
remoteArtifactId, version, remoteArtifactScope,
-                                                 remoteArtifactType, "", 
handler );
-        ArtifactRepository repository = new DefaultArtifactRepository( 
remoteRepoId, remoteRepoUrl,
-                                                                       new 
DefaultRepositoryLayout() );
-        try
-        {
-            URL url = new URL( remoteRepoUrl + remoteArtifactGroup + "/" + 
remoteArtifactId + "/"
-                + remoteArtifactVersion + "/" + remoteArtifactId + "-" + 
remoteArtifactVersion + ".pom" );
-            InputStream is = url.openStream();
-            Reader reader = new InputStreamReader( is );
-            Model model = pomReader.read( reader );
-
-            artifactReportProcessor.processArtifact( model, artifact, 
reporter, repository );
-            if ( reporter.getFailures() > 0 )
-                assertTrue( reporter.getFailures() == 1 );
-
-            if ( reporter.getSuccesses() > 0 )
-                assertTrue( reporter.getSuccesses() == 1 );
-
-        }
-        catch ( Exception e )
-        {
-            e.printStackTrace();
-        }
-    }
-    */
 }


Reply via email to