You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dave Syer <da...@hotmail.com> on 2006/08/10 15:15:34 UTC
Re: maven-plugin-testing-harness: getting an ArtifactRepository for
my t
> Actually, I created a small maven-artifact-test module for that. It
> needs more detail, but it'll help you get a usable repository
> instance.
It gets me a repository, but how do I inject it into a mojo in a test case?
Sorry to be so thick about this. Also since your test case extends
PlexusTestCase I can't use it and the AbstractMojoTestCase together. Any
suggestions?
--
View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744003
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-plugin-testing-harness: getting an ArtifactRepository for
my t
Posted by Dave Syer <da...@hotmail.com>.
> Both good ideas - please put them in JIRA so they don't get forgotten :)
MNG-2494 - the url in the plugin dev guide
MNG-2495 - the javadocs for test harness
I wasn't sure which component to select for the second one. It went in
"Plugin API".
--
View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5758485
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t
Posted by Brett Porter <br...@gmail.com>.
Both good ideas - please put them in JIRA so they don't get forgotten :)
- Brett
On 11/08/06, Dave Syer <da...@hotmail.com> wrote:
>
> > However, if you prefer the private field injection you can also use
> > the helpers in the abstract test case (setFieldForObject, I think).
>
> setVariableValueToObject. Thanks.
>
> P.S. there is no javadoc report at
> http://maven.apache.org/shared/maven-plugin-testing-harness. Would it be
> easy to add it?
>
> P.P.S. It's quite hard to find the URL above. Could someone put a link in
> the main plugin API guide
> (http://maven.apache.org/guides/plugin/guide-java-plugin-development.html)?
> --
> View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5757462
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-plugin-testing-harness: getting an ArtifactRepository for
my t
Posted by Dave Syer <da...@hotmail.com>.
> However, if you prefer the private field injection you can also use
> the helpers in the abstract test case (setFieldForObject, I think).
setVariableValueToObject. Thanks.
P.S. there is no javadoc report at
http://maven.apache.org/shared/maven-plugin-testing-harness. Would it be
easy to add it?
P.P.S. It's quite hard to find the URL above. Could someone put a link in
the main plugin API guide
(http://maven.apache.org/guides/plugin/guide-java-plugin-development.html)?
--
View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5757462
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t
Posted by Brett Porter <br...@gmail.com>.
You can add setters if you like - they'll be used.
However, if you prefer the private field injection you can also use
the helpers in the abstract test case (setFieldForObject, I think).
- Brett
On 10/08/06, Dave Syer <da...@hotmail.com> wrote:
>
> > I see what you mean about getting it into a mojo - you'll need to set
> > it directly into there.
>
> How? Can you help me to understand how to inject a property into a mojo?
> They seem to just have private fields and no setters. Is there a reason for
> them not having public setters? I could add setters for my mojo parameters.
> --
> View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744691
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-plugin-testing-harness: getting an ArtifactRepository for
my t
Posted by Dave Syer <da...@hotmail.com>.
> I see what you mean about getting it into a mojo - you'll need to set
> it directly into there.
How? Can you help me to understand how to inject a property into a mojo?
They seem to just have private fields and no setters. Is there a reason for
them not having public setters? I could add setters for my mojo parameters.
--
View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744691
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t
Posted by Brett Porter <br...@gmail.com>.
Ah, you might need to just steal the code then.
I see what you mean about getting it into a mojo - you'll need to set
it directly into there.
The plugin testing harness still needs some work...
- Brett
On 10/08/06, Dave Syer <da...@hotmail.com> wrote:
>
>
> > Actually, I created a small maven-artifact-test module for that. It
> > needs more detail, but it'll help you get a usable repository
> > instance.
>
> It gets me a repository, but how do I inject it into a mojo in a test case?
> Sorry to be so thick about this. Also since your test case extends
> PlexusTestCase I can't use it and the AbstractMojoTestCase together. Any
> suggestions?
> --
> View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744003
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org