Author: jdcasey
Date: Wed Jun 18 08:46:22 2008
New Revision: 669205
URL: http://svn.apache.org/viewvc?rev=669205&view=rev
Log:
Applying patch to make the testing harness compatible with new plexus classes
used in 2.1
Modified:
maven/plugin-testing/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java
Modified:
maven/plugin-testing/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java
URL:
http://svn.apache.org/viewvc/maven/plugin-testing/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java?rev=669205&r1=669204&r2=669205&view=diff
==============================================================================
---
maven/plugin-testing/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java
(original)
+++
maven/plugin-testing/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java
Wed Jun 18 08:46:22 2008
@@ -181,7 +181,7 @@
Mojo mojo = (Mojo) lookup( Mojo.ROLE, groupId + ":" + artifactId + ":"
+ version + ":" + goal );
- Log mojoLogger = new DefaultLog(
container.getLoggerManager().getLoggerForComponent( Mojo.ROLE ) );
+ Log mojoLogger = new DefaultLog(
getContainer().getLoggerManager().getLoggerForComponent( Mojo.ROLE ) );
mojo.setLog( mojoLogger );
@@ -445,7 +445,7 @@
private void validateContainerStatus()
throws Exception
{
- if ( container != null )
+ if ( getContainer() != null )
{
return;
}