@PrepareForTest(value={com.simpligility.maven.plugins.android.CommandExecutor.Factory.class,org.codehaus.plexus.util.FileUtils.class,com.simpligility.maven.plugins.android.standalonemojos.ZipalignMojo.class}) public class ZipalignMojoTest extends AbstractAndroidMojoTestCase<ZipalignMojo>
execution, session
Constructor and Description |
---|
ZipalignMojoTest() |
Modifier and Type | Method and Description |
---|---|
String |
getPluginGoalName()
The Goal Name of the Plugin being tested.
|
void |
testConfigParse()
Tests all parameters parsing
Probably not needed since it is like testing maven itself
|
void |
testDefaultConfig()
Tests all options, checks if their default values are correct.
|
void |
testDefaultRun()
Tests run of zipalign with correct parameters as well adding aligned file to artifacts
|
void |
testRunWhenInputApkIsSameAsOutput()
Tests run of zipalign with correct parameters
|
createMojo, getProjectDir
addGuiceModules, configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setUp, setupContainer, setupContainerConfiguration, setVariableValueToObject
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown
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
public String getPluginGoalName()
AbstractAndroidMojoTestCase
Used to look for <configuration>
section in the plugin-config.xml
that will be used to configure the mojo from.
getPluginGoalName
in class AbstractAndroidMojoTestCase<ZipalignMojo>
public void testDefaultConfig() throws Exception
Exception
public void testConfigParse() throws Exception
Exception
public void testDefaultRun() throws Exception
Exception
Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.