[ 
https://jira.codehaus.org/browse/MPLUGINTESTING-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=362434#comment-362434
 ] 

Cristiano GaviĆ£o edited comment on MPLUGINTESTING-34 at 2/3/15 8:44 AM:
------------------------------------------------------------------------

Its being a challenge to learn to create functional tests for mojos.  The 
example code that I found on testing-harness site is not compiling. 
Then I came to this jira just to create a bug but I found that one was already 
created, but strangely closed. 

So, some dev please could reopen it ?

 the code that is not compiling is below (copied from there today):
    {code}
    File pom = getTestFile( "src/test/resources/unit/project-to-test/pom.xml" );
    {code}    


was (Author: cvgaviao):
Its being a challenge to learn to create functional tests for mojos.  The 
example code that I found on testing-harness site is not compiling. 
Then I came to this jira just to create a bug but I found that one was already 
created, but strangely closed. 

So, some dev please could reopen it ?

 the code that is not compiling is below (copied from there today):

    File pom = getTestFile( "src/test/resources/unit/project-to-test/pom.xml" );
        

> Documentation: sample code using MojoRule doesn't work
> ------------------------------------------------------
>
>                 Key: MPLUGINTESTING-34
>                 URL: https://jira.codehaus.org/browse/MPLUGINTESTING-34
>             Project: Maven Plugin Testing
>          Issue Type: Bug
>          Components: plugin-testing-harness
>    Affects Versions: 3.0.0
>            Reporter: Laird Nelson
>            Assignee: Jason van Zyl
>
> The cookbook reachable from 
> https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/getting-started/index.html
>  includes code like this:
> {code:java}
> File pom = rule.getTestFile( 
> "src/test/resources/unit/project-to-test/pom.xml" );
> {code}
> This method does not exist on {{MojoRule}} 
> (http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/MojoRule.html).



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to