org.apache.maven.plugin.dependency.its
Class DependencyPluginTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.plugin.dependency.its.AbstractDependencyPluginITCase
                  extended by org.apache.maven.plugin.dependency.its.DependencyPluginTest
All Implemented Interfaces:
junit.framework.Test

public class DependencyPluginTest
extends AbstractDependencyPluginITCase

This class executes the IT tests. The setup will create a pom-test.xml from the plugin pom. The version is changed to "test" and the tests themselves turned off to avoid an infinite loop. The test version of the plugin is then built and installed to a new temporary local repo used to execute the tests. This only occurs once for the suite of tests. Each test below just uses the tools to execute Maven on the named project with the passed in goals.

Version:
$Id: DependencyPluginTest.java 1189335 2011-10-26 17:42:34Z carlos $
Author:
Brian Fox Copied from the Eclipse AbstractEclipsePluginTestCase v2.4

Field Summary
 
Fields inherited from class org.apache.maven.plugin.dependency.its.AbstractDependencyPluginITCase
ARTIFACT_ID, GROUP_ID, localRepositoryDirectory, PomFile, VERSION
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
DependencyPluginTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testGet()
          Test Resolve Mojo.
 void testHarness()
          Test that build failures are reported.
 void testResolve()
          Test Resolve Mojo.
 void testSibling()
          Test Resolve Mojo.
 
Methods inherited from class org.apache.maven.plugin.dependency.its.AbstractDependencyPluginITCase
executeMaven, executeMaven, getOutputDirectory, getPluginCLISpecification, readProject, testProject, testProject
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependencyPluginTest

public DependencyPluginTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AbstractDependencyPluginITCase
Throws:
Exception
See Also:
PlexusTestCase.setUp()

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class AbstractDependencyPluginITCase
Throws:
Exception
See Also:
PlexusTestCase.tearDown()

testHarness

public void testHarness()
Test that build failures are reported. Simple Harness test essentially


testSibling

public void testSibling()
                 throws Exception
Test Resolve Mojo. Simple Harness test essentially

Throws:
Exception - any exception thrown during test

testResolve

public void testResolve()
                 throws Exception
Test Resolve Mojo. Simple Harness test essentially

Throws:
Exception - any exception thrown during test

testGet

public void testGet()
             throws Exception
Test Resolve Mojo. Simple Harness test essentially

Throws:
Exception - any exception thrown during test


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