You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-dev@james.apache.org by rd...@apache.org on 2008/12/13 14:16:49 UTC

svn commit: r726198 [8/18] - in /james/site/trunk/www/mpt: ./ antlib/ antlib/emma/ antlib/emma/_files/ apidocs/ apidocs/org/apache/james/mpt/ apidocs/org/apache/james/mpt/ant/ apidocs/org/apache/james/mpt/ant/class-use/ apidocs/org/apache/james/mpt/app...

Modified: james/site/trunk/www/mpt/main/dependency-convergence.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/main/dependency-convergence.html?rev=726198&r1=726197&r2=726198&view=diff
==============================================================================
--- james/site/trunk/www/mpt/main/dependency-convergence.html (original)
+++ james/site/trunk/www/mpt/main/dependency-convergence.html Sat Dec 13 05:16:44 2008
@@ -45,7 +45,7 @@
   
   
             <div class="xleft">
-        Last Published: 12/02/2008
+        Last Published: 12/13/2008
                       </div>
             <div class="xright">      <a href="../../index.html">JAMES Project</a>
           |
@@ -205,6 +205,10 @@
     <li class="none">
               <a href="../antlib">AntLib</a>
         </li>
+              
+    <li class="none">
+              <a href="../app">Application</a>
+        </li>
           </ul>
           <h5>Useful Information</h5>
         <ul>
@@ -265,7 +269,7 @@
     </div>
     <div id="bodyColumn">
       <div id="contentBox">
-        <div class="section"><h2>Reactor Dependency Convergence</h2><table class="bodyTable"><caption><b>Legend:</b></caption><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td>All projects share one version of the dependency.</td></tr><tr class="b"><td><img alt="error" src="images/icon_error_sml.gif" /></td><td>At least one project has a differing version of the dependency.</td></tr></table><br /><table class="bodyTable"><caption><b>Statistics:</b></caption><tr class="a"><th>Number of sub-projects:</th><td>3</td></tr><tr class="b"><th>Number of dependencies (NOD):</th><td>6</td></tr><tr class="a"><th>Number of unique artifacts (NOA):</th><td>6</td></tr><tr class="b"><th>Number of SNAPSHOT artifacts (NOS):</th><td>0</td></tr><tr class="a"><th>Convergence (NOD/NOA):</th><td><img alt="success" src="images/icon_success_sml.gif" />&#160;<b>100%</b></td></tr><tr class="b"><th>Ready for Release (100% Convergence and no SNAPSHOTS):</th><td><img alt="s
 uccess" src="images/icon_success_sml.gif" />&#160;<b>Success</b></td></tr></table></div><div class="section"><h3>Dependencies used in sub-projects</h3><div class="section"><h4>commons-logging:commons-logging</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >1.1</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/apache-james-mtp-antlib">org.apache.james:apache-james-mtp-antlib</a></li><li><a href="http://james.apache.org/mpt/apache-james-mtp">org.apache.james:apache-james-mtp</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>jmock:jmock</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >1.1.0</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/apache-james-mtp-antlib">org.apache.james:apache-james
 -mtp-antlib</a></li><li><a href="http://james.apache.org/mpt/apache-james-mtp">org.apache.james:apache-james-mtp</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>junit:junit</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >3.8.1</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/apache-james-mtp-antlib">org.apache.james:apache-james-mtp-antlib</a></li><li><a href="http://james.apache.org/mpt/apache-james-mtp">org.apache.james:apache-james-mtp</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>org.apache.ant:ant</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >1.7.1</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/apache-james-mtp-antlib">org.apache.james:apache
 -james-mtp-antlib</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>org.apache.ant:ant-antunit</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >1.1</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/apache-james-mtp-antlib">org.apache.james:apache-james-mtp-antlib</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>org.apache.james:apache-james-mtp</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >0.1-SNAPSHOT</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/apache-james-mtp-antlib">org.apache.james:apache-james-mtp-antlib</a></li><li><a href="http://james.apache.org/mpt/apache-james-mtp-antlib">org.apache.james:apache-james-mtp-antlib</a></li></ol></td></tr></tab
 le></td></tr></table></div></div>
+        <div class="section"><h2>Reactor Dependency Convergence</h2><table class="bodyTable"><caption><b>Legend:</b></caption><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td>All projects share one version of the dependency.</td></tr><tr class="b"><td><img alt="error" src="images/icon_error_sml.gif" /></td><td>At least one project has a differing version of the dependency.</td></tr></table><br /><table class="bodyTable"><caption><b>Statistics:</b></caption><tr class="a"><th>Number of sub-projects:</th><td>4</td></tr><tr class="b"><th>Number of dependencies (NOD):</th><td>7</td></tr><tr class="a"><th>Number of unique artifacts (NOA):</th><td>7</td></tr><tr class="b"><th>Number of SNAPSHOT artifacts (NOS):</th><td>0</td></tr><tr class="a"><th>Convergence (NOD/NOA):</th><td><img alt="success" src="images/icon_success_sml.gif" />&#160;<b>100%</b></td></tr><tr class="b"><th>Ready for Release (100% Convergence and no SNAPSHOTS):</th><td><img alt="s
 uccess" src="images/icon_success_sml.gif" />&#160;<b>Success</b></td></tr></table></div><div class="section"><h3>Dependencies used in sub-projects</h3><div class="section"><h4>commons-cli:commons-cli</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >1.1</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/app">org.apache.james:apache-james-mtp-app</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>commons-logging:commons-logging</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >1.1</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/antlib">org.apache.james:apache-james-mtp-antlib</a></li><li><a href="http://james.apache.org/mpt/app">org.apache.james:apache-james-mtp-app</a></li><li><a href="http:/
 /james.apache.org/mpt/main">org.apache.james:apache-james-mtp</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>jmock:jmock</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >1.1.0</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/antlib">org.apache.james:apache-james-mtp-antlib</a></li><li><a href="http://james.apache.org/mpt/app">org.apache.james:apache-james-mtp-app</a></li><li><a href="http://james.apache.org/mpt/main">org.apache.james:apache-james-mtp</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>junit:junit</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >3.8.1</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/antlib">org.apache.james:apache-james-mtp-a
 ntlib</a></li><li><a href="http://james.apache.org/mpt/app">org.apache.james:apache-james-mtp-app</a></li><li><a href="http://james.apache.org/mpt/main">org.apache.james:apache-james-mtp</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>org.apache.ant:ant</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >1.7.1</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/antlib">org.apache.james:apache-james-mtp-antlib</a></li></ol></td></tr></table></td></tr></table></div><div class="section"><h4>org.apache.ant:ant-antunit</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >1.1</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/antlib">org.apache.james:apache-james-mtp-antlib</a></li></ol></td></tr></table
 ></td></tr></table></div><div class="section"><h4>org.apache.james:apache-james-mtp</h4><table class="bodyTable"><tr class="a"><td><img alt="success" src="images/icon_success_sml.gif" /></td><td><table class="bodyTable"><tr class="b"><td width="25%" >0.1-SNAPSHOT</td><td><ol type="a"><li><a href="http://james.apache.org/mpt/antlib">org.apache.james:apache-james-mtp-antlib</a></li><li><a href="http://james.apache.org/mpt/antlib">org.apache.james:apache-james-mtp-antlib</a></li><li><a href="http://james.apache.org/mpt/app">org.apache.james:apache-james-mtp-app</a></li><li><a href="http://james.apache.org/mpt/app">org.apache.james:apache-james-mtp-app</a></li></ol></td></tr></table></td></tr></table></div></div>
       </div>
     </div>
     <div class="clear">

Modified: james/site/trunk/www/mpt/main/dependency-management.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/main/dependency-management.html?rev=726198&r1=726197&r2=726198&view=diff
==============================================================================
--- james/site/trunk/www/mpt/main/dependency-management.html (original)
+++ james/site/trunk/www/mpt/main/dependency-management.html Sat Dec 13 05:16:44 2008
@@ -45,7 +45,7 @@
   
   
             <div class="xleft">
