org.apache.maven.tools.plugin.scanner
Class DefaultMojoScannerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.tools.plugin.scanner.DefaultMojoScannerTest
All Implemented Interfaces:
Test

public class DefaultMojoScannerTest
extends TestCase

Author:
jdcasey

Constructor Summary
DefaultMojoScannerTest()
           
 
Method Summary
protected  void checkResult(PluginDescriptor pluginDescriptor, Collection<String> expectedGoals)
          Checks if the PluginDescriptor contains exactly the MojoDescriptors with the supplied goal names.
protected  void setUp()
           
 void testAllExtractorsThroughNull()
           
 void testNoExtractorsThroughEmptySet()
           
 void testSpecifiedExtractors()
           
 void testUnknownExtractor()
           
 void testUnspecifiedExtractors()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMojoScannerTest

public DefaultMojoScannerTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class TestCase
Throws:
Exception

testUnspecifiedExtractors

public void testUnspecifiedExtractors()
                               throws Exception
Throws:
Exception

testSpecifiedExtractors

public void testSpecifiedExtractors()
                             throws Exception
Throws:
Exception

testAllExtractorsThroughNull

public void testAllExtractorsThroughNull()
                                  throws Exception
Throws:
Exception

testNoExtractorsThroughEmptySet

public void testNoExtractorsThroughEmptySet()
                                     throws Exception
Throws:
Exception

testUnknownExtractor

public void testUnknownExtractor()
                          throws Exception
Throws:
Exception

checkResult

protected void checkResult(PluginDescriptor pluginDescriptor,
                           Collection<String> expectedGoals)
Checks if the PluginDescriptor contains exactly the MojoDescriptors with the supplied goal names.

Parameters:
pluginDescriptor - The PluginDescriptor to check.
expectedGoals - The goal names of the MojoDescriptors.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.