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 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  BundleRemoteResourcesMojo lookupBundleMojo()
           
protected  BundleRemoteResourcesMojo lookupBundleMojoWithDefaultSettings(MavenProject project)
           
protected  BundleRemoteResourcesMojo lookupBundleMojoWithSettings(MavenProject project, File resourceDir, String sourceEncoding)
           
protected  ProcessRemoteResourcesMojo lookupProcessMojo()
           
protected  ProcessRemoteResourcesMojo lookupProcessMojoWithDefaultSettings(MavenProject project)
           
protected  ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(MavenProject project, ArrayList<String> bundles)
           
protected  ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(MavenProject project, String[] bundles)
           
 void setUp()
           
protected  void setupDefaultProject(MavenProjectResourcesStub project)
           
 void tearDown()
           
 void testCreateBundle()
           
 void testFilteredBundles()
           
 void testFilteredBundlesWithProjectProperties()
           
 void testNoBundles()
           
 void testSimpleBundles()
           
 void testSimpleBundlesWithClassifier()
           
 void testSimpleBundlesWithType()
           
 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 AbstractMojoTestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class org.codehaus.plexus.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

testSimpleBundlesWithType

public void testSimpleBundlesWithType()
                               throws Exception
Throws:
Exception

testSimpleBundlesWithClassifier

public void testSimpleBundlesWithClassifier()
                                     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 BundleRemoteResourcesMojo lookupBundleMojo()
                                              throws Exception
Throws:
Exception

lookupBundleMojoWithDefaultSettings

protected BundleRemoteResourcesMojo lookupBundleMojoWithDefaultSettings(MavenProject project)
                                                                 throws Exception
Throws:
Exception

lookupBundleMojoWithSettings

protected BundleRemoteResourcesMojo lookupBundleMojoWithSettings(MavenProject project,
                                                                 File resourceDir,
                                                                 String sourceEncoding)
                                                          throws Exception
Throws:
Exception

lookupProcessMojo

protected ProcessRemoteResourcesMojo lookupProcessMojo()
                                                throws Exception
Throws:
Exception

lookupProcessMojoWithSettings

protected ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(MavenProject project,
                                                                   String[] bundles)
                                                            throws Exception
Throws:
Exception

lookupProcessMojoWithSettings

protected ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(MavenProject project,
                                                                   ArrayList<String> bundles)
                                                            throws Exception
Throws:
Exception

lookupProcessMojoWithDefaultSettings

protected ProcessRemoteResourcesMojo lookupProcessMojoWithDefaultSettings(MavenProject project)
                                                                   throws Exception
Throws:
Exception


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