-        Last Published: 12/02/2008
+        Last Published: 12/13/2008
                       </div>
             <div class="xright">      <a href="../../index.html">JAMES Project</a>
           |
@@ -205,6 +205,10 @@
     <li class="none">
               <a href="../antlib">AntLib</a>
         </li>
+              
+    <li class="none">
+              <a href="../app">Application</a>
+        </li>
           </ul>
           <h5>Useful Information</h5>
         <ul>
@@ -265,7 +269,7 @@
     </div>
     <div id="bodyColumn">
       <div id="contentBox">
-        <div class="section"><h2>Project Dependency Management</h2><div class="section"><h3>compile</h3><p>The following is a list of compile dependencies in the DependencyManagement of this project. These dependencies can be included in the submodules to compile and run the submodule:</p><table class="bodyTable"><tr class="a"><th>GroupId</th><th>ArtifactId</th><th>Version</th><th>Type</th></tr><tr class="b"><td>commons-logging</td><td>commons-logging</td><td>1.1</td><td>jar</td></tr><tr class="a"><td>junit</td><td><a href="http://junit.org">junit</a></td><td>3.8.1</td><td>jar</td></tr><tr class="b"><td>org.apache.ant</td><td><a href="http://ant.apache.org/ant">ant</a></td><td>1.7.1</td><td>jar</td></tr><tr class="a"><td>org.apache.james</td><td>apache-james-mpt</td><td>0.1-SNAPSHOT</td><td>jar</td></tr></table></div><div class="section"><h3>test</h3><p>The following is a list of test dependencies in the DependencyManagement of this project. These dependencies can be include
 d in the submodules to compile and run unit tests for the submodule:</p><table class="bodyTable"><tr class="b"><th>GroupId</th><th>ArtifactId</th><th>Version</th><th>Type</th></tr><tr class="a"><td>jmock</td><td><a href="http://www.jmock.org/">jmock</a></td><td>1.1.0</td><td>jar</td></tr><tr class="b"><td>org.apache.ant</td><td>ant-antunit</td><td>1.1</td><td>jar</td></tr></table></div></div>
+        <div class="section"><h2>Project Dependency Management</h2><div class="section"><h3>compile</h3><p>The following is a list of compile dependencies in the DependencyManagement of this project. These dependencies can be included in the submodules to compile and run the submodule:</p><table class="bodyTable"><tr class="a"><th>GroupId</th><th>ArtifactId</th><th>Version</th><th>Type</th></tr><tr class="b"><td>commons-cli</td><td><a href="http://jakarta.apache.org/commons/cli/">commons-cli</a></td><td>1.1</td><td>jar</td></tr><tr class="a"><td>commons-logging</td><td>commons-logging</td><td>1.1</td><td>jar</td></tr><tr class="b"><td>junit</td><td><a href="http://junit.org">junit</a></td><td>3.8.1</td><td>jar</td></tr><tr class="a"><td>org.apache.ant</td><td><a href="http://ant.apache.org/ant">ant</a></td><td>1.7.1</td><td>jar</td></tr><tr class="b"><td>org.apache.james</td><td>apache-james-mpt</td><td>0.1-SNAPSHOT</td><td>jar</td></tr></table></div><div class="section"><h3
 >test</h3><p>The following is a list of test dependencies in the DependencyManagement of this project. These dependencies can be included in the submodules to compile and run unit tests for the submodule:</p><table class="bodyTable"><tr class="a"><th>GroupId</th><th>ArtifactId</th><th>Version</th><th>Type</th></tr><tr class="b"><td>jmock</td><td><a href="http://www.jmock.org/">jmock</a></td><td>1.1.0</td><td>jar</td></tr><tr class="a"><td>org.apache.ant</td><td>ant-antunit</td><td>1.1</td><td>jar</td></tr></table></div></div>
       </div>
     </div>
     <div class="clear">

Modified: james/site/trunk/www/mpt/main/doap_apache-james-mtp.rdf
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/main/doap_apache-james-mtp.rdf?rev=726198&r1=726197&r2=726198&view=diff
==============================================================================
--- james/site/trunk/www/mpt/main/doap_apache-james-mtp.rdf (original)
+++ james/site/trunk/www/mpt/main/doap_apache-james-mtp.rdf Sat Dec 13 05:16:44 2008
@@ -6,13 +6,13 @@
 <!--                                                                        -->
 <!-- Any modifications will be overwritten.                                 -->
 <!--                                                                        -->
-<!-- Generated by Maven Doap Plugin on 12/2/08 7:48 PM                      -->
+<!-- Generated by Maven Doap Plugin on 12/13/08 1:01 PM                     -->
 <!-- See: http://maven.apache.org/plugins/maven-doap-plugin/                -->
 <!--                                                                        -->
 <!-- ====================================================================== -->
 
 <rdf:RDF xml:lang="en" xmlns="http://usefulinc.com/ns/doap#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:asfext="http://projects.apache.org/ns/asfext#">
-  <Project rdf:about="http://james.apache.org/mpt/apache-james-mtp">
+  <Project rdf:about="http://james.apache.org/mpt/main">
 
     <!-- ====================================================================== -->
     <!-- A name of something.                                                   -->
@@ -39,7 +39,7 @@
     <!-- URL of a project's homepage, associated with exactly one project.      -->
     <!-- ====================================================================== -->
 
-    <homepage rdf:resource="http://james.apache.org/mpt/apache-james-mtp"/>
+    <homepage rdf:resource="http://james.apache.org/mpt/main"/>
 
     <!-- ====================================================================== -->
     <!-- The URI of the license the software is distributed under.              -->

Modified: james/site/trunk/www/mpt/main/emma/_files/0.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/main/emma/_files/0.html?rev=726198&r1=726197&r2=726198&view=diff
==============================================================================
--- james/site/trunk/www/mpt/main/emma/_files/0.html (original)
+++ james/site/trunk/www/mpt/main/emma/_files/0.html Sat Dec 13 05:16:44 2008
@@ -1 +1 @@
-<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft 
 A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;}  TD.bt {border-width:
 1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="tl"><A HREF="http://emma.sourceforge.net/">EMMA</A> Coverage Report (generated Tue Dec 02 19:48:30 GMT 2008)</TH></TR><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR PACKAGE [<SPAN CLASS="in">org.apache.james.mpt</SPAN>]</H2><TABLE WIDTH="100%" CELLSPACING="0"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>org.apache.james.mpt</TD><TD CLASS="h">59%  (10/17)</TD><TD CLASS="h">32%  (33/102)</TD><TD CLASS="h">30%  (594/1987)</TD><TD CLASS="h">32%  (153.5/479)</TD></TR></TABLE><H3>COVERAGE BREAKDOWN BY SOURCE FILE</H3><TABLE WIDTH="100%" CELLSPACING="0"
 ><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR CLASS="o"><TD><A HREF="1.html">AbstractProtocolTestFramework.java</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/43)</TD><TD CLASS="h">0%   (0/16)</TD></TR><TR><TD><A HREF="2.html">AbstractSimpleScriptedTestProtocol.java</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/74)</TD><TD CLASS="h">0%   (0/17)</TD></TR><TR CLASS="o"><TD><A HREF="3.html">InvalidServerResponseException.java</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/4)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR><TD><A HREF="4.html">SystemLoggingMonitor.java</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/6)</TD><TD CLASS="h">0%   (0/25)</
 TD><TD CLASS="h">0%   (0/11)</TD></TR><TR CLASS="o"><TD><A HREF="5.html">ProtocolSession.java</A></TD><TD CLASS="h">40%  (2/5)</TD><TD CLASS="h">18%  (7/40)</TD><TD CLASS="h">14%  (105/770)</TD><TD CLASS="h">15%  (27.5/187)</TD></TR><TR><TD><A HREF="6.html">ExternalSession.java</A></TD><TD>100% (1/1)</TD><TD CLASS="h">60%  (6/10)</TD><TD CLASS="h">34%  (108/314)</TD><TD CLASS="h">40%  (27/68)</TD></TR><TR CLASS="o"><TD><A HREF="7.html">ProtocolSessionBuilder.java</A></TD><TD>100% (1/1)</TD><TD CLASS="h">56%  (5/9)</TD><TD CLASS="h">45%  (156/344)</TD><TD CLASS="h">48%  (42/88)</TD></TR><TR><TD><A HREF="8.html">ExternalSessionFactory.java</A></TD><TD>100% (1/1)</TD><TD CLASS="h">50%  (2/4)</TD><TD CLASS="h">49%  (35/72)</TD><TD CLASS="h">64%  (9/14)</TD></TR><TR CLASS="o"><TD><A HREF="9.html">ExternalHostSystem.java</A></TD><TD>100% (1/1)</TD><TD>100% (2/2)</TD><TD CLASS="h">
 51%  (19/37)</TD><TD>86%  (6/7)</TD></TR><TR><TD><A HREF="a.html">ScriptedUserAdder.java</A></TD><TD>100% (1/1)</TD><TD CLASS="h">57%  (4/7)</TD><TD CLASS="h">55%  (73/133)</TD><TD CLASS="h">73%  (19/26)</TD></TR><TR CLASS="o"><TD><A HREF="b.html">Runner.java</A></TD><TD>100% (2/2)</TD><TD CLASS="h">44%  (4/9)</TD><TD CLASS="h">56%  (93/165)</TD><TD CLASS="h">51%  (20/39)</TD></TR><TR><TD><A HREF="c.html">NullMonitor.java</A></TD><TD>100% (1/1)</TD><TD>75%  (3/4)</TD><TD>83%  (5/6)</TD><TD CLASS="h">75%  (3/4)</TD></TR></TABLE><P></P><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://sourceforge.net/projects/emma">EMMA 2.0.5312</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>
