org.apache.maven.plugin.idea
Class AbstractIdeaTestCase

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

public abstract class AbstractIdeaTestCase
extends AbstractMojoTestCase

Author:
Edwin Punzalan

Field Summary
protected  Mojo mojo
           
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
AbstractIdeaTestCase()
           
 
Method Summary
protected  org.dom4j.Document executeMojo(String goal, String pluginXml, String targetExtension)
           
protected  org.dom4j.Element findComponent(org.dom4j.Element module, String name)
           
protected  org.dom4j.Element findElement(org.dom4j.Element component, String name)
           
protected  org.dom4j.Element findElementByNameAttribute(org.dom4j.Element element, String elementName, String nameAttribute)
           
protected  List findElementsByName(org.dom4j.Element element, String elementName)
           
protected  org.dom4j.Document readXmlDocument(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 Mojo mojo
Constructor Detail

AbstractIdeaTestCase

public AbstractIdeaTestCase()
Method Detail

executeMojo

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

readXmlDocument

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

findComponent

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

findElementByNameAttribute

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

findElementsByName

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

findElement

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


Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.