org.apache.maven.shared.runtime
Class DefaultMavenRuntimeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.shared.runtime.DefaultMavenRuntimeTest
All Implemented Interfaces:
Test

public class DefaultMavenRuntimeTest
extends org.codehaus.plexus.PlexusTestCase

Tests DefaultMavenRuntime.

Version:
$Id: DefaultMavenRuntimeTest.java 1341416 2012-05-22 11:38:54Z markh $
Author:
Mark Hobson
See Also:
DefaultMavenRuntime

Constructor Summary
DefaultMavenRuntimeTest()
           
 
Method Summary
protected  void setUp()
          
 void testGetProjectPropertiesWithChildDelegation()
           
 void testGetProjectPropertiesWithDefaultPackageClass()
           
 void testGetProjectPropertiesWithFileUrl()
           
 void testGetProjectPropertiesWithJarEntryUrl()
           
 void testGetProjectPropertiesWithJarUrl()
           
 void testGetProjectPropertiesWithMultipleVersions()
           
 void testGetProjectPropertiesWithMultipleVersionsReversed()
           
 void testGetProjectPropertiesWithPackagedClass()
           
 void testGetProjectPropertiesWithParentDelegation()
           
 void testGetProjectPropertiesWithSubPackagedClass()
           
 void testGetProjectsPropertiesWithChildDelegation()
           
 void testGetProjectsPropertiesWithMultipleJars()
           
 void testGetProjectsPropertiesWithMultipleVersions()
           
 void testGetProjectsPropertiesWithMultipleVersionsReversed()
           
 void testGetProjectsPropertiesWithParentDelegation()
           
 void testGetProjectsPropertiesWithSingleJar()
           
 void testGetProjectsWithChildDelegation()
           
 void testGetProjectsWithMultipleJars()
           
 void testGetProjectsWithMultipleVersions()
           
 void testGetProjectsWithMultipleVersionsReversed()
           
 void testGetProjectsWithParentDelegation()
           
 void testGetProjectsWithSingleJar()
           
 void testGetProjectWithChildDelegation()
           
 void testGetProjectWithDefaultPackageClass()
           
 void testGetProjectWithFileUrl()
           
 void testGetProjectWithJarEntryUrl()
           
 void testGetProjectWithJarUrl()
           
 void testGetProjectWithMultipleVersions()
           
 void testGetProjectWithMultipleVersionsReversed()
           
 void testGetProjectWithPackagedClass()
           
 void testGetProjectWithParentDelegation()
           
 void testGetProjectWithSubPackagedClass()
           
 void testGetSortedProjectsWithChildDelegation()
           
 void testGetSortedProjectsWithDependentJars()
           
 void testGetSortedProjectsWithMediatedDependency()
           
 void testGetSortedProjectsWithMultipleJars()
           
 void testGetSortedProjectsWithMultipleVersions()
           
 void testGetSortedProjectsWithMultipleVersionsReversed()
           
 void testGetSortedProjectsWithParentDelegation()
           
 void testGetSortedProjectsWithSingleJar()
           
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMavenRuntimeTest

public DefaultMavenRuntimeTest()
Method Detail

setUp

protected void setUp()
              throws Exception

Overrides:
setUp in class org.codehaus.plexus.PlexusTestCase
Throws:
Exception

testGetProjectPropertiesWithFileUrl

public void testGetProjectPropertiesWithFileUrl()
                                         throws MavenRuntimeException,
                                                IOException
Throws:
MavenRuntimeException
IOException

testGetProjectPropertiesWithJarUrl

public void testGetProjectPropertiesWithJarUrl()
                                        throws MavenRuntimeException,
                                               IOException
Throws:
MavenRuntimeException
IOException

testGetProjectPropertiesWithJarEntryUrl

public void testGetProjectPropertiesWithJarEntryUrl()
                                             throws MavenRuntimeException,
                                                    IOException
Throws:
MavenRuntimeException
IOException

testGetProjectPropertiesWithDefaultPackageClass

public void testGetProjectPropertiesWithDefaultPackageClass()
                                                     throws ClassNotFoundException,
                                                            MavenRuntimeException,
                                                            IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectPropertiesWithPackagedClass

public void testGetProjectPropertiesWithPackagedClass()
                                               throws ClassNotFoundException,
                                                      MavenRuntimeException,
                                                      IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectPropertiesWithSubPackagedClass

public void testGetProjectPropertiesWithSubPackagedClass()
                                                  throws ClassNotFoundException,
                                                         MavenRuntimeException,
                                                         IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectPropertiesWithMultipleVersions

public void testGetProjectPropertiesWithMultipleVersions()
                                                  throws ClassNotFoundException,
                                                         MavenRuntimeException,
                                                         IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectPropertiesWithMultipleVersionsReversed

public void testGetProjectPropertiesWithMultipleVersionsReversed()
                                                          throws ClassNotFoundException,
                                                                 MavenRuntimeException,
                                                                 IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectPropertiesWithParentDelegation

public void testGetProjectPropertiesWithParentDelegation()
                                                  throws ClassNotFoundException,
                                                         MavenRuntimeException,
                                                         IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectPropertiesWithChildDelegation

public void testGetProjectPropertiesWithChildDelegation()
                                                 throws ClassNotFoundException,
                                                        MavenRuntimeException,
                                                        IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectsPropertiesWithSingleJar

