Class CheckstyleViolationCheckMojoTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.codehaus.plexus.PlexusTestCase
-
- org.apache.maven.plugin.testing.AbstractMojoTestCase
-
- org.apache.maven.plugins.checkstyle.CheckstyleViolationCheckMojoTest
-
- All Implemented Interfaces:
junit.framework.Test
public class CheckstyleViolationCheckMojoTest extends AbstractMojoTestCase
- Author:
- Edwin Punzalan
-
-
Constructor Summary
Constructors Constructor Description CheckstyleViolationCheckMojoTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
mojoSetup(Mojo mojo)
void
testDefaultConfig()
void
testInvalidFormatWithSkipExec()
void
testNoFail()
void
testNoOutputFile()
void
testPlainOutputFile()
void
testPlainOutputFileFailOnError()
-
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setUp, setupContainer, setupContainerConfiguration, setVariableValueToObject
-
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDown
-
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
-
-
-
-
Method Detail
-
testDefaultConfig
public void testDefaultConfig() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInvalidFormatWithSkipExec
public void testInvalidFormatWithSkipExec() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testNoOutputFile
public void testNoOutputFile() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testPlainOutputFileFailOnError
public void testPlainOutputFileFailOnError() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testPlainOutputFile
public void testPlainOutputFile() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testNoFail
public void testNoFail() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mojoSetup
protected void mojoSetup(Mojo mojo) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-