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 testJira_MECLIPSE_418_correct_bundle_headers()
          Has both Bundle-Name and Bundle-SymbolicName and should be installed.
 void testJira_MECLIPSE_418_no_bundle_name()
          Has Bundle-SymbolicName but no Bundle-Name and should be installed.
 void testJira_MECLIPSE_418_no_bundle_symbolicname()
          Has Bundle-Name but no Bundle-SymbolicName and should be installed.
 void testJira_MECLIPSE_418_no_manifest_headers()
          Has neither Bundle-Name or Bundle-SymbolicName and should NOT be installed.
 void testJira_MECLIPSE_488()
          if a jar has no manifest, do not install plugin.
 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

testJira_MECLIPSE_418_correct_bundle_headers

public void testJira_MECLIPSE_418_correct_bundle_headers()
                                                  throws MojoExecutionException,
                                                         MojoFailureException
Has both Bundle-Name and Bundle-SymbolicName and should be installed.

Throws:
MojoExecutionException
MojoFailureException

testJira_MECLIPSE_418_no_bundle_name

public void testJira_MECLIPSE_418_no_bundle_name()
                                          throws MojoExecutionException,
                                                 MojoFailureException
Has Bundle-SymbolicName but no Bundle-Name and should be installed.

Throws:
MojoExecutionException
MojoFailureException

testJira_MECLIPSE_418_no_bundle_symbolicname

public void testJira_MECLIPSE_418_no_bundle_symbolicname()
                                                  throws MojoExecutionException,
                                                         MojoFailureException
Has Bundle-Name but no Bundle-SymbolicName and should be installed.

Throws:
MojoExecutionException
MojoFailureException

testJira_MECLIPSE_418_no_manifest_headers

public void testJira_MECLIPSE_418_no_manifest_headers()
                                               throws MojoExecutionException,
                                                      MojoFailureException
Has neither Bundle-Name or Bundle-SymbolicName and should NOT be installed.

Throws:
MojoExecutionException
MojoFailureException

testJira_MECLIPSE_488

public void testJira_MECLIPSE_488()
                           throws MojoExecutionException,
                                  MojoFailureException
if a jar has no manifest, do not install plugin.

Throws:
MojoExecutionException
MojoFailureException

testShouldInstallAsJarWhenPropertyNotSpecified

public void testShouldInstallAsJarWhenPropertyNotSpecified()
                                                    throws MojoExecutionException,
                                                           MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

testShouldInstallAsJarWhenPropertyIsTrue

public void testShouldInstallAsJarWhenPropertyIsTrue()
                                              throws MojoExecutionException,
                                                     MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

testShouldInstallAsDirWhenPropertyIsFalse

public void testShouldInstallAsDirWhenPropertyIsFalse()
                                               throws MojoExecutionException,
                                                      MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

testShouldInstallWhenTypeContainedInPluginTypesListWithMultipleValues

public void testShouldInstallWhenTypeContainedInPluginTypesListWithMultipleValues()
                                                                           throws MojoExecutionException,
                                                                                  MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

testShouldNotInstallWhenTypeNotContainedInPluginTypesList

public void testShouldNotInstallWhenTypeNotContainedInPluginTypesList()
                                                               throws MojoExecutionException,
                                                                      MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsFalse

public void testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsFalse()
                                                                            throws MojoExecutionException,
                                                                                   MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsTrue

public void testShouldRemoveOldDirectoryBeforeInstallingNewJarWhenOverwriteIsTrue()
                                                                           throws MojoExecutionException,
                                                                                  MojoFailureException
Throws:
MojoExecutionException
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-2012 The Apache Software Foundation. All Rights Reserved.