net.sf.taverna.raven.repository.impl
Class LocalRepositoryTest

java.lang.Object
  extended by net.sf.taverna.raven.repository.impl.LocalRepositoryTest

public class LocalRepositoryTest
extends java.lang.Object

Author:
Tom Oinn, Stian Soiland-Reyes

Constructor Summary
LocalRepositoryTest()
           
 
Method Summary
 void addArtifact()
           
 void cleanEmpty()
           
 void createEmpty()
           
static java.io.File createTempDirectory()
           
 void didntMadeLocalJarFile()
          Should not copy from file:/// repositories.
 void getLoader()
           
 void madeLocalJarFile()
           
 void repositoryWithExistingContents()
           
 void setUp()
           
 void tearDown()
           
 void testPrependRemoteRepository()
           
 void testRepository()
           
 void update()
           
 void updateWithDots()
           
 void updateWithPackageOnlyPom()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalRepositoryTest

public LocalRepositoryTest()
                    throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException
Method Detail

createTempDirectory

public static java.io.File createTempDirectory()
                                        throws java.io.IOException
Throws:
java.io.IOException

addArtifact

public void addArtifact()
                 throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

cleanEmpty

public void cleanEmpty()

createEmpty

public void createEmpty()

didntMadeLocalJarFile

public void didntMadeLocalJarFile()
                           throws ArtifactNotFoundException,
                                  ArtifactStateException,
                                  java.lang.ClassNotFoundException,
                                  java.io.IOException
Should not copy from file:/// repositories. Assumes $HOME/.m2/repositories have junit/junit/4.0, as needed for these tests. Test will abort if this is not so.

Throws:
ArtifactStateException
ArtifactNotFoundException
java.lang.ClassNotFoundException
java.io.IOException

getLoader

public void getLoader()
               throws java.net.MalformedURLException,
                      java.lang.ClassNotFoundException,
                      ArtifactNotFoundException,
                      ArtifactStateException
Throws:
java.net.MalformedURLException
java.lang.ClassNotFoundException
ArtifactNotFoundException
ArtifactStateException

madeLocalJarFile

public void madeLocalJarFile()
                      throws ArtifactNotFoundException,
                             ArtifactStateException,
                             java.io.IOException
Throws:
ArtifactNotFoundException
ArtifactStateException
java.io.IOException

repositoryWithExistingContents

public void repositoryWithExistingContents()
                                    throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

setUp

public void setUp()
           throws java.io.IOException
Throws:
java.io.IOException

tearDown

public void tearDown()

testPrependRemoteRepository

public void testPrependRemoteRepository()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testRepository

public void testRepository()

update

public void update()
            throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

updateWithDots

public void updateWithDots()
                    throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

updateWithPackageOnlyPom

public void updateWithPackageOnlyPom()
                              throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException