org.apache.maven.plugin.eclipse
Class InstallPluginsMojoTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.plugin.eclipse.InstallPluginsMojoTest
All Implemented Interfaces:
Test

public class InstallPluginsMojoTest
extends TestCase


Constructor Summary
InstallPluginsMojoTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testShouldInstallAsDirWhenPropertyIsFalse()
           
 void testShouldInstallAsJarWhenPropertyIsTrue()
           
 void testShouldInstallAsJarWhenPropertyNotSpecified()
           
 void testShouldInstallWhenTypeContainedInPluginTypesListWithMultipleValues()
           
 void testShouldNotInstallWhenTypeNotContainedInPluginTypesList()
           
 void testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsFalse()
           
 void testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsTrue()
           
 
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

InstallPluginsMojoTest

public InstallPluginsMojoTest()
Method Detail

testShouldInstallAsJarWhenPropertyNotSpecified

public void testShouldInstallAsJarWhenPropertyNotSpecified()
                                                    throws org.apache.maven.plugin.MojoExecutionException,
                                                           org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

testShouldInstallAsJarWhenPropertyIsTrue

public void testShouldInstallAsJarWhenPropertyIsTrue()
                                              throws org.apache.maven.plugin.MojoExecutionException,
                                                     org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

testShouldInstallAsDirWhenPropertyIsFalse

public void testShouldInstallAsDirWhenPropertyIsFalse()
                                               throws org.apache.maven.plugin.MojoExecutionException,
                                                      org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

testShouldInstallWhenTypeContainedInPluginTypesListWithMultipleValues

public void testShouldInstallWhenTypeContainedInPluginTypesListWithMultipleValues()
                                                                           throws org.apache.maven.plugin.MojoExecutionException,
                                                                                  org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

testShouldNotInstallWhenTypeNotContainedInPluginTypesList

public void testShouldNotInstallWhenTypeNotContainedInPluginTypesList()
                                                               throws org.apache.maven.plugin.MojoExecutionException,
                                                                      org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsFalse

public void testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsFalse()
                                                                            throws org.apache.maven.plugin.MojoExecutionException,
                                                                                   org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsTrue

public void testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsTrue()
                                                                           throws org.apache.maven.plugin.MojoExecutionException,
                                                                                  org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

setUp

public void setUp()
Overrides:
setUp in class TestCase

tearDown

public void tearDown()
              throws IOException
Overrides:
tearDown in class TestCase
Throws:
IOException


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