Class RemoteResourcesMojoTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.testing.AbstractMojoTestCase
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildResourceBundle
(String id, String sourceEncoding, String[] resourceNames, File jarName) protected MavenProjectResourcesStub
createTestProject
(String testName) protected BundleRemoteResourcesMojo
protected BundleRemoteResourcesMojo
lookupBundleMojoWithDefaultSettings
(org.apache.maven.project.MavenProject project) protected BundleRemoteResourcesMojo
lookupBundleMojoWithSettings
(org.apache.maven.project.MavenProject project, File resourceDir, String sourceEncoding) protected ProcessRemoteResourcesMojo
protected ProcessRemoteResourcesMojo
lookupProcessMojoWithDefaultSettings
(org.apache.maven.project.MavenProject project) protected ProcessRemoteResourcesMojo
lookupProcessMojoWithSettings
(org.apache.maven.project.MavenProject project, String[] bundles) protected ProcessRemoteResourcesMojo
lookupProcessMojoWithSettings
(org.apache.maven.project.MavenProject project, ArrayList<String> bundles) void
setUp()
protected void
void
tearDown()
void
void
void
void
void
void
void
void
check test environmentvoid
void
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
addGuiceModules, configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObject
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, teardownContainer
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
Constructor Details
-
RemoteResourcesMojoTest
public RemoteResourcesMojoTest()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classorg.apache.maven.plugin.testing.AbstractMojoTestCase
- Throws:
Exception
-
tearDown
- Overrides:
tearDown
in classorg.codehaus.plexus.PlexusTestCase
- Throws:
Exception
-
testTestEnvironment
check test environment- Throws:
Exception
- if any exception occurs
-
testNoBundles
- Throws:
Exception
-
testCreateBundle
- Throws:
Exception
-
testSimpleBundles
- Throws:
Exception
-
testSimpleBundlesWithType
- Throws:
Exception
-
testSimpleBundlesWithClassifier
- Throws:
Exception
-
testVelocityUTF8
- Throws:
Exception
-
testVelocityISO88591
- Throws:
Exception
-
testFilteredBundles
- Throws:
Exception
-
testFilteredBundlesWithProjectProperties
- Throws:
Exception
-
buildResourceBundle
protected void buildResourceBundle(String id, String sourceEncoding, String[] resourceNames, File jarName) throws Exception - Throws:
Exception
-
createTestProject
- Throws:
Exception
-
setupDefaultProject
- Throws:
Exception
-
lookupBundleMojo
- Throws:
Exception
-
lookupBundleMojoWithDefaultSettings
protected BundleRemoteResourcesMojo lookupBundleMojoWithDefaultSettings(org.apache.maven.project.MavenProject project) throws Exception - Throws:
Exception
-
lookupBundleMojoWithSettings
protected BundleRemoteResourcesMojo lookupBundleMojoWithSettings(org.apache.maven.project.MavenProject project, File resourceDir, String sourceEncoding) throws Exception - Throws:
Exception
-
lookupProcessMojo
- Throws:
Exception
-
lookupProcessMojoWithSettings
protected ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(org.apache.maven.project.MavenProject project, String[] bundles) throws Exception - Throws:
Exception
-
lookupProcessMojoWithSettings
protected ProcessRemoteResourcesMojo lookupProcessMojoWithSettings(org.apache.maven.project.MavenProject project, ArrayList<String> bundles) throws Exception - Throws:
Exception
-
lookupProcessMojoWithDefaultSettings
protected ProcessRemoteResourcesMojo lookupProcessMojoWithDefaultSettings(org.apache.maven.project.MavenProject project) throws Exception - Throws:
Exception
-