\ No newline at end of file
+<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft 
 A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;}  TD.bt {border-width:
 1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="tl"><A HREF="http://emma.sourceforge.net/">EMMA</A> Coverage Report (generated Sat Dec 13 13:01:03 GMT 2008)</TH></TR><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR PACKAGE [<SPAN CLASS="in">org.apache.james.mpt</SPAN>]</H2><TABLE WIDTH="100%" CELLSPACING="0"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>org.apache.james.mpt</TD><TD CLASS="h">59%  (10/17)</TD><TD CLASS="h">32%  (33/103)</TD><TD CLASS="h">30%  (613/2036)</TD><TD CLASS="h">35%  (159.3/455)</TD></TR></TABLE><H3>COVERAGE BREAKDOWN BY SOURCE FILE</H3><TABLE WIDTH="100%" CELLSPACING="0"
 ><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR CLASS="o"><TD><A HREF="1.html">AbstractProtocolTestFramework.java</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/43)</TD><TD CLASS="h">0%   (0/16)</TD></TR><TR><TD><A HREF="2.html">AbstractSimpleScriptedTestProtocol.java</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/74)</TD><TD CLASS="h">0%   (0/17)</TD></TR><TR CLASS="o"><TD><A HREF="3.html">InvalidServerResponseException.java</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/4)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR><TD><A HREF="4.html">SystemLoggingMonitor.java</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/7)</TD><TD CLASS="h">0%   (0/38)</
 TD><TD CLASS="h">0%   (0/17)</TD></TR><TR CLASS="o"><TD><A HREF="5.html">ProtocolSession.java</A></TD><TD CLASS="h">40%  (2/5)</TD><TD CLASS="h">18%  (7/40)</TD><TD CLASS="h">13%  (105/783)</TD><TD CLASS="h">18%  (29.5/161)</TD></TR><TR><TD><A HREF="6.html">ExternalSession.java</A></TD><TD>100% (1/1)</TD><TD CLASS="h">60%  (6/10)</TD><TD CLASS="h">34%  (108/314)</TD><TD CLASS="h">40%  (27/68)</TD></TR><TR CLASS="o"><TD><A HREF="7.html">ProtocolSessionBuilder.java</A></TD><TD>100% (1/1)</TD><TD CLASS="h">56%  (5/9)</TD><TD CLASS="h">45%  (156/347)</TD><TD CLASS="h">50%  (44.6/89)</TD></TR><TR><TD><A HREF="8.html">ExternalHostSystem.java</A></TD><TD>100% (1/1)</TD><TD>100% (2/2)</TD><TD CLASS="h">51%  (19/37)</TD><TD>86%  (6/7)</TD></TR><TR CLASS="o"><TD><A HREF="9.html">ScriptedUserAdder.java</A></TD><TD>100% (1/1)</TD><TD CLASS="h">57%  (4/7)</TD><TD CLASS="h">55%  (73
 /133)</TD><TD CLASS="h">73%  (19/26)</TD></TR><TR><TD><A HREF="a.html">Runner.java</A></TD><TD>100% (2/2)</TD><TD CLASS="h">44%  (4/9)</TD><TD CLASS="h">56%  (93/166)</TD><TD CLASS="h">61%  (20.2/33)</TD></TR><TR CLASS="o"><TD><A HREF="b.html">ExternalSessionFactory.java</A></TD><TD>100% (1/1)</TD><TD CLASS="h">50%  (2/4)</TD><TD CLASS="h">59%  (54/91)</TD><TD CLASS="h">67%  (10/15)</TD></TR><TR><TD><A HREF="c.html">NullMonitor.java</A></TD><TD>100% (1/1)</TD><TD>75%  (3/4)</TD><TD>83%  (5/6)</TD><TD CLASS="h">75%  (3/4)</TD></TR></TABLE><P></P><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://sourceforge.net/projects/emma">EMMA 2.0.5312</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>
\ No newline at end of file

