org.apache.maven.plugin.resources.remote
Class RemoteResourcesMojoTest

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.plugin.resources.remote.RemoteResourcesMojoTest
All Implemented Interfaces:
junit.framework.Test

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

RemoteResources plugin Test Case


Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
RemoteResourcesMojoTest()
           
 
Method Summary
protected  void buildResourceBundle(String id, String sourceEncoding, String[] resourceNames, File jarName)
           
protected  MavenProjectResourcesStub createTestProject(String testName)
           
protected  org.apache.maven.plugin.resources.remote.BundleRemoteResourcesMojo lookupBundleMojo()
           
protected  org.apache.maven.plugin.resources.remote.BundleRemoteResourcesMojo lookupBundleMojoWithDefaultSettings(org.apache.maven.project.MavenProject project)
           
protected  org.apache.maven.plugin.resources.remote.BundleRemoteResourcesMojo lookupBundleMojoWithSettings(org.apache.maven.project.MavenProject project, File resourceDir, String sourceEncoding)
           
protected  org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo lookupProcessMojo()
           
protected  org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo lookupProcessMojoWithDefaultSettings(org.apache.maven.project.MavenProject project)
           
protected  org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(org.apache.maven.project.MavenProject project, ArrayList bundles)
           
protected  org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(org.apache.maven.project.MavenProject project, String[] bundles)
           
 void setUp()
           
protected  void setupDefaultProject(MavenProjectResourcesStub project)
           
 void tearDown()
           
 void testCreateBundle()
           
 void testFilteredBundles()
           
 void testFilteredBundlesWithProjectProperties()
           
 void testNoBundles()
           
 void testSimpleBundles()
           
 void testTestEnvironment()
          check test environment
 void testVelocityISO88591()
           
 void testVelocityUTF8()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteResourcesMojoTest

public RemoteResourcesMojoTest()
Method Detail

setUp

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

tearDown

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

testTestEnvironment

public void testTestEnvironment()
                         throws Exception
check test environment

Throws:
Exception - if any exception occurs

testNoBundles

public void testNoBundles()
                   throws Exception
Throws:
Exception

testCreateBundle

public void testCreateBundle()
                      throws Exception
Throws:
Exception

testSimpleBundles

public void testSimpleBundles()
                       throws Exception
Throws:
Exception

testVelocityUTF8

public void testVelocityUTF8()
                      throws Exception
Throws:
Exception

testVelocityISO88591

public void testVelocityISO88591()
                          throws Exception
Throws:
Exception

testFilteredBundles

public void testFilteredBundles()
                         throws Exception
Throws:
Exception

testFilteredBundlesWithProjectProperties

public void testFilteredBundlesWithProjectProperties()
                                              throws Exception
Throws:
Exception

buildResourceBundle

protected void buildResourceBundle(String id,
                                   String sourceEncoding,
                                   String[] resourceNames,
                                   File jarName)
                            throws Exception
Throws:
Exception

createTestProject

protected MavenProjectResourcesStub createTestProject(String testName)
                                               throws Exception
Throws:
Exception

setupDefaultProject

protected void setupDefaultProject(MavenProjectResourcesStub project)
                            throws Exception
Throws:
Exception

lookupBundleMojo

protected org.apache.maven.plugin.resources.remote.BundleRemoteResourcesMojo lookupBundleMojo()
                                                                                       throws Exception
Throws:
Exception

lookupBundleMojoWithDefaultSettings

protected org.apache.maven.plugin.resources.remote.BundleRemoteResourcesMojo lookupBundleMojoWithDefaultSettings(org.apache.maven.project.MavenProject project)
                                                                                                          throws Exception
Throws:
Exception

lookupBundleMojoWithSettings

protected org.apache.maven.plugin.resources.remote.BundleRemoteResourcesMojo lookupBundleMojoWithSettings(org.apache.maven.project.MavenProject project,
                                                                                                          File resourceDir,
                                                                                                          String sourceEncoding)
                                                                                                   throws Exception
Throws:
Exception

lookupProcessMojo

protected org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo lookupProcessMojo()
                                                                                         throws Exception
Throws:
Exception

lookupProcessMojoWithSettings

protected org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(org.apache.maven.project.MavenProject project,
                                                                                                            String[] bundles)
                                                                                                     throws Exception
Throws:
Exception

lookupProcessMojoWithSettings

protected org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(org.apache.maven.project.MavenProject project,
                                                                                                            ArrayList bundles)
                                                                                                     throws Exception
Throws:
Exception

lookupProcessMojoWithDefaultSettings

protected org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo lookupProcessMojoWithDefaultSettings(org.apache.maven.project.MavenProject project)
                                                                                                            throws Exception
Throws:
Exception


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