org.apache.maven.plugin.idea
Class AbstractIdeaTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.codehaus.plexus.PlexusTestCase
              extended byorg.apache.maven.plugin.testing.AbstractMojoTestCase
                  extended byorg.apache.maven.plugin.idea.AbstractIdeaTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
IdeaModuleTest, IdeaProjectTest, IdeaWorkspaceTest

public abstract class AbstractIdeaTestCase
extends org.apache.maven.plugin.testing.AbstractMojoTestCase

Author:
Edwin Punzalan

Field Summary
protected  org.apache.maven.plugin.Mojo mojo
           
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
AbstractIdeaTestCase()
           
 
Method Summary
protected  org.dom4j.Document executeMojo(java.lang.String goal, java.lang.String pluginXml, java.lang.String targetExtension)
           
protected  org.dom4j.Element findComponent(org.dom4j.Element module, java.lang.String name)
           
protected  org.dom4j.Element findElement(org.dom4j.Element component, java.lang.String name)
           
protected  org.dom4j.Element findElementByNameAttribute(org.dom4j.Element element, java.lang.String elementName, java.lang.String nameAttribute)
           
protected  java.util.List findElementsByName(org.dom4j.Element element, java.lang.String elementName)
           
protected  org.dom4j.Document readXmlDocument(java.io.File xmlFile)
           
 
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setUp, 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, tearDown
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mojo

protected org.apache.maven.plugin.Mojo mojo
Constructor Detail

AbstractIdeaTestCase

public AbstractIdeaTestCase()
Method Detail

executeMojo

protected org.dom4j.Document executeMojo(java.lang.String goal,
                                         java.lang.String pluginXml,
                                         java.lang.String targetExtension)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

readXmlDocument

protected org.dom4j.Document readXmlDocument(java.io.File xmlFile)
                                      throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

findComponent

protected org.dom4j.Element findComponent(org.dom4j.Element module,
                                          java.lang.String name)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

findElementByNameAttribute

protected org.dom4j.Element findElementByNameAttribute(org.dom4j.Element element,
                                                       java.lang.String elementName,
                                                       java.lang.String nameAttribute)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

findElementsByName

protected java.util.List findElementsByName(org.dom4j.Element element,
                                            java.lang.String elementName)

findElement

protected org.dom4j.Element findElement(org.dom4j.Element component,
                                        java.lang.String name)


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