You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bw...@apache.org on 2003/04/22 00:39:17 UTC
cvs commit: maven-new/src/test/org/apache/maven/plugins/example ExampleComponentTest.java
bwalding 2003/04/21 15:39:17
Modified: src/test/org/apache/maven/plugins/example
ExampleComponentTest.java
Log:
More bits
Revision Changes Path
1.2 +14 -2 maven-new/src/test/org/apache/maven/plugins/example/ExampleComponentTest.java
Index: ExampleComponentTest.java
===================================================================
RCS file: /home/cvs/maven-new/src/test/org/apache/maven/plugins/example/ExampleComponentTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ExampleComponentTest.java 21 Apr 2003 14:39:11 -0000 1.1
+++ ExampleComponentTest.java 21 Apr 2003 22:39:16 -0000 1.2
@@ -55,7 +55,7 @@
*
* ====================================================================
*/
-
+
import org.apache.plexus.PlexusTestCase;
/**
@@ -82,6 +82,18 @@
if (!(o instanceof ExampleService))
{
fail("Returned component (" + o.getClass().getName() + " was not instanceof ExampleService");
+ }
+
+ }
+
+ /**
+ * This lets you see how the container is creating new components
+ * @throws Exception
+ */
+ public void testConcurrentLifecycle() throws Exception {
+ for (int i = 0; i < 10; i++) {
+ ExampleService es = (ExampleService) getComponent(ExampleService.ROLE);
+ System.out.println("id:" + es.getId());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org