public void testGetProjectsPropertiesWithSingleJar()
                                            throws MavenRuntimeException,
                                                   IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsPropertiesWithMultipleJars

public void testGetProjectsPropertiesWithMultipleJars()
                                               throws MavenRuntimeException,
                                                      IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsPropertiesWithMultipleVersions

public void testGetProjectsPropertiesWithMultipleVersions()
                                                   throws MavenRuntimeException,
                                                          IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsPropertiesWithMultipleVersionsReversed

public void testGetProjectsPropertiesWithMultipleVersionsReversed()
                                                           throws MavenRuntimeException,
                                                                  IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsPropertiesWithParentDelegation

public void testGetProjectsPropertiesWithParentDelegation()
                                                   throws MavenRuntimeException,
                                                          IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsPropertiesWithChildDelegation

public void testGetProjectsPropertiesWithChildDelegation()
                                                  throws MavenRuntimeException,
                                                         IOException
Throws:
MavenRuntimeException
IOException

testGetProjectWithFileUrl

public void testGetProjectWithFileUrl()
                               throws MavenRuntimeException,
                                      IOException
Throws:
MavenRuntimeException
IOException

testGetProjectWithJarUrl

public void testGetProjectWithJarUrl()
                              throws MavenRuntimeException,
                                     IOException
Throws:
MavenRuntimeException
IOException

testGetProjectWithJarEntryUrl

public void testGetProjectWithJarEntryUrl()
                                   throws MavenRuntimeException,
                                          IOException
Throws:
MavenRuntimeException
IOException

testGetProjectWithDefaultPackageClass

public void testGetProjectWithDefaultPackageClass()
                                           throws ClassNotFoundException,
                                                  MavenRuntimeException,
                                                  IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectWithPackagedClass

public void testGetProjectWithPackagedClass()
                                     throws ClassNotFoundException,
                                            MavenRuntimeException,
                                            IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectWithSubPackagedClass

public void testGetProjectWithSubPackagedClass()
                                        throws ClassNotFoundException,
                                               MavenRuntimeException,
                                               IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectWithMultipleVersions

public void testGetProjectWithMultipleVersions()
                                        throws ClassNotFoundException,
                                               MavenRuntimeException,
                                               IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectWithMultipleVersionsReversed

public void testGetProjectWithMultipleVersionsReversed()
                                                throws ClassNotFoundException,
                                                       MavenRuntimeException,
                                                       IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectWithParentDelegation

public void testGetProjectWithParentDelegation()
                                        throws ClassNotFoundException,
                                               MavenRuntimeException,
                                               IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectWithChildDelegation

public void testGetProjectWithChildDelegation()
                                       throws ClassNotFoundException,
                                              MavenRuntimeException,
                                              IOException
Throws:
ClassNotFoundException
MavenRuntimeException
IOException

testGetProjectsWithSingleJar

public void testGetProjectsWithSingleJar()
                                  throws MavenRuntimeException,
                                         IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsWithMultipleJars

public void testGetProjectsWithMultipleJars()
                                     throws MavenRuntimeException,
                                            IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsWithMultipleVersions

public void testGetProjectsWithMultipleVersions()
                                         throws MavenRuntimeException,
                                                IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsWithMultipleVersionsReversed

public void testGetProjectsWithMultipleVersionsReversed()
                                                 throws MavenRuntimeException,
                                                        IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsWithParentDelegation

public void testGetProjectsWithParentDelegation()
                                         throws MavenRuntimeException,
                                                IOException
Throws:
MavenRuntimeException
IOException

testGetProjectsWithChildDelegation

public void testGetProjectsWithChildDelegation()
                                        throws MavenRuntimeException,
                                               IOException
Throws:
MavenRuntimeException
IOException

testGetSortedProjectsWithSingleJar

public void testGetSortedProjectsWithSingleJar()
                                        throws MavenRuntimeException,
                                               IOException
Throws:
MavenRuntimeException
IOException

testGetSortedProjectsWithMultipleJars

public void testGetSortedProjectsWithMultipleJars()
                                           throws MavenRuntimeException,
                                                  IOException
Throws:
MavenRuntimeException
IOException

testGetSortedProjectsWithDependentJars

public void testGetSortedProjectsWithDependentJars()
                                            throws MavenRuntimeException,
                                                   IOException
Throws:
MavenRuntimeException
IOException

testGetSortedProjectsWithMediatedDependency

public void testGetSortedProjectsWithMediatedDependency()
                                                 throws MavenRuntimeException,
                                                        IOException
Throws:
MavenRuntimeException
IOException

testGetSortedProjectsWithMultipleVersions

public void testGetSortedProjectsWithMultipleVersions()
                                               throws MavenRuntimeException,
                                                      IOException
Throws:
MavenRuntimeException
IOException

testGetSortedProjectsWithMultipleVersionsReversed

public void testGetSortedProjectsWithMultipleVersionsReversed()
                                                       throws MavenRuntimeException,
                                                              IOException
Throws:
MavenRuntimeException
IOException

testGetSortedProjectsWithParentDelegation

public void testGetSortedProjectsWithParentDelegation()
                                               throws MavenRuntimeException,
                                                      IOException
Throws:
MavenRuntimeException
IOException

testGetSortedProjectsWithChildDelegation

public void testGetSortedProjectsWithChildDelegation()
                                              throws MavenRuntimeException,
                                                     IOException
Throws:
MavenRuntimeException
IOException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.