You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by js...@apache.org on 2006/05/25 19:24:02 UTC

svn commit: r409418 - /incubator/activemq/site/example-testing-scenario.html

Author: jstrachan
Date: Thu May 25 10:24:01 2006
New Revision: 409418

URL: http://svn.apache.org/viewvc?rev=409418&view=rev
Log:
Latest export from confluence

Modified:
    incubator/activemq/site/example-testing-scenario.html

Modified: incubator/activemq/site/example-testing-scenario.html
URL: http://svn.apache.org/viewvc/incubator/activemq/site/example-testing-scenario.html?rev=409418&r1=409417&r2=409418&view=diff
==============================================================================
--- incubator/activemq/site/example-testing-scenario.html (original)
+++ incubator/activemq/site/example-testing-scenario.html Thu May 25 10:24:01 2006
@@ -329,7 +329,30 @@
 
 <P>Fairly soon we&apos;re gonna have tons of builds firing off. We may want a single project to build with a raft of different test suites. Each single distributed integration/system/performance test might have many sub-builds (processes) to run.</P>
 
-<P>So we might want to run a single JUnit test case </P></DIV>
+<P>So we might want to run a single JUnit test case which fires off different remote builds/processes.</P>
+
+<P>e.g.</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java"><SPAN class="code-keyword">public</SPAN> class PerformanceTestSuite {
+   <SPAN class="code-keyword">public</SPAN> void testSmallMessages() {
+   	  buildQueue.start(<SPAN class="code-quote">&quot;broker&quot;</SPAN>, &quot;&quot;);
+   	  buildQueue.start(<SPAN class="code-quote">&quot;consumer&quot;</SPAN>, <SPAN class="code-quote">&quot;--messageCount=1000&quot;</SPAN>);
+   	  buildQueue.start(<SPAN class="code-quote">&quot;producer&quot;</SPAN>, <SPAN class="code-quote">&quot;--messageCount=1000&quot;</SPAN>);
+   	  buildQueue.join(5 * MINUTES);
+   }
+   	  
+   <SPAN class="code-keyword">public</SPAN> void testLargeMessages() {
+   	  buildQueue.start(<SPAN class="code-quote">&quot;broker&quot;</SPAN>, &quot;&quot;);
+   	  buildQueue.start(<SPAN class="code-quote">&quot;consumer&quot;</SPAN>, <SPAN class="code-quote">&quot;--messageCount=1000 --messageSize=1M&quot;</SPAN>);
+   	  buildQueue.start(<SPAN class="code-quote">&quot;producer&quot;</SPAN>, <SPAN class="code-quote">&quot;--messageCount=1000 --messageSize=1M&quot;</SPAN>);
+   	  buildQueue.join(10 * MINUTES);
+   }
+}</PRE>
+</DIV></DIV>   	  
+
+<P>So these 2 test cases in JUnit in the controller build will each start 3 separate remote builds on the queue and wait for them to complete - or terminate them   	  </P>
+</DIV>
           
                   </DIV>
         </TD>
@@ -340,7 +363,7 @@
     <DIV id="site-footer">
           Added by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James Strachan</A>,
     last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James Strachan</A> on May 25, 2006
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=6131&originalId=6133">view change</A>)
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=6131&originalId=6135">view change</A>)
               
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=6131">edit page</A>)
     </DIV>