Modified: james/site/trunk/www/mpt/main/emma/_files/1.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/main/emma/_files/1.html?rev=726198&r1=726197&r2=726198&view=diff
==============================================================================
--- james/site/trunk/www/mpt/main/emma/_files/1.html (original)
+++ james/site/trunk/www/mpt/main/emma/_files/1.html Sat Dec 13 05:16:44 2008
@@ -1 +1 @@
-<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft 
 A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;}  TD.bt {border-width:
 1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="tl"><A HREF="http://emma.sourceforge.net/">EMMA</A> Coverage Report (generated Tue Dec 02 19:48:30 GMT 2008)</TH></TR><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>][<A HREF="0.html">org.apache.james.mpt</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">AbstractProtocolTestFramework.java</SPAN>]</H2><TABLE WIDTH="100%" CELLSPACING="0"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>AbstractProtocolTestFramework.java</TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/43)</TD><TD CLASS="h">0%   (0/16)</TD></TR></TABLE><H3>COVERAGE�
 � BREAKDOWN BY CLASS AND METHOD</H3><TABLE CLASS="cn" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">AbstractProtocolTestFramework</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/43)</TD><TD CLASS="h">0%   (0/16)</TD></TR><TR><TD CLASS="f"><A HREF="#0">AbstractProtocolTestFramework (HostSystem, String, String): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/17)</TD><TD CLASS="h">0%   (0/6)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#2">continueAfterFailure (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0% Â�
 � (0/4)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR><TD CLASS="f"><A HREF="#3">runSessions (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/6)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#4">setUp (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/3)</TD></TR><TR><TD CLASS="f"><A HREF="#5">setUpEnvironment (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/11)</TD><TD CLASS="h">0%   (0/3)</TD></TR></TABLE><P></P><TABLE CLASS="s" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="l">1</TD><TD>/****************************************************************</TD></TR><TR><TD CLASS="l">2</TD><TD> * Licensed to the Apache Software Foundation (ASF) under one   *</TD></TR><TR><TD CLASS="l">3</
 TD><TD> * or more contributor license agreements.  See the NOTICE file *</TD></TR><TR><TD CLASS="l">4</TD><TD> * distributed with this work for additional information        *</TD></TR><TR><TD CLASS="l">5</TD><TD> * regarding copyright ownership.  The ASF licenses this file   *</TD></TR><TR><TD CLASS="l">6</TD><TD> * to you under the Apache License, Version 2.0 (the            *</TD></TR><TR><TD CLASS="l">7</TD><TD> * &#34;License&#34;); you may not use this file except in compliance   *</TD></TR><TR><TD CLASS="l">8</TD><TD> * with the License.  You may obtain a copy of the License at   *</TD></TR><TR><TD CLASS="l">9</TD><TD> *                 �
 � Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â *</TD></TR><TR><TD CLASS="l">10</TD><TD> *   http://www.apache.org/licenses/LICENSE-2.0                 *</TD></TR><TR><TD CLASS="l">11</TD><TD> *                                                              *</TD></TR><TR><TD CLASS="l">12</TD><TD> * Unless required by applicable law or agreed to in writing,   *</TD></TR><TR><TD CLASS="l">13</TD><TD> * software distributed under the License is distributed on an  *</TD></TR><TR><TD CLASS="l">14</TD><TD> * &#34;AS IS&#
 34; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</TD></TR><TR><TD CLASS="l">15</TD><TD> * KIND, either express or implied.  See the License for the    *</TD></TR><TR><TD CLASS="l">16</TD><TD> * specific language governing permissions and limitations      *</TD></TR><TR><TD CLASS="l">17</TD><TD> * under the License.                                           *</TD></TR><TR><TD CLASS="l">18</TD><TD> ****************************************************************/</TD></TR><TR><TD CLASS="l">19</TD><TD> </TD></TR><TR><TD CLASS="l">20</TD><TD>package org.apache.james.mpt;</TD></TR><TR><TD CLASS="l">21</TD><TD> </TD></TR><TR><TD CLASS="l">22</TD><TD>import junit.framework.TestCase;</TD></TR>
 <TR><TD CLASS="l">23</TD><TD> </TD></TR><TR><TD CLASS="l">24</TD><TD>/**</TD></TR><TR><TD CLASS="l">25</TD><TD> * Abstract Protocol Test is the root of all of the James Imap Server test</TD></TR><TR><TD CLASS="l">26</TD><TD> * cases. It provides basic functionality for running a protocol session as a</TD></TR><TR><TD CLASS="l">27</TD><TD> * JUnit test, and failing if exceptions are thrown. To create a test which</TD></TR><TR><TD CLASS="l">28</TD><TD> * reads the entire protocol session from a single protocol definition file, use</TD></TR><TR><TD CLASS="l">29</TD><TD> * the {@link AbstractSimpleScriptedTestProtocol}.</TD></TR><TR><TD CLASS="l">30</TD><TD> * </TD></TR><TR><TD CLASS="l">31</TD><TD> * @author Darrell DeBoer</TD></TR><TR><TD CLASS="l">32</TD><TD> * @author And
 rew C. Oliver</TD></TR><TR><TD CLASS="l">33</TD><TD> */</TD></TR><TR><TD CLASS="l">34</TD><TD>public abstract class AbstractProtocolTestFramework extends TestCase {</TD></TR><TR><TD CLASS="l">35</TD><TD> </TD></TR><TR><TD CLASS="l">36</TD><TD>    protected final Runner runner;</TD></TR><TR><TD CLASS="l">37</TD><TD>    private final HostSystem hostSystem;</TD></TR><TR><TD CLASS="l"><A NAME="0">38</A></TD><TD>    </TD></TR><TR><TD CLASS="l">39</TD><TD>    private final String userName;</TD></TR><TR><TD CLASS="l">40</TD><TD>    private final String password;</TD></TR><TR><TD CLASS="l">41</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">42</TD><TD>    public AbstractProtocolTestFramework(HostSystem hostSystem, String userName, String password) {</TD></TR><TR CLASS="z"><TD CLASS="l">43</TD><TD>       �
 � this.hostSystem = hostSystem;</TD></TR><TR CLASS="z"><TD CLASS="l">44</TD><TD>        this.userName = userName;</TD></TR><TR CLASS="z"><TD CLASS="l">45</TD><TD>        this.password = password;</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="4">46</A></TD><TD>        runner = new Runner();</TD></TR><TR CLASS="z"><TD CLASS="l">47</TD><TD>    }</TD></TR><TR><TD CLASS="l">48</TD><TD> </TD></TR><TR><TD CLASS="l">49</TD><TD>    protected void setUp() throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">50</TD><TD>        super.setUp();</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="2">51</A></TD><TD>        setUpEnvironment();</TD></TR><TR CLASS="z"><TD CLASS="l">52</TD><TD>    }</TD></TR><TR><TD CLASS="l">53</TD><TD> </TD></TR><TR><TD CLASS="l">54</TD><TD>    prot
 ected void continueAfterFailure() {</TD></TR><TR CLASS="z"><TD CLASS="l">55</TD><TD>        runner.continueAfterFailure();</TD></TR><TR CLASS="z"><TD CLASS="l">56</TD><TD>    }</TD></TR><TR><TD CLASS="l">57</TD><TD> </TD></TR><TR><TD CLASS="l">58</TD><TD>    /**</TD></TR><TR><TD CLASS="l">59</TD><TD>     * Runs the pre,test and post protocol sessions against a local copy of the</TD></TR><TR><TD CLASS="l">60</TD><TD>     * ImapServer. This does not require that James be running, and is useful</TD></TR><TR><TD CLASS="l">61</TD><TD>     * for rapid development and debugging.</TD></TR><TR><TD CLASS="l">62</TD><TD>     * </TD></TR><TR><TD CLASS="l">63</TD><TD>     * Instead of sending requests to a socket connected to a run
 ning instance</TD></TR><TR><TD CLASS="l">64</TD><TD>     * of James, this method uses the {@link MockImapServer} to simplify</TD></TR><TR><TD CLASS="l">65</TD><TD>     * testing. One mock instance is required per protocol session/connection.</TD></TR><TR><TD CLASS="l"><A NAME="3">66</A></TD><TD>     * These share the same underlying Mailboxes, because of the way</TD></TR><TR><TD CLASS="l">67</TD><TD>     * {@link MockImapServer#getImapSession()} works.</TD></TR><TR><TD CLASS="l">68</TD><TD>     */</TD></TR><TR><TD CLASS="l">69</TD><TD>    protected void runSessions() throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">70</TD><TD>        runner.runSessions(hostSystem);</TD></TR><TR CLASS="z"><TD CLASS="l">71</TD><TD>    }</TD></TR><TR><TD 
 CLASS="l">72</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="5">73</A></TD><TD>    /**</TD></TR><TR><TD CLASS="l">74</TD><TD>     * Initialises the UsersRepository and ImapHost on first call.</TD></TR><TR><TD CLASS="l">75</TD><TD>     */</TD></TR><TR><TD CLASS="l">76</TD><TD>    private void setUpEnvironment() throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">77</TD><TD>        hostSystem.reset();</TD></TR><TR CLASS="z"><TD CLASS="l">78</TD><TD>        hostSystem.addUser(userName, password);</TD></TR><TR CLASS="z"><TD CLASS="l">79</TD><TD>    }</TD></TR><TR><TD CLASS="l">80</TD><TD>}</TD></TR></TABLE><P></P><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>][<A HREF="0.html">org.apache.james.mpt</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://sourceforge
 .net/projects/emma">EMMA 2.0.5312</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>
\ No newline at end of file
+<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft 
 A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;}  TD.bt {border-width:
 1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="tl"><A HREF="http://emma.sourceforge.net/">EMMA</A> Coverage Report (generated Sat Dec 13 13:01:03 GMT 2008)</TH></TR><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>][<A HREF="0.html">org.apache.james.mpt</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">AbstractProtocolTestFramework.java</SPAN>]</H2><TABLE WIDTH="100%" CELLSPACING="0"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>AbstractProtocolTestFramework.java</TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/43)</TD><TD CLASS="h">0%   (0/16)</TD></TR></TABLE><H3>COVERAGE�
 � BREAKDOWN BY CLASS AND METHOD</H3><TABLE CLASS="cn" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">AbstractProtocolTestFramework</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/43)</TD><TD CLASS="h">0%   (0/16)</TD></TR><TR><TD CLASS="f"><A HREF="#0">AbstractProtocolTestFramework (HostSystem, String, String): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/17)</TD><TD CLASS="h">0%   (0/6)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#2">continueAfterFailure (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0% Â�
 � (0/4)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR><TD CLASS="f"><A HREF="#3">runSessions (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/6)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#4">setUp (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/3)</TD></TR><TR><TD CLASS="f"><A HREF="#5">setUpEnvironment (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/11)</TD><TD CLASS="h">0%   (0/3)</TD></TR></TABLE><P></P><TABLE CLASS="s" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="l">1</TD><TD>/****************************************************************</TD></TR><TR><TD CLASS="l">2</TD><TD> * Licensed to the Apache Software Foundation (ASF) under one   *</TD></TR><TR><TD CLASS="l">3</
 TD><TD> * or more contributor license agreements.  See the NOTICE file *</TD></TR><TR><TD CLASS="l">4</TD><TD> * distributed with this work for additional information        *</TD></TR><TR><TD CLASS="l">5</TD><TD> * regarding copyright ownership.  The ASF licenses this file   *</TD></TR><TR><TD CLASS="l">6</TD><TD> * to you under the Apache License, Version 2.0 (the            *</TD></TR><TR><TD CLASS="l">7</TD><TD> * &#34;License&#34;); you may not use this file except in compliance   *</TD></TR><TR><TD CLASS="l">8</TD><TD> * with the License.  You may obtain a copy of the License at   *</TD></TR><TR><TD CLASS="l">9</TD><TD> *                 �
 � Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â *</TD></TR><TR><TD CLASS="l">10</TD><TD> *   http://www.apache.org/licenses/LICENSE-2.0                 *</TD></TR><TR><TD CLASS="l">11</TD><TD> *                                                              *</TD></TR><TR><TD CLASS="l">12</TD><TD> * Unless required by applicable law or agreed to in writing,   *</TD></TR><TR><TD CLASS="l">13</TD><TD> * software distributed under the License is distributed on an  *</TD></TR><TR><TD CLASS="l">14</TD><TD> * &#34;AS IS&#
 34; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</TD></TR><TR><TD CLASS="l">15</TD><TD> * KIND, either express or implied.  See the License for the    *</TD></TR><TR><TD CLASS="l">16</TD><TD> * specific language governing permissions and limitations      *</TD></TR><TR><TD CLASS="l">17</TD><TD> * under the License.                                           *</TD></TR><TR><TD CLASS="l">18</TD><TD> ****************************************************************/</TD></TR><TR><TD CLASS="l">19</TD><TD> </TD></TR><TR><TD CLASS="l">20</TD><TD>package org.apache.james.mpt;</TD></TR><TR><TD CLASS="l">21</TD><TD> </TD></TR><TR><TD CLASS="l">22</TD><TD>import junit.framework.TestCase;</TD></TR>
 <TR><TD CLASS="l">23</TD><TD> </TD></TR><TR><TD CLASS="l">24</TD><TD>/**</TD></TR><TR><TD CLASS="l">25</TD><TD> * Abstract Protocol Test is the root of all of the James Imap Server test</TD></TR><TR><TD CLASS="l">26</TD><TD> * cases. It provides basic functionality for running a protocol session as a</TD></TR><TR><TD CLASS="l">27</TD><TD> * JUnit test, and failing if exceptions are thrown. To create a test which</TD></TR><TR><TD CLASS="l">28</TD><TD> * reads the entire protocol session from a single protocol definition file, use</TD></TR><TR><TD CLASS="l">29</TD><TD> * the {@link AbstractSimpleScriptedTestProtocol}.</TD></TR><TR><TD CLASS="l">30</TD><TD> * </TD></TR><TR><TD CLASS="l">31</TD><TD> * @author Darrell DeBoer</TD></TR><TR><TD CLASS="l">32</TD><TD> * @author And
 rew C. Oliver</TD></TR><TR><TD CLASS="l">33</TD><TD> */</TD></TR><TR><TD CLASS="l">34</TD><TD>public abstract class AbstractProtocolTestFramework extends TestCase {</TD></TR><TR><TD CLASS="l">35</TD><TD> </TD></TR><TR><TD CLASS="l">36</TD><TD>    protected final Runner runner;</TD></TR><TR><TD CLASS="l">37</TD><TD>    private final HostSystem hostSystem;</TD></TR><TR><TD CLASS="l"><A NAME="0">38</A></TD><TD>    </TD></TR><TR><TD CLASS="l">39</TD><TD>    private final String userName;</TD></TR><TR><TD CLASS="l">40</TD><TD>    private final String password;</TD></TR><TR><TD CLASS="l">41</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">42</TD><TD>    public AbstractProtocolTestFramework(HostSystem hostSystem, String userName, String password) {</TD></TR><TR CLASS="z"><TD CLASS="l">43</TD><TD>       �
 � this.hostSystem = hostSystem;</TD></TR><TR CLASS="z"><TD CLASS="l">44</TD><TD>        this.userName = userName;</TD></TR><TR CLASS="z"><TD CLASS="l">45</TD><TD>        this.password = password;</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="4">46</A></TD><TD>        runner = new Runner();</TD></TR><TR CLASS="z"><TD CLASS="l">47</TD><TD>    }</TD></TR><TR><TD CLASS="l">48</TD><TD> </TD></TR><TR><TD CLASS="l">49</TD><TD>    protected void setUp() throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">50</TD><TD>        super.setUp();</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="2">51</A></TD><TD>        setUpEnvironment();</TD></TR><TR CLASS="z"><TD CLASS="l">52</TD><TD>    }</TD></TR><TR><TD CLASS="l">53</TD><TD> </TD></TR><TR><TD CLASS="l">54</TD><TD>    prot
 ected void continueAfterFailure() {</TD></TR><TR CLASS="z"><TD CLASS="l">55</TD><TD>        runner.continueAfterFailure();</TD></TR><TR CLASS="z"><TD CLASS="l">56</TD><TD>    }</TD></TR><TR><TD CLASS="l">57</TD><TD> </TD></TR><TR><TD CLASS="l">58</TD><TD>    /**</TD></TR><TR><TD CLASS="l">59</TD><TD>     * Runs the pre,test and post protocol sessions against a local copy of the</TD></TR><TR><TD CLASS="l">60</TD><TD>     * ImapServer. This does not require that James be running, and is useful</TD></TR><TR><TD CLASS="l">61</TD><TD>     * for rapid development and debugging.</TD></TR><TR><TD CLASS="l">62</TD><TD>     * </TD></TR><TR><TD CLASS="l">63</TD><TD>     * Instead of sending requests to a socket connected to a run
 ning instance</TD></TR><TR><TD CLASS="l">64</TD><TD>     * of James, this method uses the {@link MockImapServer} to simplify</TD></TR><TR><TD CLASS="l">65</TD><TD>     * testing. One mock instance is required per protocol session/connection.</TD></TR><TR><TD CLASS="l"><A NAME="3">66</A></TD><TD>     * These share the same underlying Mailboxes, because of the way</TD></TR><TR><TD CLASS="l">67</TD><TD>     * {@link MockImapServer#getImapSession()} works.</TD></TR><TR><TD CLASS="l">68</TD><TD>     */</TD></TR><TR><TD CLASS="l">69</TD><TD>    protected void runSessions() throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">70</TD><TD>        runner.runSessions(hostSystem);</TD></TR><TR CLASS="z"><TD CLASS="l">71</TD><TD>    }</TD></TR><TR><TD 
 CLASS="l">72</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="5">73</A></TD><TD>    /**</TD></TR><TR><TD CLASS="l">74</TD><TD>     * Initialises the UsersRepository and ImapHost on first call.</TD></TR><TR><TD CLASS="l">75</TD><TD>     */</TD></TR><TR><TD CLASS="l">76</TD><TD>    private void setUpEnvironment() throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">77</TD><TD>        hostSystem.reset();</TD></TR><TR CLASS="z"><TD CLASS="l">78</TD><TD>        hostSystem.addUser(userName, password);</TD></TR><TR CLASS="z"><TD CLASS="l">79</TD><TD>    }</TD></TR><TR><TD CLASS="l">80</TD><TD>}</TD></TR></TABLE><P></P><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>][<A HREF="0.html">org.apache.james.mpt</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://sourceforge
 .net/projects/emma">EMMA 2.0.5312</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>
\ No newline at end of file

Modified: james/site/trunk/www/mpt/main/emma/_files/2.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/main/emma/_files/2.html?rev=726198&r1=726197&r2=726198&view=diff
==============================================================================
--- james/site/trunk/www/mpt/main/emma/_files/2.html (original)
+++ james/site/trunk/www/mpt/main/emma/_files/2.html Sat Dec 13 05:16:44 2008
@@ -1 +1 @@
-<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft 
 A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;}  TD.bt {border-width:
 1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="tl"><A HREF="http://emma.sourceforge.net/">EMMA</A> Coverage Report (generated Tue Dec 02 19:48:30 GMT 2008)</TH></TR><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>][<A HREF="0.html">org.apache.james.mpt</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">AbstractSimpleScriptedTestProtocol.java</SPAN>]</H2><TABLE WIDTH="100%" CELLSPACING="0"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>AbstractSimpleScriptedTestProtocol.java</TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/74)</TD><TD CLASS="h">0%   (0/17)</TD></TR></TABLE><H3
 >COVERAGE BREAKDOWN BY CLASS AND METHOD</H3><TABLE CLASS="cn" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">AbstractSimpleScriptedTestProtocol</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/74)</TD><TD CLASS="h">0%   (0/17)</TD></TR><TR><TD CLASS="f"><A HREF="#0">&lt;static initializer&gt;</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/3)</TD><TD CLASS="h">0%   (0/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#2">AbstractSimpleScriptedTestProtocol (HostSystem, String, String): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS=
 "h">0%   (0/11)</TD><TD CLASS="h">0%   (0/3)</TD></TR><TR><TD CLASS="f"><A HREF="#3">addTestFile (String, ProtocolInteractor): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/37)</TD><TD CLASS="h">0%   (0/6)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#4">scriptTest (String, Locale): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/18)</TD><TD CLASS="h">0%   (0/4)</TD></TR><TR><TD CLASS="f"><A HREF="#5">tearDown (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/3)</TD></TR></TABLE><P></P><TABLE CLASS="s" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="l">1</TD><TD>/****************************************************************</TD></TR><TR><TD CLASS="l">2</TD><TD> * Licensed to the Apache Software Foundation (ASF)Â
  under one   *</TD></TR><TR><TD CLASS="l">3</TD><TD> * or more contributor license agreements.  See the NOTICE file *</TD></TR><TR><TD CLASS="l">4</TD><TD> * distributed with this work for additional information        *</TD></TR><TR><TD CLASS="l">5</TD><TD> * regarding copyright ownership.  The ASF licenses this file   *</TD></TR><TR><TD CLASS="l">6</TD><TD> * to you under the Apache License, Version 2.0 (the            *</TD></TR><TR><TD CLASS="l">7</TD><TD> * &#34;License&#34;); you may not use this file except in compliance   *</TD></TR><TR><TD CLASS="l">8</TD><TD> * with the License.  You may obtain a copy of the License at   *</TD></TR><TR><TD CLASS="l">9</TD><TD> *  Â�
 �                                                           *</TD></TR><TR><TD CLASS="l">10</TD><TD> *   http://www.apache.org/licenses/LICENSE-2.0                 *</TD></TR><TR><TD CLASS="l">11</TD><TD> *                                                              *</TD></TR><TR><TD CLASS="l">12</TD><TD> * Unless required by applicable law or agreed to in writing,   *</TD></TR><TR><TD CLASS="l">13</TD><TD> * software distributed under the License is distributed on an  *</TD>
 </TR><TR><TD CLASS="l">14</TD><TD> * &#34;AS IS&#34; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</TD></TR><TR><TD CLASS="l">15</TD><TD> * KIND, either express or implied.  See the License for the    *</TD></TR><TR><TD CLASS="l">16</TD><TD> * specific language governing permissions and limitations      *</TD></TR><TR><TD CLASS="l">17</TD><TD> * under the License.                                           *</TD></TR><TR><TD CLASS="l">18</TD><TD> ****************************************************************/</TD></TR><TR><TD CLASS="l">19</TD><TD> </TD></TR><TR><TD CLASS="l">20</TD><TD>package org.apache.james.mpt;</TD></TR><TR><TD CLASS="l">21</TD><TD> </TD></TR><TR><TD CLASS="l
 ">22</TD><TD>import java.io.InputStream;</TD></TR><TR><TD CLASS="l">23</TD><TD>import java.util.Locale;</TD></TR><TR><TD CLASS="l">24</TD><TD> </TD></TR><TR><TD CLASS="l">25</TD><TD> </TD></TR><TR><TD CLASS="l">26</TD><TD>/**</TD></TR><TR><TD CLASS="l">27</TD><TD> * A Protocol test which reads the test protocol session from a file. The file</TD></TR><TR><TD CLASS="l">28</TD><TD> * read is taken as &#34;&lt;test-name&gt;.test&#34;, where &lt;test-name&gt; is the value passed</TD></TR><TR><TD CLASS="l">29</TD><TD> * into the constructor. Subclasses of this test can set up {@link #preElements}</TD></TR><TR><TD CLASS="l">30</TD><TD> * and {@link #postElements} for extra elements not defined in the protocol</TD></TR><TR><TD CLASS="l">31</TD><TD> * session file.</TD></TR><TR><TD CLASS="l">32</TD><TD> */<
 /TD></TR><TR><TD CLASS="l"><A NAME="0">33</A></TD><TD>public abstract class AbstractSimpleScriptedTestProtocol extends</TD></TR><TR><TD CLASS="l">34</TD><TD>        AbstractProtocolTestFramework {</TD></TR><TR CLASS="z"><TD CLASS="l">35</TD><TD>    private ProtocolSessionBuilder builder = new ProtocolSessionBuilder();</TD></TR><TR><TD CLASS="l">36</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">37</TD><TD>    private static final Locale BASE_DEFAULT_LOCALE = Locale.getDefault();</TD></TR><TR><TD CLASS="l">38</TD><TD> </TD></TR><TR><TD CLASS="l">39</TD><TD>    /**</TD></TR><TR><TD CLASS="l">40</TD><TD>     * Sets up a SimpleFileProtocolTest which reads the protocol session from a</TD></TR><TR><TD CLASS="l">41</TD><TD>     * file of name &#34;&lt;fileName&gt;.test&#34;. This file sho
 uld be available in the</TD></TR><TR><TD CLASS="l">42</TD><TD>     * classloader in the same location as this test class.</TD></TR><TR><TD CLASS="l">43</TD><TD>     * </TD></TR><TR><TD CLASS="l"><A NAME="2">44</A></TD><TD>     * @param fileName</TD></TR><TR><TD CLASS="l">45</TD><TD>     *            The name of the file to read protocol elements from.</TD></TR><TR><TD CLASS="l">46</TD><TD>     */</TD></TR><TR><TD CLASS="l">47</TD><TD>    public AbstractSimpleScriptedTestProtocol(HostSystem hostSystem, String userName, String password) {</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="5">48</A></TD><TD>        super(hostSystem, userName, password);</TD></TR><TR CLASS="z"><TD CLASS="l">49</TD><TD>    }</TD></TR><TR><TD CLA
 SS="l">50</TD><TD> </TD></TR><TR><TD CLASS="l">51</TD><TD>    protected void tearDown() throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">52</TD><TD>        Locale.setDefault(BASE_DEFAULT_LOCALE);</TD></TR><TR CLASS="z"><TD CLASS="l">53</TD><TD>        super.tearDown();</TD></TR><TR CLASS="z"><TD CLASS="l">54</TD><TD>    }</TD></TR><TR><TD CLASS="l">55</TD><TD> </TD></TR><TR><TD CLASS="l">56</TD><TD>    /**</TD></TR><TR><TD CLASS="l">57</TD><TD>     * Reads test elements from the protocol session file and adds them to the</TD></TR><TR><TD CLASS="l">58</TD><TD>     * {@link #testElements} ProtocolSession. Then calls {@link #runSessions}.</TD></TR><TR><TD CLASS="l"><A NAME="4">59</A></TD><TD>     * </TD></TR><TR><TD CLASS="l">60</TD><TD>     * 
 @param locale test under this default locale, not null</TD></TR><TR><TD CLASS="l">61</TD><TD>     */</TD></TR><TR><TD CLASS="l">62</TD><TD>    protected void scriptTest(String fileName, Locale locale) throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">63</TD><TD>        Locale.setDefault(locale);</TD></TR><TR CLASS="z"><TD CLASS="l">64</TD><TD>        addTestFile(fileName + &#34;.test&#34;, runner.getTestElements());</TD></TR><TR CLASS="z"><TD CLASS="l">65</TD><TD>        runSessions();</TD></TR><TR CLASS="z"><TD CLASS="l">66</TD><TD>    }</TD></TR><TR><TD CLASS="l">67</TD><TD> </TD></TR><TR><TD CLASS="l">68</TD><TD>    /**</TD></TR><TR><TD CLASS="l">69</TD><TD>     * Finds the protocol session file identified by the test name, and builds</
 TD></TR><TR><TD CLASS="l">70</TD><TD>     * protocol elements from it. All elements from the definition file are</TD></TR><TR><TD CLASS="l">71</TD><TD>     * added to the supplied ProtocolSession.</TD></TR><TR><TD CLASS="l">72</TD><TD>     * </TD></TR><TR><TD CLASS="l">73</TD><TD>     * @param fileName</TD></TR><TR><TD CLASS="l">74</TD><TD>     *            The name of the file to read</TD></TR><TR><TD CLASS="l">75</TD><TD>     * @param session</TD></TR><TR><TD CLASS="l"><A NAME="3">76</A></TD><TD>     *            The ProtocolSession to add elements to.</TD></TR><TR><TD CLASS="l">77</TD><TD>     */</TD></TR><TR><TD CLASS="l">78</TD><TD>    protected void addTestFile(String�
 � fileName, ProtocolInteractor session)</TD></TR><TR><TD CLASS="l">79</TD><TD>            throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">80</TD><TD>        fileName = &#34;/org/apache/james/test/functional/imap/scripts/&#34; + fileName;</TD></TR><TR><TD CLASS="l">81</TD><TD>        // Need to find local resource.</TD></TR><TR CLASS="z"><TD CLASS="l">82</TD><TD>        InputStream is = this.getClass().getResourceAsStream(fileName);</TD></TR><TR CLASS="z"><TD CLASS="l">83</TD><TD>        if (is == null) {</TD></TR><TR CLASS="z"><TD CLASS="l">84</TD><TD>            throw new Exception(&#34;Test Resource '&#34; + fileName + &#34;' not found.&#34;);</TD></TR><TR><TD CLASS="l">85</TD><TD>       Â
  }</TD></TR><TR><TD CLASS="l">86</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">87</TD><TD>        builder.addProtocolLines(fileName, is, session);</TD></TR><TR CLASS="z"><TD CLASS="l">88</TD><TD>    }</TD></TR><TR><TD CLASS="l">89</TD><TD>}</TD></TR></TABLE><P></P><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>][<A HREF="0.html">org.apache.james.mpt</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://sourceforge.net/projects/emma">EMMA 2.0.5312</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>
\ No newline at end of file
+<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft 
 A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;}  TD.bt {border-width:
 1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="tl"><A HREF="http://emma.sourceforge.net/">EMMA</A> Coverage Report (generated Sat Dec 13 13:01:03 GMT 2008)</TH></TR><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>][<A HREF="0.html">org.apache.james.mpt</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">AbstractSimpleScriptedTestProtocol.java</SPAN>]</H2><TABLE WIDTH="100%" CELLSPACING="0"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>AbstractSimpleScriptedTestProtocol.java</TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/74)</TD><TD CLASS="h">0%   (0/17)</TD></TR></TABLE><H3
 >COVERAGE BREAKDOWN BY CLASS AND METHOD</H3><TABLE CLASS="cn" WIDTH="100%" CELLSPACING="0"><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">AbstractSimpleScriptedTestProtocol</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/74)</TD><TD CLASS="h">0%   (0/17)</TD></TR><TR><TD CLASS="f"><A HREF="#0">&lt;static initializer&gt;</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/3)</TD><TD CLASS="h">0%   (0/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#2">AbstractSimpleScriptedTestProtocol (HostSystem, String, String): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS=
 "h">0%   (0/11)</TD><TD CLASS="h">0%   (0/3)</TD></TR><TR><TD CLASS="f"><A HREF="#3">addTestFile (String, ProtocolInteractor): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/37)</TD><TD CLASS="h">0%   (0/6)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#4">scriptTest (String, Locale): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/18)</TD><TD CLASS="h">0%   (0/4)</TD></TR><TR><TD CLASS="f"><A HREF="#5">tearDown (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/5)</TD><TD CLASS="h">0%   (0/3)</TD></TR></TABLE><P></P><TABLE CLASS="s" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="l">1</TD><TD>/****************************************************************</TD></TR><TR><TD CLASS="l">2</TD><TD> * Licensed to the Apache Software Foundation (ASF)Â
  under one   *</TD></TR><TR><TD CLASS="l">3</TD><TD> * or more contributor license agreements.  See the NOTICE file *</TD></TR><TR><TD CLASS="l">4</TD><TD> * distributed with this work for additional information        *</TD></TR><TR><TD CLASS="l">5</TD><TD> * regarding copyright ownership.  The ASF licenses this file   *</TD></TR><TR><TD CLASS="l">6</TD><TD> * to you under the Apache License, Version 2.0 (the            *</TD></TR><TR><TD CLASS="l">7</TD><TD> * &#34;License&#34;); you may not use this file except in compliance   *</TD></TR><TR><TD CLASS="l">8</TD><TD> * with the License.  You may obtain a copy of the License at   *</TD></TR><TR><TD CLASS="l">9</TD><TD> *  Â�
 �                                                           *</TD></TR><TR><TD CLASS="l">10</TD><TD> *   http://www.apache.org/licenses/LICENSE-2.0                 *</TD></TR><TR><TD CLASS="l">11</TD><TD> *                                                              *</TD></TR><TR><TD CLASS="l">12</TD><TD> * Unless required by applicable law or agreed to in writing,   *</TD></TR><TR><TD CLASS="l">13</TD><TD> * software distributed under the License is distributed on an  *</TD>
 </TR><TR><TD CLASS="l">14</TD><TD> * &#34;AS IS&#34; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</TD></TR><TR><TD CLASS="l">15</TD><TD> * KIND, either express or implied.  See the License for the    *</TD></TR><TR><TD CLASS="l">16</TD><TD> * specific language governing permissions and limitations      *</TD></TR><TR><TD CLASS="l">17</TD><TD> * under the License.                                           *</TD></TR><TR><TD CLASS="l">18</TD><TD> ****************************************************************/</TD></TR><TR><TD CLASS="l">19</TD><TD> </TD></TR><TR><TD CLASS="l">20</TD><TD>package org.apache.james.mpt;</TD></TR><TR><TD CLASS="l">21</TD><TD> </TD></TR><TR><TD CLASS="l
 ">22</TD><TD>import java.io.InputStream;</TD></TR><TR><TD CLASS="l">23</TD><TD>import java.util.Locale;</TD></TR><TR><TD CLASS="l">24</TD><TD> </TD></TR><TR><TD CLASS="l">25</TD><TD> </TD></TR><TR><TD CLASS="l">26</TD><TD>/**</TD></TR><TR><TD CLASS="l">27</TD><TD> * A Protocol test which reads the test protocol session from a file. The file</TD></TR><TR><TD CLASS="l">28</TD><TD> * read is taken as &#34;&lt;test-name&gt;.test&#34;, where &lt;test-name&gt; is the value passed</TD></TR><TR><TD CLASS="l">29</TD><TD> * into the constructor. Subclasses of this test can set up {@link #preElements}</TD></TR><TR><TD CLASS="l">30</TD><TD> * and {@link #postElements} for extra elements not defined in the protocol</TD></TR><TR><TD CLASS="l">31</TD><TD> * session file.</TD></TR><TR><TD CLASS="l">32</TD><TD> */<
 /TD></TR><TR><TD CLASS="l"><A NAME="0">33</A></TD><TD>public abstract class AbstractSimpleScriptedTestProtocol extends</TD></TR><TR><TD CLASS="l">34</TD><TD>        AbstractProtocolTestFramework {</TD></TR><TR CLASS="z"><TD CLASS="l">35</TD><TD>    private ProtocolSessionBuilder builder = new ProtocolSessionBuilder();</TD></TR><TR><TD CLASS="l">36</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">37</TD><TD>    private static final Locale BASE_DEFAULT_LOCALE = Locale.getDefault();</TD></TR><TR><TD CLASS="l">38</TD><TD> </TD></TR><TR><TD CLASS="l">39</TD><TD>    /**</TD></TR><TR><TD CLASS="l">40</TD><TD>     * Sets up a SimpleFileProtocolTest which reads the protocol session from a</TD></TR><TR><TD CLASS="l">41</TD><TD>     * file of name &#34;&lt;fileName&gt;.test&#34;. This file sho
 uld be available in the</TD></TR><TR><TD CLASS="l">42</TD><TD>     * classloader in the same location as this test class.</TD></TR><TR><TD CLASS="l">43</TD><TD>     * </TD></TR><TR><TD CLASS="l"><A NAME="2">44</A></TD><TD>     * @param fileName</TD></TR><TR><TD CLASS="l">45</TD><TD>     *            The name of the file to read protocol elements from.</TD></TR><TR><TD CLASS="l">46</TD><TD>     */</TD></TR><TR><TD CLASS="l">47</TD><TD>    public AbstractSimpleScriptedTestProtocol(HostSystem hostSystem, String userName, String password) {</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="5">48</A></TD><TD>        super(hostSystem, userName, password);</TD></TR><TR CLASS="z"><TD CLASS="l">49</TD><TD>    }</TD></TR><TR><TD CLA
 SS="l">50</TD><TD> </TD></TR><TR><TD CLASS="l">51</TD><TD>    protected void tearDown() throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">52</TD><TD>        Locale.setDefault(BASE_DEFAULT_LOCALE);</TD></TR><TR CLASS="z"><TD CLASS="l">53</TD><TD>        super.tearDown();</TD></TR><TR CLASS="z"><TD CLASS="l">54</TD><TD>    }</TD></TR><TR><TD CLASS="l">55</TD><TD> </TD></TR><TR><TD CLASS="l">56</TD><TD>    /**</TD></TR><TR><TD CLASS="l">57</TD><TD>     * Reads test elements from the protocol session file and adds them to the</TD></TR><TR><TD CLASS="l">58</TD><TD>     * {@link #testElements} ProtocolSession. Then calls {@link #runSessions}.</TD></TR><TR><TD CLASS="l"><A NAME="4">59</A></TD><TD>     * </TD></TR><TR><TD CLASS="l">60</TD><TD>     * 
 @param locale test under this default locale, not null</TD></TR><TR><TD CLASS="l">61</TD><TD>     */</TD></TR><TR><TD CLASS="l">62</TD><TD>    protected void scriptTest(String fileName, Locale locale) throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">63</TD><TD>        Locale.setDefault(locale);</TD></TR><TR CLASS="z"><TD CLASS="l">64</TD><TD>        addTestFile(fileName + &#34;.test&#34;, runner.getTestElements());</TD></TR><TR CLASS="z"><TD CLASS="l">65</TD><TD>        runSessions();</TD></TR><TR CLASS="z"><TD CLASS="l">66</TD><TD>    }</TD></TR><TR><TD CLASS="l">67</TD><TD> </TD></TR><TR><TD CLASS="l">68</TD><TD>    /**</TD></TR><TR><TD CLASS="l">69</TD><TD>     * Finds the protocol session file identified by the test name, and builds</
 TD></TR><TR><TD CLASS="l">70</TD><TD>     * protocol elements from it. All elements from the definition file are</TD></TR><TR><TD CLASS="l">71</TD><TD>     * added to the supplied ProtocolSession.</TD></TR><TR><TD CLASS="l">72</TD><TD>     * </TD></TR><TR><TD CLASS="l">73</TD><TD>     * @param fileName</TD></TR><TR><TD CLASS="l">74</TD><TD>     *            The name of the file to read</TD></TR><TR><TD CLASS="l">75</TD><TD>     * @param session</TD></TR><TR><TD CLASS="l"><A NAME="3">76</A></TD><TD>     *            The ProtocolSession to add elements to.</TD></TR><TR><TD CLASS="l">77</TD><TD>     */</TD></TR><TR><TD CLASS="l">78</TD><TD>    protected void addTestFile(String�
 � fileName, ProtocolInteractor session)</TD></TR><TR><TD CLASS="l">79</TD><TD>            throws Exception {</TD></TR><TR CLASS="z"><TD CLASS="l">80</TD><TD>        fileName = &#34;/org/apache/james/test/functional/imap/scripts/&#34; + fileName;</TD></TR><TR><TD CLASS="l">81</TD><TD>        // Need to find local resource.</TD></TR><TR CLASS="z"><TD CLASS="l">82</TD><TD>        InputStream is = this.getClass().getResourceAsStream(fileName);</TD></TR><TR CLASS="z"><TD CLASS="l">83</TD><TD>        if (is == null) {</TD></TR><TR CLASS="z"><TD CLASS="l">84</TD><TD>            throw new Exception(&#34;Test Resource '&#34; + fileName + &#34;' not found.&#34;);</TD></TR><TR><TD CLASS="l">85</TD><TD>       Â
  }</TD></TR><TR><TD CLASS="l">86</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">87</TD><TD>        builder.addProtocolLines(fileName, is, session);</TD></TR><TR CLASS="z"><TD CLASS="l">88</TD><TD>    }</TD></TR><TR><TD CLASS="l">89</TD><TD>}</TD></TR></TABLE><P></P><TABLE CLASS="hdft" WIDTH="100%" CELLSPACING="0"><TR><TD CLASS="nv">[<A HREF="../index.html">all classes</A>][<A HREF="0.html">org.apache.james.mpt</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://sourceforge.net/projects/emma">EMMA 2.0.5312</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>
\ No newline at end of file