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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Apache Maven - http://maven.apache.org "Better Builds with Maven" book - http://library.mergere.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]