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/02 21:06:07 UTC
svn commit: r722598 [32/36] - in /james/site/trunk/www/mpt: ./ antlib/
antlib/css/ antlib/emma/ antlib/emma/_files/ antlib/images/
antlib/xref-test/ antlib/xref-test/org/ antlib/xref-test/org/apache/
antlib/xref-test/org/apache/james/ antlib/xref-test/...
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestDiscardProtocol.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestDiscardProtocol.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestDiscardProtocol.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestDiscardProtocol.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,113 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TestDiscardProtocol xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one *</em>
+<a name="3" href="#3">3</a> <em class="jxr_javadoccomment"> * or more contributor license agreements. See the NOTICE file *</em>
+<a name="4" href="#4">4</a> <em class="jxr_javadoccomment"> * distributed with this work for additional information *</em>
+<a name="5" href="#5">5</a> <em class="jxr_javadoccomment"> * regarding copyright ownership. The ASF licenses this file *</em>
+<a name="6" href="#6">6</a> <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the *</em>
+<a name="7" href="#7">7</a> <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance *</em>
+<a name="8" href="#8">8</a> <em class="jxr_javadoccomment"> * with the License. You may obtain a copy of the License at *</em>
+<a name="9" href="#9">9</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="10" href="#10">10</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a> *</em>
+<a name="11" href="#11">11</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="12" href="#12">12</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, *</em>
+<a name="13" href="#13">13</a> <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an *</em>
+<a name="14" href="#14">14</a> <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em>
+<a name="15" href="#15">15</a> <em class="jxr_javadoccomment"> * KIND, either express or implied. See the License for the *</em>
+<a name="16" href="#16">16</a> <em class="jxr_javadoccomment"> * specific language governing permissions and limitations *</em>
+<a name="17" href="#17">17</a> <em class="jxr_javadoccomment"> * under the License. *</em>
+<a name="18" href="#18">18</a> <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong class="jxr_keyword">package</strong> org.apache.james.mpt;
+<a name="21" href="#21">21</a>
+<a name="22" href="#22">22</a> <strong class="jxr_keyword">import</strong> java.io.IOException;
+<a name="23" href="#23">23</a> <strong class="jxr_keyword">import</strong> java.io.OutputStreamWriter;
+<a name="24" href="#24">24</a> <strong class="jxr_keyword">import</strong> java.io.Writer;
+<a name="25" href="#25">25</a> <strong class="jxr_keyword">import</strong> java.net.Socket;
+<a name="26" href="#26">26</a>
+<a name="27" href="#27">27</a> <strong class="jxr_keyword">import</strong> javax.net.SocketFactory;
+<a name="28" href="#28">28</a>
+<a name="29" href="#29">29</a> <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a name="30" href="#30">30</a>
+<a name="31" href="#31">31</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/james/mpt/TestDiscardProtocol.html">TestDiscardProtocol</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a name="32" href="#32">32</a>
+<a name="33" href="#33">33</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/james/mpt/TestDiscardProtocol.html">InputLater</a> implements Runnable {
+<a name="34" href="#34">34</a> <strong class="jxr_keyword">private</strong> Exception e;
+<a name="35" href="#35">35</a>
+<a name="36" href="#36">36</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> run() {
+<a name="37" href="#37">37</a> <strong class="jxr_keyword">try</strong> {
+<a name="38" href="#38">38</a> Thread.sleep(1000);
+<a name="39" href="#39">39</a> input();
+<a name="40" href="#40">40</a> } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="41" href="#41">41</a> <strong class="jxr_keyword">this</strong>.e = e;
+<a name="42" href="#42">42</a> }
+<a name="43" href="#43">43</a> }
+<a name="44" href="#44">44</a>
+<a name="45" href="#45">45</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> assertExecutedSuccessfully() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="46" href="#46">46</a> <strong class="jxr_keyword">if</strong> (e != <strong class="jxr_keyword">null</strong>) {
+<a name="47" href="#47">47</a> e.printStackTrace();
+<a name="48" href="#48">48</a> <strong class="jxr_keyword">throw</strong> e;
+<a name="49" href="#49">49</a> }
+<a name="50" href="#50">50</a> }
+<a name="51" href="#51">51</a> }
+<a name="52" href="#52">52</a>
+<a name="53" href="#53">53</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String INPUT = <span class="jxr_string">"One, two, three - Testing"</span>;
+<a name="54" href="#54">54</a>
+<a name="55" href="#55">55</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> PORT = 10001;
+<a name="56" href="#56">56</a>
+<a name="57" href="#57">57</a> <strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a> protocol;
+<a name="58" href="#58">58</a> <strong class="jxr_keyword">private</strong> Socket socket;
+<a name="59" href="#59">59</a>
+<a name="60" href="#60">60</a> <strong class="jxr_keyword">private</strong> DiscardProtocol.Record record;
+<a name="61" href="#61">61</a>
+<a name="62" href="#62">62</a> @Override
+<a name="63" href="#63">63</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="64" href="#64">64</a> <strong class="jxr_keyword">super</strong>.setUp();
+<a name="65" href="#65">65</a> protocol = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a>(PORT);
+<a name="66" href="#66">66</a> protocol.start();
+<a name="67" href="#67">67</a> socket = SocketFactory.getDefault().createSocket(<span class="jxr_string">"127.0.0.1"</span>, PORT);
+<a name="68" href="#68">68</a> record = protocol.recordNext();
+<a name="69" href="#69">69</a> }
+<a name="70" href="#70">70</a>
+<a name="71" href="#71">71</a> @Override
+<a name="72" href="#72">72</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> tearDown() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="73" href="#73">73</a> protocol.stop();
+<a name="74" href="#74">74</a> <strong class="jxr_keyword">super</strong>.tearDown();
+<a name="75" href="#75">75</a> }
+<a name="76" href="#76">76</a>
+<a name="77" href="#77">77</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRecord() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="78" href="#78">78</a> assertTrue(socket.isConnected());
+<a name="79" href="#79">79</a> input();
+<a name="80" href="#80">80</a> String output = record.complete();
+<a name="81" href="#81">81</a> assertEquals(INPUT, output);
+<a name="82" href="#82">82</a> }
+<a name="83" href="#83">83</a>
+<a name="84" href="#84">84</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> input() <strong class="jxr_keyword">throws</strong> IOException {
+<a name="85" href="#85">85</a> Writer out = <strong class="jxr_keyword">new</strong> OutputStreamWriter(socket.getOutputStream());
+<a name="86" href="#86">86</a> out.append(INPUT);
+<a name="87" href="#87">87</a> out.close();
+<a name="88" href="#88">88</a> socket.close();
+<a name="89" href="#89">89</a> }
+<a name="90" href="#90">90</a>
+<a name="91" href="#91">91</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testComplete() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="92" href="#92">92</a> <a href="../../../../org/apache/james/mpt/TestDiscardProtocol.html">InputLater</a> inputLater = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/james/mpt/TestDiscardProtocol.html">InputLater</a>();
+<a name="93" href="#93">93</a> Thread thread = <strong class="jxr_keyword">new</strong> Thread(inputLater);
+<a name="94" href="#94">94</a> thread.start();
+<a name="95" href="#95">95</a> String output = record.complete();
+<a name="96" href="#96">96</a> assertEquals(INPUT, output);
+<a name="97" href="#97">97</a> inputLater.assertExecutedSuccessfully();
+<a name="98" href="#98">98</a> }
+<a name="99" href="#99">99</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestExternalHostSystem.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestExternalHostSystem.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestExternalHostSystem.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestExternalHostSystem.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,103 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TestExternalHostSystem xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one *</em>
+<a name="3" href="#3">3</a> <em class="jxr_javadoccomment"> * or more contributor license agreements. See the NOTICE file *</em>
+<a name="4" href="#4">4</a> <em class="jxr_javadoccomment"> * distributed with this work for additional information *</em>
+<a name="5" href="#5">5</a> <em class="jxr_javadoccomment"> * regarding copyright ownership. The ASF licenses this file *</em>
+<a name="6" href="#6">6</a> <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the *</em>
+<a name="7" href="#7">7</a> <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance *</em>
+<a name="8" href="#8">8</a> <em class="jxr_javadoccomment"> * with the License. You may obtain a copy of the License at *</em>
+<a name="9" href="#9">9</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="10" href="#10">10</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a> *</em>
+<a name="11" href="#11">11</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="12" href="#12">12</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, *</em>
+<a name="13" href="#13">13</a> <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an *</em>
+<a name="14" href="#14">14</a> <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em>
+<a name="15" href="#15">15</a> <em class="jxr_javadoccomment"> * KIND, either express or implied. See the License for the *</em>
+<a name="16" href="#16">16</a> <em class="jxr_javadoccomment"> * specific language governing permissions and limitations *</em>
+<a name="17" href="#17">17</a> <em class="jxr_javadoccomment"> * under the License. *</em>
+<a name="18" href="#18">18</a> <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong class="jxr_keyword">package</strong> org.apache.james.mpt;
+<a name="21" href="#21">21</a>
+<a name="22" href="#22">22</a> <strong class="jxr_keyword">import</strong> org.apache.james.mpt.HostSystem.Continuation;
+<a name="23" href="#23">23</a> <strong class="jxr_keyword">import</strong> org.jmock.Mock;
+<a name="24" href="#24">24</a> <strong class="jxr_keyword">import</strong> org.jmock.MockObjectTestCase;
+<a name="25" href="#25">25</a>
+<a name="26" href="#26">26</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/james/mpt/TestExternalHostSystem.html">TestExternalHostSystem</a> <strong class="jxr_keyword">extends</strong> MockObjectTestCase {
+<a name="27" href="#27">27</a>
+<a name="28" href="#28">28</a>
+<a name="29" href="#29">29</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String USER = <span class="jxr_string">"USER NAME"</span>;
+<a name="30" href="#30">30</a>
+<a name="31" href="#31">31</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PASSWORD = <span class="jxr_string">"SOME PASSWORD"</span>;
+<a name="32" href="#32">32</a>
+<a name="33" href="#33">33</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SHABANG = <span class="jxr_string">"This Is The Shabang"</span>;
+<a name="34" href="#34">34</a>
+<a name="35" href="#35">35</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> PORT = 10001;
+<a name="36" href="#36">36</a>
+<a name="37" href="#37">37</a> <strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a> protocol;
+<a name="38" href="#38">38</a>
+<a name="39" href="#39">39</a> <strong class="jxr_keyword">private</strong> DiscardProtocol.Record record;
+<a name="40" href="#40">40</a>
+<a name="41" href="#41">41</a> <strong class="jxr_keyword">private</strong> Continuation continuation;
+<a name="42" href="#42">42</a>
+<a name="43" href="#43">43</a> <strong class="jxr_keyword">private</strong> UserAdder userAdder;
+<a name="44" href="#44">44</a>
+<a name="45" href="#45">45</a> <strong class="jxr_keyword">private</strong> Mock mockUserAdder;
+<a name="46" href="#46">46</a>
+<a name="47" href="#47">47</a> @Override
+<a name="48" href="#48">48</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="49" href="#49">49</a> <strong class="jxr_keyword">super</strong>.setUp();
+<a name="50" href="#50">50</a> protocol = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a>(PORT);
+<a name="51" href="#51">51</a> protocol.start();
+<a name="52" href="#52">52</a> record = protocol.recordNext();
+<a name="53" href="#53">53</a> continuation = (Continuation) mock(Continuation.<strong class="jxr_keyword">class</strong>).proxy();
+<a name="54" href="#54">54</a> mockUserAdder = mock(UserAdder.<strong class="jxr_keyword">class</strong>);
+<a name="55" href="#55">55</a> userAdder = (UserAdder) mockUserAdder.proxy();
+<a name="56" href="#56">56</a> }
+<a name="57" href="#57">57</a>
+<a name="58" href="#58">58</a> @Override
+<a name="59" href="#59">59</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> tearDown() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="60" href="#60">60</a> protocol.stop();
+<a name="61" href="#61">61</a> <strong class="jxr_keyword">super</strong>.tearDown();
+<a name="62" href="#62">62</a> }
+<a name="63" href="#63">63</a>
+<a name="64" href="#64">64</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testWrite() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="65" href="#65">65</a> Session session = newSession(SHABANG);
+<a name="66" href="#66">66</a> <strong class="jxr_keyword">final</strong> String in = <span class="jxr_string">"Hello, World"</span>;
+<a name="67" href="#67">67</a> session.writeLine(in);
+<a name="68" href="#68">68</a> session.stop();
+<a name="69" href="#69">69</a> assertEquals(in + <span class="jxr_string">"\r\n"</span>, record.complete());
+<a name="70" href="#70">70</a> }
+<a name="71" href="#71">71</a>
+<a name="72" href="#72">72</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testAddUser() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="73" href="#73">73</a> mockUserAdder.expects(once()).method(<span class="jxr_string">"addUser"</span>).with(eq(USER), eq(PASSWORD));
+<a name="74" href="#74">74</a> ExternalHostSystem system = buildSystem(SHABANG);
+<a name="75" href="#75">75</a> system.addUser(USER, PASSWORD);
+<a name="76" href="#76">76</a> }
+<a name="77" href="#77">77</a>
+<a name="78" href="#78">78</a> <strong class="jxr_keyword">private</strong> Session newSession(<strong class="jxr_keyword">final</strong> String shabang) <strong class="jxr_keyword">throws</strong> Exception {
+<a name="79" href="#79">79</a> ExternalSessionFactory system = buildSystem(shabang);
+<a name="80" href="#80">80</a> Session session = system.newSession(continuation);
+<a name="81" href="#81">81</a> <strong class="jxr_keyword">return</strong> session;
+<a name="82" href="#82">82</a> }
+<a name="83" href="#83">83</a>
+<a name="84" href="#84">84</a> <strong class="jxr_keyword">private</strong> ExternalHostSystem buildSystem(<strong class="jxr_keyword">final</strong> String shabang) {
+<a name="85" href="#85">85</a> ExternalHostSystem system = <strong class="jxr_keyword">new</strong> ExternalHostSystem(<span class="jxr_string">"localhost"</span>, PORT ,
+<a name="86" href="#86">86</a> <strong class="jxr_keyword">new</strong> NullMonitor(), shabang, userAdder);
+<a name="87" href="#87">87</a> <strong class="jxr_keyword">return</strong> system;
+<a name="88" href="#88">88</a> }
+<a name="89" href="#89">89</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestFileProtocolSessionBuilder.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestFileProtocolSessionBuilder.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestFileProtocolSessionBuilder.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestFileProtocolSessionBuilder.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TestFileProtocolSessionBuilder xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one *</em>
+<a name="3" href="#3">3</a> <em class="jxr_javadoccomment"> * or more contributor license agreements. See the NOTICE file *</em>
+<a name="4" href="#4">4</a> <em class="jxr_javadoccomment"> * distributed with this work for additional information *</em>
+<a name="5" href="#5">5</a> <em class="jxr_javadoccomment"> * regarding copyright ownership. The ASF licenses this file *</em>
+<a name="6" href="#6">6</a> <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the *</em>
+<a name="7" href="#7">7</a> <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance *</em>
+<a name="8" href="#8">8</a> <em class="jxr_javadoccomment"> * with the License. You may obtain a copy of the License at *</em>
+<a name="9" href="#9">9</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="10" href="#10">10</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a> *</em>
+<a name="11" href="#11">11</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="12" href="#12">12</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, *</em>
+<a name="13" href="#13">13</a> <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an *</em>
+<a name="14" href="#14">14</a> <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em>
+<a name="15" href="#15">15</a> <em class="jxr_javadoccomment"> * KIND, either express or implied. See the License for the *</em>
+<a name="16" href="#16">16</a> <em class="jxr_javadoccomment"> * specific language governing permissions and limitations *</em>
+<a name="17" href="#17">17</a> <em class="jxr_javadoccomment"> * under the License. *</em>
+<a name="18" href="#18">18</a> <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong class="jxr_keyword">package</strong> org.apache.james.mpt;
+<a name="21" href="#21">21</a>
+<a name="22" href="#22">22</a> <strong class="jxr_keyword">import</strong> java.io.StringReader;
+<a name="23" href="#23">23</a>
+<a name="24" href="#24">24</a> <strong class="jxr_keyword">import</strong> org.jmock.Mock;
+<a name="25" href="#25">25</a> <strong class="jxr_keyword">import</strong> org.jmock.MockObjectTestCase;
+<a name="26" href="#26">26</a>
+<a name="27" href="#27">27</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/james/mpt/TestFileProtocolSessionBuilder.html">TestFileProtocolSessionBuilder</a> <strong class="jxr_keyword">extends</strong> MockObjectTestCase {
+<a name="28" href="#28">28</a>
+<a name="29" href="#29">29</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SCRIPT_WITH_VARIABLES = <span class="jxr_string">"HELLO ${not} ${foo} WORLD ${bar}"</span>;
+<a name="30" href="#30">30</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SCRIPT_WITH_FOO_REPLACED_BY_WHATEVER = <span class="jxr_string">"HELLO ${not} whatever WORLD ${bar}"</span>;
+<a name="31" href="#31">31</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SCRIPT_WITH_VARIABLES_INLINED = <span class="jxr_string">"HELLO not foo WORLD bar"</span>;
+<a name="32" href="#32">32</a>
+<a name="33" href="#33">33</a> ProtocolSessionBuilder builder;
+<a name="34" href="#34">34</a> ProtocolInteractor session;
+<a name="35" href="#35">35</a>
+<a name="36" href="#36">36</a> <strong class="jxr_keyword">private</strong> Mock mockSession;
+<a name="37" href="#37">37</a>
+<a name="38" href="#38">38</a> @Override
+<a name="39" href="#39">39</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="40" href="#40">40</a> <strong class="jxr_keyword">super</strong>.setUp();
+<a name="41" href="#41">41</a> builder = <strong class="jxr_keyword">new</strong> ProtocolSessionBuilder();
+<a name="42" href="#42">42</a> mockSession = mock(ProtocolInteractor.<strong class="jxr_keyword">class</strong>);
+<a name="43" href="#43">43</a> session = (ProtocolInteractor) mockSession.proxy();
+<a name="44" href="#44">44</a> }
+<a name="45" href="#45">45</a>
+<a name="46" href="#46">46</a> @Override
+<a name="47" href="#47">47</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> tearDown() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="48" href="#48">48</a> <strong class="jxr_keyword">super</strong>.tearDown();
+<a name="49" href="#49">49</a> }
+<a name="50" href="#50">50</a>
+<a name="51" href="#51">51</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> addLines() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="52" href="#52">52</a> builder.addProtocolLines(<span class="jxr_string">"A Script"</span>, <strong class="jxr_keyword">new</strong> StringReader(ProtocolSessionBuilder.CLIENT_TAG + <span class="jxr_string">" "</span> + SCRIPT_WITH_VARIABLES), session);
+<a name="53" href="#53">53</a> }
+<a name="54" href="#54">54</a>
+<a name="55" href="#55">55</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShouldPreserveContentsWhenNoVariablesSet() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="56" href="#56">56</a> mockSession.expects(once()).method(<span class="jxr_string">"CL"</span>).with(eq(-1), eq(SCRIPT_WITH_VARIABLES));
+<a name="57" href="#57">57</a> addLines();
+<a name="58" href="#58">58</a> }
+<a name="59" href="#59">59</a>
+<a name="60" href="#60">60</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShouldReplaceVariableWhenSet() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="61" href="#61">61</a> mockSession.expects(once()).method(<span class="jxr_string">"CL"</span>).with(eq(-1), eq(SCRIPT_WITH_FOO_REPLACED_BY_WHATEVER));
+<a name="62" href="#62">62</a> builder.setVariable(<span class="jxr_string">"foo"</span>, <span class="jxr_string">"whatever"</span>);
+<a name="63" href="#63">63</a> addLines();
+<a name="64" href="#64">64</a> }
+<a name="65" href="#65">65</a>
+<a name="66" href="#66">66</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShouldReplaceAllVariablesWhenSet() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="67" href="#67">67</a> mockSession.expects(once()).method(<span class="jxr_string">"CL"</span>).with(eq(-1), eq(SCRIPT_WITH_VARIABLES_INLINED));
+<a name="68" href="#68">68</a> builder.setVariable(<span class="jxr_string">"bar"</span>, <span class="jxr_string">"bar"</span>);
+<a name="69" href="#69">69</a> builder.setVariable(<span class="jxr_string">"foo"</span>, <span class="jxr_string">"foo"</span>);
+<a name="70" href="#70">70</a> builder.setVariable(<span class="jxr_string">"not"</span>, <span class="jxr_string">"not"</span>);
+<a name="71" href="#71">71</a> addLines();
+<a name="72" href="#72">72</a> }
+<a name="73" href="#73">73</a>
+<a name="74" href="#74">74</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShouldReplaceVariableAtBeginningAndEnd() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="75" href="#75">75</a> mockSession.expects(once()).method(<span class="jxr_string">"CL"</span>).with(eq(-1), eq(<span class="jxr_string">"whatever Some Other Scriptwhateverwhatever"</span>));
+<a name="76" href="#76">76</a> builder.setVariable(<span class="jxr_string">"foo"</span>, <span class="jxr_string">"whatever"</span>);
+<a name="77" href="#77">77</a> builder.addProtocolLines(<span class="jxr_string">"A Script"</span>, <strong class="jxr_keyword">new</strong> StringReader(ProtocolSessionBuilder.CLIENT_TAG + <span class="jxr_string">" "</span> + <span class="jxr_string">"${foo} Some Other Script${foo}${foo}"</span>), session);
+<a name="78" href="#78">78</a> }
+<a name="79" href="#79">79</a>
+<a name="80" href="#80">80</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShouldIgnoreNotQuiteVariables() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="81" href="#81">81</a> <strong class="jxr_keyword">final</strong> String NEARLY = <span class="jxr_string">"{foo}${}${foo Some Other Script${foo}"</span>;
+<a name="82" href="#82">82</a> mockSession.expects(once()).method(<span class="jxr_string">"CL"</span>).with(eq(-1), eq(NEARLY));
+<a name="83" href="#83">83</a> builder.setVariable(<span class="jxr_string">"foo"</span>, <span class="jxr_string">"whatever"</span>);
+<a name="84" href="#84">84</a> builder.addProtocolLines(<span class="jxr_string">"A Script"</span>, <strong class="jxr_keyword">new</strong> StringReader(ProtocolSessionBuilder.CLIENT_TAG + <span class="jxr_string">" "</span> + NEARLY), session);
+<a name="85" href="#85">85</a> }
+<a name="86" href="#86">86</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestScriptedUserAdder.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestScriptedUserAdder.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestScriptedUserAdder.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/TestScriptedUserAdder.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,63 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TestScriptedUserAdder xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one *</em>
+<a name="3" href="#3">3</a> <em class="jxr_javadoccomment"> * or more contributor license agreements. See the NOTICE file *</em>
+<a name="4" href="#4">4</a> <em class="jxr_javadoccomment"> * distributed with this work for additional information *</em>
+<a name="5" href="#5">5</a> <em class="jxr_javadoccomment"> * regarding copyright ownership. The ASF licenses this file *</em>
+<a name="6" href="#6">6</a> <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the *</em>
+<a name="7" href="#7">7</a> <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance *</em>
+<a name="8" href="#8">8</a> <em class="jxr_javadoccomment"> * with the License. You may obtain a copy of the License at *</em>
+<a name="9" href="#9">9</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="10" href="#10">10</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a> *</em>
+<a name="11" href="#11">11</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="12" href="#12">12</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, *</em>
+<a name="13" href="#13">13</a> <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an *</em>
+<a name="14" href="#14">14</a> <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em>
+<a name="15" href="#15">15</a> <em class="jxr_javadoccomment"> * KIND, either express or implied. See the License for the *</em>
+<a name="16" href="#16">16</a> <em class="jxr_javadoccomment"> * specific language governing permissions and limitations *</em>
+<a name="17" href="#17">17</a> <em class="jxr_javadoccomment"> * under the License. *</em>
+<a name="18" href="#18">18</a> <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong class="jxr_keyword">package</strong> org.apache.james.mpt;
+<a name="21" href="#21">21</a>
+<a name="22" href="#22">22</a> <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a name="23" href="#23">23</a>
+<a name="24" href="#24">24</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/james/mpt/TestScriptedUserAdder.html">TestScriptedUserAdder</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a name="25" href="#25">25</a>
+<a name="26" href="#26">26</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> PORT = 10001;
+<a name="27" href="#27">27</a>
+<a name="28" href="#28">28</a> <strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a> protocol;
+<a name="29" href="#29">29</a>
+<a name="30" href="#30">30</a> <strong class="jxr_keyword">private</strong> DiscardProtocol.Record record;
+<a name="31" href="#31">31</a>
+<a name="32" href="#32">32</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="33" href="#33">33</a> <strong class="jxr_keyword">super</strong>.setUp();
+<a name="34" href="#34">34</a> protocol = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a>(PORT);
+<a name="35" href="#35">35</a> protocol.start();
+<a name="36" href="#36">36</a> record = protocol.recordNext();
+<a name="37" href="#37">37</a> }
+<a name="38" href="#38">38</a>
+<a name="39" href="#39">39</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> tearDown() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="40" href="#40">40</a> <strong class="jxr_keyword">super</strong>.tearDown();
+<a name="41" href="#41">41</a> protocol.stop();
+<a name="42" href="#42">42</a> }
+<a name="43" href="#43">43</a>
+<a name="44" href="#44">44</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShouldExecuteScriptAgainstPort() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="45" href="#45">45</a> ScriptedUserAdder adder = <strong class="jxr_keyword">new</strong> ScriptedUserAdder(<span class="jxr_string">"localhost"</span>, PORT, <span class="jxr_string">"C: USER='${user}' password='${password}'"</span>);
+<a name="46" href="#46">46</a> adder.addUser(<span class="jxr_string">"A User"</span>, <span class="jxr_string">"Some Password"</span>);
+<a name="47" href="#47">47</a> assertEquals(<span class="jxr_string">"USER='A User' password='Some Password'\r\n"</span>, record.complete());
+<a name="48" href="#48">48</a> }
+<a name="49" href="#49">49</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/TestAddUser.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/TestAddUser.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/TestAddUser.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/TestAddUser.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,80 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TestAddUser xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one *</em>
+<a name="3" href="#3">3</a> <em class="jxr_javadoccomment"> * or more contributor license agreements. See the NOTICE file *</em>
+<a name="4" href="#4">4</a> <em class="jxr_javadoccomment"> * distributed with this work for additional information *</em>
+<a name="5" href="#5">5</a> <em class="jxr_javadoccomment"> * regarding copyright ownership. The ASF licenses this file *</em>
+<a name="6" href="#6">6</a> <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the *</em>
+<a name="7" href="#7">7</a> <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance *</em>
+<a name="8" href="#8">8</a> <em class="jxr_javadoccomment"> * with the License. You may obtain a copy of the License at *</em>
+<a name="9" href="#9">9</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="10" href="#10">10</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a> *</em>
+<a name="11" href="#11">11</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="12" href="#12">12</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, *</em>
+<a name="13" href="#13">13</a> <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an *</em>
+<a name="14" href="#14">14</a> <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em>
+<a name="15" href="#15">15</a> <em class="jxr_javadoccomment"> * KIND, either express or implied. See the License for the *</em>
+<a name="16" href="#16">16</a> <em class="jxr_javadoccomment"> * specific language governing permissions and limitations *</em>
+<a name="17" href="#17">17</a> <em class="jxr_javadoccomment"> * under the License. *</em>
+<a name="18" href="#18">18</a> <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong class="jxr_keyword">package</strong> org.apache.james.mpt.ant;
+<a name="21" href="#21">21</a>
+<a name="22" href="#22">22</a> <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a name="23" href="#23">23</a>
+<a name="24" href="#24">24</a> <strong class="jxr_keyword">import</strong> org.apache.james.mpt.DiscardProtocol;
+<a name="25" href="#25">25</a> <strong class="jxr_keyword">import</strong> org.apache.tools.ant.Project;
+<a name="26" href="#26">26</a> <strong class="jxr_keyword">import</strong> org.apache.tools.ant.types.resources.Union;
+<a name="27" href="#27">27</a>
+<a name="28" href="#28">28</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/james/mpt/ant/TestAddUser.html">TestAddUser</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a name="29" href="#29">29</a>
+<a name="30" href="#30">30</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> PORT = 10001;
+<a name="31" href="#31">31</a>
+<a name="32" href="#32">32</a> <a href="../../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a> fakeServer;
+<a name="33" href="#33">33</a>
+<a name="34" href="#34">34</a> DiscardProtocol.Record record;
+<a name="35" href="#35">35</a>
+<a name="36" href="#36">36</a> MailProtocolTestTask subject;
+<a name="37" href="#37">37</a>
+<a name="38" href="#38">38</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="39" href="#39">39</a> <strong class="jxr_keyword">super</strong>.setUp();
+<a name="40" href="#40">40</a> fakeServer = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a>(PORT);
+<a name="41" href="#41">41</a> fakeServer.start();
+<a name="42" href="#42">42</a> record = fakeServer.recordNext();
+<a name="43" href="#43">43</a>
+<a name="44" href="#44">44</a> subject = <strong class="jxr_keyword">new</strong> MailProtocolTestTask();
+<a name="45" href="#45">45</a> subject.setHost(<span class="jxr_string">"127.0.0.1"</span>);
+<a name="46" href="#46">46</a> subject.setPort(PORT+1);
+<a name="47" href="#47">47</a> subject.add(<strong class="jxr_keyword">new</strong> Union());
+<a name="48" href="#48">48</a> subject.setProject(<strong class="jxr_keyword">new</strong> Project());
+<a name="49" href="#49">49</a> }
+<a name="50" href="#50">50</a>
+<a name="51" href="#51">51</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> tearDown() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="52" href="#52">52</a> <strong class="jxr_keyword">super</strong>.tearDown();
+<a name="53" href="#53">53</a> fakeServer.stop();
+<a name="54" href="#54">54</a> }
+<a name="55" href="#55">55</a>
+<a name="56" href="#56">56</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShouldExecuteScriptAgainstPort() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="57" href="#57">57</a> MailProtocolTestTask.AddUser user = subject.createAddUser();
+<a name="58" href="#58">58</a> user.setPort(PORT);
+<a name="59" href="#59">59</a> user.setPasswd(<span class="jxr_string">"PASSWORD"</span>);
+<a name="60" href="#60">60</a> user.setUser(<span class="jxr_string">"USER"</span>);
+<a name="61" href="#61">61</a> <strong class="jxr_keyword">final</strong> String script = <span class="jxr_string">"This script adds a user"</span>;
+<a name="62" href="#62">62</a> user.addText(<span class="jxr_string">"C: "</span> + script);
+<a name="63" href="#63">63</a> subject.execute();
+<a name="64" href="#64">64</a> assertEquals(script + <span class="jxr_string">"\r\n"</span>, record.complete());
+<a name="65" href="#65">65</a> }
+<a name="66" href="#66">66</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/TestRunScripts.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/TestRunScripts.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/TestRunScripts.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/TestRunScripts.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,111 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+<title>TestRunScripts xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<pre>
+
+<a name="1" href="#1">1</a> <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment">**************************************************************</em>
+<a name="2" href="#2">2</a> <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one *</em>
+<a name="3" href="#3">3</a> <em class="jxr_javadoccomment"> * or more contributor license agreements. See the NOTICE file *</em>
+<a name="4" href="#4">4</a> <em class="jxr_javadoccomment"> * distributed with this work for additional information *</em>
+<a name="5" href="#5">5</a> <em class="jxr_javadoccomment"> * regarding copyright ownership. The ASF licenses this file *</em>
+<a name="6" href="#6">6</a> <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the *</em>
+<a name="7" href="#7">7</a> <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance *</em>
+<a name="8" href="#8">8</a> <em class="jxr_javadoccomment"> * with the License. You may obtain a copy of the License at *</em>
+<a name="9" href="#9">9</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="10" href="#10">10</a> <em class="jxr_javadoccomment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a> *</em>
+<a name="11" href="#11">11</a> <em class="jxr_javadoccomment"> * *</em>
+<a name="12" href="#12">12</a> <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, *</em>
+<a name="13" href="#13">13</a> <em class="jxr_javadoccomment"> * software distributed under the License is distributed on an *</em>
+<a name="14" href="#14">14</a> <em class="jxr_javadoccomment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em>
+<a name="15" href="#15">15</a> <em class="jxr_javadoccomment"> * KIND, either express or implied. See the License for the *</em>
+<a name="16" href="#16">16</a> <em class="jxr_javadoccomment"> * specific language governing permissions and limitations *</em>
+<a name="17" href="#17">17</a> <em class="jxr_javadoccomment"> * under the License. *</em>
+<a name="18" href="#18">18</a> <em class="jxr_javadoccomment"> ****************************************************************/</em>
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong class="jxr_keyword">package</strong> org.apache.james.mpt.ant;
+<a name="21" href="#21">21</a>
+<a name="22" href="#22">22</a> <strong class="jxr_keyword">import</strong> java.io.File;
+<a name="23" href="#23">23</a> <strong class="jxr_keyword">import</strong> java.io.FileWriter;
+<a name="24" href="#24">24</a> <strong class="jxr_keyword">import</strong> java.io.InputStream;
+<a name="25" href="#25">25</a>
+<a name="26" href="#26">26</a> <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a name="27" href="#27">27</a>
+<a name="28" href="#28">28</a> <strong class="jxr_keyword">import</strong> org.apache.james.mpt.DiscardProtocol;
+<a name="29" href="#29">29</a> <strong class="jxr_keyword">import</strong> org.apache.tools.ant.Project;
+<a name="30" href="#30">30</a> <strong class="jxr_keyword">import</strong> org.apache.tools.ant.types.Resource;
+<a name="31" href="#31">31</a> <strong class="jxr_keyword">import</strong> org.apache.tools.ant.types.resources.StringResource;
+<a name="32" href="#32">32</a> <strong class="jxr_keyword">import</strong> org.apache.tools.ant.types.resources.Union;
+<a name="33" href="#33">33</a>
+<a name="34" href="#34">34</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/james/mpt/ant/TestRunScripts.html">TestRunScripts</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a name="35" href="#35">35</a>
+<a name="36" href="#36">36</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SCRIPT = <span class="jxr_string">"A script"</span>;
+<a name="37" href="#37">37</a>
+<a name="38" href="#38">38</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> PORT = 10001;
+<a name="39" href="#39">39</a>
+<a name="40" href="#40">40</a> Union stubResourceCollection;
+<a name="41" href="#41">41</a> Resource stubResource;
+<a name="42" href="#42">42</a>
+<a name="43" href="#43">43</a> <a href="../../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a> fakeServer;
+<a name="44" href="#44">44</a> DiscardProtocol.Record record;
+<a name="45" href="#45">45</a>
+<a name="46" href="#46">46</a> MailProtocolTestTask subject;
+<a name="47" href="#47">47</a>
+<a name="48" href="#48">48</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="49" href="#49">49</a> <strong class="jxr_keyword">super</strong>.setUp();
+<a name="50" href="#50">50</a> fakeServer = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/james/mpt/DiscardProtocol.html">DiscardProtocol</a>(PORT);
+<a name="51" href="#51">51</a> fakeServer.start();
+<a name="52" href="#52">52</a> record = fakeServer.recordNext();
+<a name="53" href="#53">53</a>
+<a name="54" href="#54">54</a> stubResourceCollection = <strong class="jxr_keyword">new</strong> Union();
+<a name="55" href="#55">55</a> stubResource = <strong class="jxr_keyword">new</strong> StringResource(<span class="jxr_string">"C: "</span> + SCRIPT);
+<a name="56" href="#56">56</a> stubResourceCollection.add(stubResource);
+<a name="57" href="#57">57</a>
+<a name="58" href="#58">58</a> subject = <strong class="jxr_keyword">new</strong> MailProtocolTestTask();
+<a name="59" href="#59">59</a> subject.setHost(<span class="jxr_string">"127.0.0.1"</span>);
+<a name="60" href="#60">60</a> subject.setPort(PORT);
+<a name="61" href="#61">61</a> subject.setProject(<strong class="jxr_keyword">new</strong> Project());
+<a name="62" href="#62">62</a> }
+<a name="63" href="#63">63</a>
+<a name="64" href="#64">64</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> tearDown() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="65" href="#65">65</a> <strong class="jxr_keyword">super</strong>.tearDown();
+<a name="66" href="#66">66</a> fakeServer.stop();
+<a name="67" href="#67">67</a> }
+<a name="68" href="#68">68</a>
+<a name="69" href="#69">69</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testIgnoreUnsupportedResource() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="70" href="#70">70</a> <strong class="jxr_keyword">final</strong> Resource unsupportedResource = <strong class="jxr_keyword">new</strong> StringResource() {
+<a name="71" href="#71">71</a> <strong class="jxr_keyword">public</strong> InputStream getInputStream() {
+<a name="72" href="#72">72</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> UnsupportedOperationException();
+<a name="73" href="#73">73</a> }
+<a name="74" href="#74">74</a> };
+<a name="75" href="#75">75</a> stubResourceCollection.add(unsupportedResource);
+<a name="76" href="#76">76</a> subject.add(stubResourceCollection);
+<a name="77" href="#77">77</a> subject.execute();
+<a name="78" href="#78">78</a> assertEquals(SCRIPT +<span class="jxr_string">"\r\n"</span>, record.complete());
+<a name="79" href="#79">79</a> }
+<a name="80" href="#80">80</a>
+<a name="81" href="#81">81</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRunOneScriptFromCollection() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="82" href="#82">82</a> subject.add(stubResourceCollection);
+<a name="83" href="#83">83</a> subject.execute();
+<a name="84" href="#84">84</a> assertEquals(SCRIPT +<span class="jxr_string">"\r\n"</span>, record.complete());
+<a name="85" href="#85">85</a> }
+<a name="86" href="#86">86</a>
+<a name="87" href="#87">87</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRunOneScriptFromAttribute() <strong class="jxr_keyword">throws</strong> Exception {
+<a name="88" href="#88">88</a> <strong class="jxr_keyword">final</strong> File file = File.createTempFile(<span class="jxr_string">"Test"</span>, <span class="jxr_string">"mpt"</span>);
+<a name="89" href="#89">89</a> file.deleteOnExit();
+<a name="90" href="#90">90</a> <strong class="jxr_keyword">final</strong> FileWriter writer = <strong class="jxr_keyword">new</strong> FileWriter(file);
+<a name="91" href="#91">91</a> writer.write(<span class="jxr_string">"C: "</span> + SCRIPT);
+<a name="92" href="#92">92</a> writer.close();
+<a name="93" href="#93">93</a> subject.setScript(file);
+<a name="94" href="#94">94</a> subject.execute();
+<a name="95" href="#95">95</a> assertEquals(SCRIPT +<span class="jxr_string">"\r\n"</span>, record.complete());
+<a name="96" href="#96">96</a> }
+<a name="97" href="#97">97</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/package-frame.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/package-frame.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/package-frame.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,27 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache JAMES MPT Project 0.1-SNAPSHOT Reference Package org.apache.james.mpt.ant</title>
+ <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.james.mpt.ant</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+ <li>
+ <a href="TestAddUser.html" target="classFrame">TestAddUser</a>
+ </li>
+ <li>
+ <a href="TestRunScripts.html" target="classFrame">TestRunScripts</a>
+ </li>
+ </ul>
+
+ </body>
+</html>
\ No newline at end of file
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/package-summary.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/package-summary.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/ant/package-summary.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,72 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache JAMES MPT Project 0.1-SNAPSHOT Reference Package org.apache.james.mpt.ant</title>
+ <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+ </head>
+ <body>
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+ <h2>Package org.apache.james.mpt.ant</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Class Summary</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <a href="TestAddUser.html" target="classFrame">TestAddUser</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="TestRunScripts.html" target="classFrame">TestRunScripts</a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+ <hr />
+ Copyright © 2008 The Apache Software Foundation. All Rights Reserved.
+ </body>
+</html>
\ No newline at end of file
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/package-frame.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/package-frame.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/package-frame.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,48 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache JAMES MPT Project 0.1-SNAPSHOT Reference Package org.apache.james.mpt</title>
+ <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.james.mpt</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+ <li>
+ <a href="DiscardProtocol.html" target="classFrame">DiscardProtocol</a>
+ </li>
+ <li>
+ <a href="TestDiscardProtocol.html" target="classFrame">InputLater</a>
+ </li>
+ <li>
+ <a href="DiscardProtocol.html" target="classFrame">Record</a>
+ </li>
+ <li>
+ <a href="DiscardProtocol.html" target="classFrame">Server</a>
+ </li>
+ <li>
+ <a href="DiscardProtocol.html" target="classFrame">SocketMonitor</a>
+ </li>
+ <li>
+ <a href="TestDiscardProtocol.html" target="classFrame">TestDiscardProtocol</a>
+ </li>
+ <li>
+ <a href="TestExternalHostSystem.html" target="classFrame">TestExternalHostSystem</a>
+ </li>
+ <li>
+ <a href="TestFileProtocolSessionBuilder.html" target="classFrame">TestFileProtocolSessionBuilder</a>
+ </li>
+ <li>
+ <a href="TestScriptedUserAdder.html" target="classFrame">TestScriptedUserAdder</a>
+ </li>
+ </ul>
+
+ </body>
+</html>
\ No newline at end of file
Added: james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/package-summary.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/package-summary.html (added)
+++ james/site/trunk/www/mpt/xref-test/org/apache/james/mpt/package-summary.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,107 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache JAMES MPT Project 0.1-SNAPSHOT Reference Package org.apache.james.mpt</title>
+ <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
+ </head>
+ <body>
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+ <h2>Package org.apache.james.mpt</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Class Summary</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <a href="DiscardProtocol.html" target="classFrame">DiscardProtocol</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="TestDiscardProtocol.html" target="classFrame">InputLater</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="DiscardProtocol.html" target="classFrame">Record</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="DiscardProtocol.html" target="classFrame">Server</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="DiscardProtocol.html" target="classFrame">SocketMonitor</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="TestDiscardProtocol.html" target="classFrame">TestDiscardProtocol</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="TestExternalHostSystem.html" target="classFrame">TestExternalHostSystem</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="TestFileProtocolSessionBuilder.html" target="classFrame">TestFileProtocolSessionBuilder</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="TestScriptedUserAdder.html" target="classFrame">TestScriptedUserAdder</a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+ <hr />
+ Copyright © 2008 The Apache Software Foundation. All Rights Reserved.
+ </body>
+</html>
\ No newline at end of file
Added: james/site/trunk/www/mpt/xref-test/overview-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/overview-frame.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/overview-frame.html (added)
+++ james/site/trunk/www/mpt/xref-test/overview-frame.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,28 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache JAMES MPT Project 0.1-SNAPSHOT Reference</title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
+ </head>
+ <body>
+
+ <h3>
+ <a href="allclasses-frame.html" target="packageFrame">All Classes</a>
+ </h3>
+
+ <h3>Packages</h3>
+
+ <ul>
+ <li>
+ <a href="org/apache/james/mpt/package-frame.html" target="packageFrame">org.apache.james.mpt</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ant/package-frame.html" target="packageFrame">org.apache.james.mpt.ant</a>
+ </li>
+ </ul>
+
+ </body>
+</html>
+
Added: james/site/trunk/www/mpt/xref-test/overview-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/overview-summary.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/overview-summary.html (added)
+++ james/site/trunk/www/mpt/xref-test/overview-summary.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,69 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache JAMES MPT Project 0.1-SNAPSHOT Reference</title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
+ </head>
+ <body>
+ <div class="overview">
+ <ul>
+ <li class="selected">Overview</li>
+ <li>Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="overview-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+ <h2>Apache JAMES MPT Project 0.1-SNAPSHOT Reference</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Packages</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <a href="org/apache/james/mpt/package-summary.html">org.apache.james.mpt</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="org/apache/james/mpt/ant/package-summary.html">org.apache.james.mpt.ant</a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <div class="overview">
+ <ul>
+ <li class="selected">Overview</li>
+ <li>Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="overview-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+ <hr />
+ Copyright © 2008 The Apache Software Foundation. All Rights Reserved.
+ </body>
+</html>
\ No newline at end of file
Added: james/site/trunk/www/mpt/xref-test/stylesheet.css
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref-test/stylesheet.css?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref-test/stylesheet.css (added)
+++ james/site/trunk/www/mpt/xref-test/stylesheet.css Tue Dec 2 12:05:59 2008
@@ -0,0 +1,116 @@
+/* Javadoc style sheet */
+/* Define colors, fonts and other style attributes here to override the defaults */
+body {
+ background-color: #fff;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+a:link {
+ color: #00f;
+}
+a:visited {
+ color: #00a;
+}
+
+a:active, a:hover {
+ color: #f30 !important;
+}
+
+ul, li {
+ list-style-type:none;
+ margin:0;
+ padding:0;
+}
+
+table td {
+ padding: 3px;
+ border: 1px solid #000;
+}
+table {
+ width:100%;
+ border: 1px solid #000;
+ border-collapse: collapse;
+}
+
+div.overview {
+ background-color:#ddd;
+ padding: 4px 4px 4px 0;
+}
+div.overview li, div.framenoframe li {
+ display: inline;
+}
+div.framenoframe {
+ text-align: center;
+ font-size: x-small;
+}
+div.framenoframe li {
+ margin: 0 3px 0 3px;
+}
+div.overview li {
+ margin:3px 3px 0 3px;
+ padding: 4px;
+}
+li.selected {
+ background-color:#888;
+ color: #fff;
+ font-weight: bold;
+}
+
+table.summary {
+ margin-bottom: 20px;
+}
+table.summary td, table.summary th {
+ font-weight: bold;
+ text-align: left;
+ padding: 3px;
+}
+table.summary th {
+ background-color:#036;
+ color: #fff;
+}
+table.summary td {
+ background-color:#eee;
+ border: 1px solid black;
+}
+
+em {
+ color: #A00;
+}
+em.comment {
+ color: #390;
+}
+.string {
+ color: #009;
+}
+div#footer {
+ text-align:center;
+}
+#overview {
+ padding:2px;
+}
+
+hr {
+ height: 1px;
+ color: #000;
+}
+
+/* JXR style sheet */
+.jxr_comment
+{
+ color: #390;
+}
+
+.jxr_javadoccomment
+{
+ color: #A00;
+}
+
+.jxr_string
+{
+ color: #009;
+}
+
+.jxr_keyword
+{
+ color: #000;
+}
Added: james/site/trunk/www/mpt/xref/allclasses-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref/allclasses-frame.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref/allclasses-frame.html (added)
+++ james/site/trunk/www/mpt/xref/allclasses-frame.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,98 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>All Classes</title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
+ </head>
+ <body>
+
+ <h3>All Classes</h3>
+
+ <ul>
+ <li>
+ <a href="org/apache/james/mpt/AbstractProtocolTestFramework.html" target="classFrame">AbstractProtocolTestFramework</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/AbstractSimpleScriptedTestProtocol.html" target="classFrame">AbstractSimpleScriptedTestProtocol</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ant/MailProtocolTestTask.html" target="classFrame">AddUser</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ProtocolSession.html" target="classFrame">ClientRequest</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/HostSystem.html" target="classFrame">Continuation</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ProtocolSession.html" target="classFrame">ContinuationElement</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ExternalHostSystem.html" target="classFrame">ExternalHostSystem</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ExternalSession.html" target="classFrame">ExternalSession</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ExternalSessionFactory.html" target="classFrame">ExternalSessionFactory</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/HostSystem.html" target="classFrame">HostSystem</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/InvalidServerResponseException.html" target="classFrame">InvalidServerResponseException</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ant/MailProtocolTestTask.html" target="classFrame">MailProtocolTestTask</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/Monitor.html" target="classFrame">Monitor</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/NullMonitor.html" target="classFrame">NullMonitor</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ProtocolSession.html" target="classFrame">ProtocolElement</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ProtocolInteractor.html" target="classFrame">ProtocolInteractor</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ProtocolSession.html" target="classFrame">ProtocolSession</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ProtocolSessionBuilder.html" target="classFrame">ProtocolSessionBuilder</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/Runner.html" target="classFrame">Runner</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ScriptedUserAdder.html" target="classFrame">ScriptedUserAdder</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ProtocolSession.html" target="classFrame">ServerResponse</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/ProtocolSession.html" target="classFrame">ServerUnorderedBlockResponse</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/Session.html" target="classFrame">Session</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/Runner.html" target="classFrame">SessionContinuation</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/SessionFactory.html" target="classFrame">SessionFactory</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/SystemLoggingMonitor.html" target="classFrame">SystemLoggingMonitor</a>
+ </li>
+ <li>
+ <a href="org/apache/james/mpt/UserAdder.html" target="classFrame">UserAdder</a>
+ </li>
+ </ul>
+
+ </body>
+ </html>
Added: james/site/trunk/www/mpt/xref/index.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mpt/xref/index.html?rev=722598&view=auto
==============================================================================
--- james/site/trunk/www/mpt/xref/index.html (added)
+++ james/site/trunk/www/mpt/xref/index.html Tue Dec 2 12:05:59 2008
@@ -0,0 +1,24 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache JAMES MPT Project 0.1-SNAPSHOT Reference</title>
+ </head>
+ <frameset cols="20%,80%">
+ <frameset rows="30%,70%">
+ <frame src="overview-frame.html" name="packageListFrame" />
+ <frame src="allclasses-frame.html" name="packageFrame" />
+ </frameset>
+ <frame src="overview-summary.html" name="classFrame" />
+ <noframes>
+ <body>
+ <h1>Frame Alert</h1>
+ <p>
+ You don't have frames. Go <a href="overview-summary.html">here</a>
+ </p>
+ </body>
+ </noframes>
+ </frameset>
+</html>
+