org.apache.maven.plugins.repository
Class BundleCreateMojoTest

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.testing.AbstractMojoTestCase
                  extended by org.apache.maven.plugins.repository.BundleCreateMojoTest
All Implemented Interfaces:
junit.framework.Test

public class BundleCreateMojoTest
extends org.apache.maven.plugin.testing.AbstractMojoTestCase

Author:
Maria Odea Ching

Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
BundleCreateMojoTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testDefaultconfiguration_RemoveOne()
           
 void testDefaultconfiguration_RemoveTwo()
           
 void testDefaultconfiguration_RemoveTwoUnordered()
           
 void testDefaultconfiguration_RemoveTwoWithSpace()
           
 void testDefaultconfiguration()
          Test for repository plugin default configuration
 void testDefaults_PomPackaging()
          Test for repository plugin with project.packaging == pom
 void testNoJavadocJar()
          Test repository plugin when there is no javadoc jar to be included in the bundle
 void testNoJavadocSourcesJars()
          Test repository plugin when there are no javadoc and sources jar files to be included in the bundle
 void testNoLicense()
          Test repository plugin when license file does not exist
 void testNoProjectName()
          Test repository plugin when there is no project name specified in the pom
 void testNoSourcesJar()
          Test repository plugin when there is no sources jar to be included in the bundle
 void testNullScm()
          Test repository plugin when the scm element is null
 
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setVariableValueToObject
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleCreateMojoTest

public BundleCreateMojoTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class org.apache.maven.plugin.testing.AbstractMojoTestCase
Throws:
Exception

testDefaults_PomPackaging

public void testDefaults_PomPackaging()
                               throws Exception
Test for repository plugin with project.packaging == pom

Throws:
Exception

testDefaultconfiguration

public void testDefaultconfiguration()
                              throws Exception
Test for repository plugin default configuration

Throws:
Exception

testDefaultconfiguration_RemoveOne

public void testDefaultconfiguration_RemoveOne()
                                        throws Exception
Throws:
Exception

testDefaultconfiguration_RemoveTwo

public void testDefaultconfiguration_RemoveTwo()
                                        throws Exception
Throws:
Exception

testDefaultconfiguration_RemoveTwoUnordered

public void testDefaultconfiguration_RemoveTwoUnordered()
                                                 throws Exception
Throws:
Exception

testDefaultconfiguration_RemoveTwoWithSpace

public void testDefaultconfiguration_RemoveTwoWithSpace()
                                                 throws Exception
Throws:
Exception

testNoJavadocJar

public void testNoJavadocJar()
                      throws Exception
Test repository plugin when there is no javadoc jar to be included in the bundle

Throws:
Exception

testNoSourcesJar

public void testNoSourcesJar()
                      throws Exception
Test repository plugin when there is no sources jar to be included in the bundle

Throws:
Exception

testNoJavadocSourcesJars

public void testNoJavadocSourcesJars()
                              throws Exception
Test repository plugin when there are no javadoc and sources jar files to be included in the bundle

Throws:
Exception

testNullScm

public void testNullScm()
                 throws Exception
Test repository plugin when the scm element is null

Throws:
Exception

testNoLicense

public void testNoLicense()
                   throws Exception
Test repository plugin when license file does not exist

Throws:
Exception

testNoProjectName

public void testNoProjectName()
                       throws Exception
Test repository plugin when there is no project name specified in the pom

Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class PlexusTestCase
Throws:
Exception


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