Added: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/MailZoneYamlTest.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/MailZoneYamlTest.html?view=auto&rev=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/MailZoneYamlTest.html (added) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/MailZoneYamlTest.html Sun Sep 24 08:35:04 2006 @@ -0,0 +1,96 @@ +<!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>MailZoneYamlTest xref</title> +<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../../../../../../apidocs/org/apache/james/jspf/MailZoneYamlTest.html">View Javadoc</a></div><pre> + +<a name="1" href="#1">1</a> <em>/**<em>***************************************************************</em></em> +<a name="2" href="#2">2</a> <em> * Licensed to the Apache Software Foundation (ASF) under one *</em> +<a name="3" href="#3">3</a> <em> * or more contributor license agreements. See the NOTICE file *</em> +<a name="4" href="#4">4</a> <em> * distributed with this work for additional information *</em> +<a name="5" href="#5">5</a> <em> * regarding copyright ownership. The ASF licenses this file *</em> +<a name="6" href="#6">6</a> <em> * to you under the Apache License, Version 2.0 (the *</em> +<a name="7" href="#7">7</a> <em> * "License"); you may not use this file except in compliance *</em> +<a name="8" href="#8">8</a> <em> * with the License. You may obtain a copy of the License at *</em> +<a name="9" href="#9">9</a> <em> * *</em> +<a name="10" href="#10">10</a> <em> * <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> * *</em> +<a name="12" href="#12">12</a> <em> * Unless required by applicable law or agreed to in writing, *</em> +<a name="13" href="#13">13</a> <em> * software distributed under the License is distributed on an *</em> +<a name="14" href="#14">14</a> <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em> +<a name="15" href="#15">15</a> <em> * KIND, either express or implied. See the License for the *</em> +<a name="16" href="#16">16</a> <em> * specific language governing permissions and limitations *</em> +<a name="17" href="#17">17</a> <em> * under the License. *</em> +<a name="18" href="#18">18</a> <em> ****************************************************************/</em> +<a name="19" href="#19">19</a> +<a name="20" href="#20">20</a> <strong>package</strong> org.apache.james.jspf; +<a name="21" href="#21">21</a> +<a name="22" href="#22">22</a> <strong>import</strong> org.apache.james.jspf.core.DNSService; +<a name="23" href="#23">23</a> +<a name="24" href="#24">24</a> <strong>import</strong> java.io.IOException; +<a name="25" href="#25">25</a> <strong>import</strong> java.util.Iterator; +<a name="26" href="#26">26</a> <strong>import</strong> java.util.List; +<a name="27" href="#27">27</a> +<a name="28" href="#28">28</a> <strong>import</strong> junit.framework.Test; +<a name="29" href="#29">29</a> <strong>import</strong> junit.framework.TestSuite; +<a name="30" href="#30">30</a> +<a name="31" href="#31">31</a> <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/james/jspf/MailZoneYamlTest.html">MailZoneYamlTest</a> <strong>extends</strong> <a href="../../../../org/apache/james/jspf/AbstractYamlTest.html">AbstractYamlTest</a> { +<a name="32" href="#32">32</a> +<a name="33" href="#33">33</a> <strong>private</strong> <strong>static</strong> <strong>final</strong> String YAMLFILE2 = <span class="string">"mailzone-tests.yml"</span>; +<a name="34" href="#34">34</a> +<a name="35" href="#35">35</a> <em>/**<em>*</em></em> +<a name="36" href="#36">36</a> <em> * @param name</em> +<a name="37" href="#37">37</a> <em> * @throws IOException</em> +<a name="38" href="#38">38</a> <em> */</em> +<a name="39" href="#39">39</a> <strong>public</strong> <a href="../../../../org/apache/james/jspf/MailZoneYamlTest.html">MailZoneYamlTest</a>(String name) throws IOException { +<a name="40" href="#40">40</a> <strong>super</strong>(name); +<a name="41" href="#41">41</a> } +<a name="42" href="#42">42</a> +<a name="43" href="#43">43</a> <strong>protected</strong> <a href="../../../../org/apache/james/jspf/MailZoneYamlTest.html">MailZoneYamlTest</a>(SPFYamlTestSuite def, String test) { +<a name="44" href="#44">44</a> <strong>super</strong>(def, test); +<a name="45" href="#45">45</a> } +<a name="46" href="#46">46</a> +<a name="47" href="#47">47</a> <strong>protected</strong> String getFilename() { +<a name="48" href="#48">48</a> <strong>return</strong> YAMLFILE2; +<a name="49" href="#49">49</a> } +<a name="50" href="#50">50</a> +<a name="51" href="#51">51</a> <strong>public</strong> <strong>static</strong> Test suite() throws IOException { +<a name="52" href="#52">52</a> <strong>return</strong> <strong>new</strong> MailZoneSuite(); +<a name="53" href="#53">53</a> } +<a name="54" href="#54">54</a> +<a name="55" href="#55">55</a> <strong>protected</strong> List internalLoadTests(String filename) throws IOException { +<a name="56" href="#56">56</a> <strong>return</strong> loadTests(filename); +<a name="57" href="#57">57</a> } +<a name="58" href="#58">58</a> +<a name="59" href="#59">59</a> <strong>protected</strong> DNSService getDNSService() { +<a name="60" href="#60">60</a> DNSService dns = <strong>super</strong>.getDNSService(); +<a name="61" href="#61">61</a> <em class="comment">// Remove record limits for this test</em> +<a name="62" href="#62">62</a> dns.setRecordLimit(0); +<a name="63" href="#63">63</a> <strong>return</strong> dns; +<a name="64" href="#64">64</a> } +<a name="65" href="#65">65</a> +<a name="66" href="#66">66</a> <strong>static</strong> <strong>class</strong> MailZoneSuite <strong>extends</strong> TestSuite { +<a name="67" href="#67">67</a> +<a name="68" href="#68">68</a> <strong>public</strong> MailZoneSuite() throws IOException { +<a name="69" href="#69">69</a> <strong>super</strong>(); +<a name="70" href="#70">70</a> List tests = loadTests(YAMLFILE2); +<a name="71" href="#71">71</a> Iterator i = tests.iterator(); +<a name="72" href="#72">72</a> <strong>while</strong> (i.hasNext()) { +<a name="73" href="#73">73</a> SPFYamlTestSuite o = (SPFYamlTestSuite) i.next(); +<a name="74" href="#74">74</a> Iterator ttt = o.getTests().keySet().iterator(); +<a name="75" href="#75">75</a> <strong>while</strong> (ttt.hasNext()) { +<a name="76" href="#76">76</a> addTest(<strong>new</strong> <a href="../../../../org/apache/james/jspf/MailZoneYamlTest.html">MailZoneYamlTest</a>(o,(String) ttt.next())); +<a name="77" href="#77">77</a> } +<a name="78" href="#78">78</a> } +<a name="79" href="#79">79</a> } +<a name="80" href="#80">80</a> +<a name="81" href="#81">81</a> } +<a name="82" href="#82">82</a> +<a name="83" href="#83">83</a> } +</pre> +<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body> +</html> +
Propchange: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/MailZoneYamlTest.html ------------------------------------------------------------------------------ svn:eol-style = native Added: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/RFC4408YamlTest.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/RFC4408YamlTest.html?view=auto&rev=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/RFC4408YamlTest.html (added) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/RFC4408YamlTest.html Sun Sep 24 08:35:04 2006 @@ -0,0 +1,87 @@ +<!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>RFC4408YamlTest xref</title> +<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../../../../../../apidocs/org/apache/james/jspf/RFC4408YamlTest.html">View Javadoc</a></div><pre> + +<a name="1" href="#1">1</a> <em>/**<em>***************************************************************</em></em> +<a name="2" href="#2">2</a> <em> * Licensed to the Apache Software Foundation (ASF) under one *</em> +<a name="3" href="#3">3</a> <em> * or more contributor license agreements. See the NOTICE file *</em> +<a name="4" href="#4">4</a> <em> * distributed with this work for additional information *</em> +<a name="5" href="#5">5</a> <em> * regarding copyright ownership. The ASF licenses this file *</em> +<a name="6" href="#6">6</a> <em> * to you under the Apache License, Version 2.0 (the *</em> +<a name="7" href="#7">7</a> <em> * "License"); you may not use this file except in compliance *</em> +<a name="8" href="#8">8</a> <em> * with the License. You may obtain a copy of the License at *</em> +<a name="9" href="#9">9</a> <em> * *</em> +<a name="10" href="#10">10</a> <em> * <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> * *</em> +<a name="12" href="#12">12</a> <em> * Unless required by applicable law or agreed to in writing, *</em> +<a name="13" href="#13">13</a> <em> * software distributed under the License is distributed on an *</em> +<a name="14" href="#14">14</a> <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em> +<a name="15" href="#15">15</a> <em> * KIND, either express or implied. See the License for the *</em> +<a name="16" href="#16">16</a> <em> * specific language governing permissions and limitations *</em> +<a name="17" href="#17">17</a> <em> * under the License. *</em> +<a name="18" href="#18">18</a> <em> ****************************************************************/</em> +<a name="19" href="#19">19</a> +<a name="20" href="#20">20</a> <strong>package</strong> org.apache.james.jspf; +<a name="21" href="#21">21</a> +<a name="22" href="#22">22</a> <strong>import</strong> java.io.IOException; +<a name="23" href="#23">23</a> <strong>import</strong> java.util.Iterator; +<a name="24" href="#24">24</a> <strong>import</strong> java.util.List; +<a name="25" href="#25">25</a> +<a name="26" href="#26">26</a> <strong>import</strong> junit.framework.Test; +<a name="27" href="#27">27</a> <strong>import</strong> junit.framework.TestSuite; +<a name="28" href="#28">28</a> +<a name="29" href="#29">29</a> <strong>public</strong> <strong>class</strong> RFC4408YamlTest <strong>extends</strong> <a href="../../../../org/apache/james/jspf/AbstractYamlTest.html">AbstractYamlTest</a> { +<a name="30" href="#30">30</a> +<a name="31" href="#31">31</a> <strong>private</strong> <strong>static</strong> <strong>final</strong> String YAMLFILE2 = <span class="string">"rfc4408-tests.yml"</span>; +<a name="32" href="#32">32</a> +<a name="33" href="#33">33</a> <em>/**<em>*</em></em> +<a name="34" href="#34">34</a> <em> * @param name</em> +<a name="35" href="#35">35</a> <em> * @throws IOException</em> +<a name="36" href="#36">36</a> <em> */</em> +<a name="37" href="#37">37</a> <strong>public</strong> RFC4408YamlTest(String name) throws IOException { +<a name="38" href="#38">38</a> <strong>super</strong>(name); +<a name="39" href="#39">39</a> } +<a name="40" href="#40">40</a> +<a name="41" href="#41">41</a> <strong>protected</strong> RFC4408YamlTest(SPFYamlTestSuite def, String test) { +<a name="42" href="#42">42</a> <strong>super</strong>(def, test); +<a name="43" href="#43">43</a> } +<a name="44" href="#44">44</a> +<a name="45" href="#45">45</a> <strong>protected</strong> String getFilename() { +<a name="46" href="#46">46</a> <strong>return</strong> YAMLFILE2; +<a name="47" href="#47">47</a> } +<a name="48" href="#48">48</a> +<a name="49" href="#49">49</a> <strong>public</strong> <strong>static</strong> Test suite() throws IOException { +<a name="50" href="#50">50</a> <strong>return</strong> <strong>new</strong> RFC4408Suite(); +<a name="51" href="#51">51</a> } +<a name="52" href="#52">52</a> +<a name="53" href="#53">53</a> <strong>protected</strong> List internalLoadTests(String filename) throws IOException { +<a name="54" href="#54">54</a> <strong>return</strong> loadTests(filename); +<a name="55" href="#55">55</a> } +<a name="56" href="#56">56</a> +<a name="57" href="#57">57</a> <strong>static</strong> <strong>class</strong> RFC4408Suite <strong>extends</strong> TestSuite { +<a name="58" href="#58">58</a> +<a name="59" href="#59">59</a> <strong>public</strong> RFC4408Suite() throws IOException { +<a name="60" href="#60">60</a> <strong>super</strong>(); +<a name="61" href="#61">61</a> List tests = loadTests(YAMLFILE2); +<a name="62" href="#62">62</a> Iterator i = tests.iterator(); +<a name="63" href="#63">63</a> <strong>while</strong> (i.hasNext()) { +<a name="64" href="#64">64</a> SPFYamlTestSuite o = (SPFYamlTestSuite) i.next(); +<a name="65" href="#65">65</a> Iterator ttt = o.getTests().keySet().iterator(); +<a name="66" href="#66">66</a> <strong>while</strong> (ttt.hasNext()) { +<a name="67" href="#67">67</a> addTest(<strong>new</strong> RFC4408YamlTest(o,(String) ttt.next())); +<a name="68" href="#68">68</a> } +<a name="69" href="#69">69</a> } +<a name="70" href="#70">70</a> } +<a name="71" href="#71">71</a> +<a name="72" href="#72">72</a> } +<a name="73" href="#73">73</a> +<a name="74" href="#74">74</a> } +</pre> +<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body> +</html> + Propchange: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/RFC4408YamlTest.html ------------------------------------------------------------------------------ svn:eol-style = native Added: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/SPFYamlTest.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/SPFYamlTest.html?view=auto&rev=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/SPFYamlTest.html (added) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/SPFYamlTest.html Sun Sep 24 08:35:04 2006 @@ -0,0 +1,81 @@ +<!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>SPFYamlTest xref</title> +<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../../../../../../apidocs/org/apache/james/jspf/SPFYamlTest.html">View Javadoc</a></div><pre> + +<a name="1" href="#1">1</a> <em>/**<em>***************************************************************</em></em> +<a name="2" href="#2">2</a> <em> * Licensed to the Apache Software Foundation (ASF) under one *</em> +<a name="3" href="#3">3</a> <em> * or more contributor license agreements. See the NOTICE file *</em> +<a name="4" href="#4">4</a> <em> * distributed with this work for additional information *</em> +<a name="5" href="#5">5</a> <em> * regarding copyright ownership. The ASF licenses this file *</em> +<a name="6" href="#6">6</a> <em> * to you under the Apache License, Version 2.0 (the *</em> +<a name="7" href="#7">7</a> <em> * "License"); you may not use this file except in compliance *</em> +<a name="8" href="#8">8</a> <em> * with the License. You may obtain a copy of the License at *</em> +<a name="9" href="#9">9</a> <em> * *</em> +<a name="10" href="#10">10</a> <em> * <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> * *</em> +<a name="12" href="#12">12</a> <em> * Unless required by applicable law or agreed to in writing, *</em> +<a name="13" href="#13">13</a> <em> * software distributed under the License is distributed on an *</em> +<a name="14" href="#14">14</a> <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em> +<a name="15" href="#15">15</a> <em> * KIND, either express or implied. See the License for the *</em> +<a name="16" href="#16">16</a> <em> * specific language governing permissions and limitations *</em> +<a name="17" href="#17">17</a> <em> * under the License. *</em> +<a name="18" href="#18">18</a> <em> ****************************************************************/</em> +<a name="19" href="#19">19</a> +<a name="20" href="#20">20</a> <strong>package</strong> org.apache.james.jspf; +<a name="21" href="#21">21</a> +<a name="22" href="#22">22</a> <strong>import</strong> java.io.IOException; +<a name="23" href="#23">23</a> <strong>import</strong> java.util.Iterator; +<a name="24" href="#24">24</a> <strong>import</strong> java.util.List; +<a name="25" href="#25">25</a> +<a name="26" href="#26">26</a> <strong>import</strong> junit.framework.Test; +<a name="27" href="#27">27</a> <strong>import</strong> junit.framework.TestSuite; +<a name="28" href="#28">28</a> +<a name="29" href="#29">29</a> <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/james/jspf/SPFYamlTest.html">SPFYamlTest</a> <strong>extends</strong> <a href="../../../../org/apache/james/jspf/AbstractYamlTest.html">AbstractYamlTest</a> { +<a name="30" href="#30">30</a> +<a name="31" href="#31">31</a> <strong>private</strong> <strong>static</strong> <strong>final</strong> String YAMLFILE = <span class="string">"pyspf-tests.yml"</span>; +<a name="32" href="#32">32</a> +<a name="33" href="#33">33</a> +<a name="34" href="#34">34</a> <strong>public</strong> <a href="../../../../org/apache/james/jspf/SPFYamlTest.html">SPFYamlTest</a>(String name) throws IOException { +<a name="35" href="#35">35</a> <strong>super</strong>(name); +<a name="36" href="#36">36</a> } +<a name="37" href="#37">37</a> +<a name="38" href="#38">38</a> <strong>protected</strong> <a href="../../../../org/apache/james/jspf/SPFYamlTest.html">SPFYamlTest</a>(SPFYamlTestSuite def, String test) { +<a name="39" href="#39">39</a> <strong>super</strong>(def, test); +<a name="40" href="#40">40</a> } +<a name="41" href="#41">41</a> +<a name="42" href="#42">42</a> <strong>protected</strong> String getFilename() { +<a name="43" href="#43">43</a> <strong>return</strong> YAMLFILE; +<a name="44" href="#44">44</a> } +<a name="45" href="#45">45</a> +<a name="46" href="#46">46</a> <strong>public</strong> <strong>static</strong> Test suite() throws IOException { +<a name="47" href="#47">47</a> <strong>return</strong> <strong>new</strong> SPFSuite(); +<a name="48" href="#48">48</a> } +<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> <strong>static</strong> <strong>class</strong> SPFSuite <strong>extends</strong> TestSuite { +<a name="53" href="#53">53</a> +<a name="54" href="#54">54</a> <strong>public</strong> SPFSuite() throws IOException { +<a name="55" href="#55">55</a> <strong>super</strong>(); +<a name="56" href="#56">56</a> List tests = loadTests(YAMLFILE); +<a name="57" href="#57">57</a> Iterator i = tests.iterator(); +<a name="58" href="#58">58</a> <strong>while</strong> (i.hasNext()) { +<a name="59" href="#59">59</a> SPFYamlTestSuite o = (SPFYamlTestSuite) i.next(); +<a name="60" href="#60">60</a> Iterator ttt = o.getTests().keySet().iterator(); +<a name="61" href="#61">61</a> <strong>while</strong> (ttt.hasNext()) { +<a name="62" href="#62">62</a> addTest(<strong>new</strong> <a href="../../../../org/apache/james/jspf/SPFYamlTest.html">SPFYamlTest</a>(o,(String) ttt.next())); +<a name="63" href="#63">63</a> } +<a name="64" href="#64">64</a> } +<a name="65" href="#65">65</a> } +<a name="66" href="#66">66</a> +<a name="67" href="#67">67</a> } +<a name="68" href="#68">68</a> } +</pre> +<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body> +</html> + Propchange: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/SPFYamlTest.html ------------------------------------------------------------------------------ svn:eol-style = native Added: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/YamlTest.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/YamlTest.html?view=auto&rev=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/YamlTest.html (added) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/YamlTest.html Sun Sep 24 08:35:04 2006 @@ -0,0 +1,87 @@ +<!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>YamlTest xref</title> +<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../../../../../../apidocs/org/apache/james/jspf/YamlTest.html">View Javadoc</a></div><pre> + +<a name="1" href="#1">1</a> <em>/**<em>***************************************************************</em></em> +<a name="2" href="#2">2</a> <em> * Licensed to the Apache Software Foundation (ASF) under one *</em> +<a name="3" href="#3">3</a> <em> * or more contributor license agreements. See the NOTICE file *</em> +<a name="4" href="#4">4</a> <em> * distributed with this work for additional information *</em> +<a name="5" href="#5">5</a> <em> * regarding copyright ownership. The ASF licenses this file *</em> +<a name="6" href="#6">6</a> <em> * to you under the Apache License, Version 2.0 (the *</em> +<a name="7" href="#7">7</a> <em> * "License"); you may not use this file except in compliance *</em> +<a name="8" href="#8">8</a> <em> * with the License. You may obtain a copy of the License at *</em> +<a name="9" href="#9">9</a> <em> * *</em> +<a name="10" href="#10">10</a> <em> * <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> * *</em> +<a name="12" href="#12">12</a> <em> * Unless required by applicable law or agreed to in writing, *</em> +<a name="13" href="#13">13</a> <em> * software distributed under the License is distributed on an *</em> +<a name="14" href="#14">14</a> <em> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *</em> +<a name="15" href="#15">15</a> <em> * KIND, either express or implied. See the License for the *</em> +<a name="16" href="#16">16</a> <em> * specific language governing permissions and limitations *</em> +<a name="17" href="#17">17</a> <em> * under the License. *</em> +<a name="18" href="#18">18</a> <em> ****************************************************************/</em> +<a name="19" href="#19">19</a> +<a name="20" href="#20">20</a> <strong>package</strong> org.apache.james.jspf; +<a name="21" href="#21">21</a> +<a name="22" href="#22">22</a> <strong>import</strong> java.io.IOException; +<a name="23" href="#23">23</a> <strong>import</strong> java.util.Iterator; +<a name="24" href="#24">24</a> <strong>import</strong> java.util.List; +<a name="25" href="#25">25</a> +<a name="26" href="#26">26</a> <strong>import</strong> junit.framework.Test; +<a name="27" href="#27">27</a> <strong>import</strong> junit.framework.TestSuite; +<a name="28" href="#28">28</a> +<a name="29" href="#29">29</a> <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/james/jspf/YamlTest.html">YamlTest</a> <strong>extends</strong> <a href="../../../../org/apache/james/jspf/AbstractYamlTest.html">AbstractYamlTest</a> { +<a name="30" href="#30">30</a> +<a name="31" href="#31">31</a> <strong>private</strong> <strong>static</strong> <strong>final</strong> String YAMLFILE2 = <span class="string">"tests.yml"</span>; +<a name="32" href="#32">32</a> +<a name="33" href="#33">33</a> <em>/**<em>*</em></em> +<a name="34" href="#34">34</a> <em> * @param name</em> +<a name="35" href="#35">35</a> <em> * @throws IOException</em> +<a name="36" href="#36">36</a> <em> */</em> +<a name="37" href="#37">37</a> <strong>public</strong> <a href="../../../../org/apache/james/jspf/YamlTest.html">YamlTest</a>(String name) throws IOException { +<a name="38" href="#38">38</a> <strong>super</strong>(name); +<a name="39" href="#39">39</a> } +<a name="40" href="#40">40</a> +<a name="41" href="#41">41</a> <strong>protected</strong> <a href="../../../../org/apache/james/jspf/YamlTest.html">YamlTest</a>(SPFYamlTestSuite def, String test) { +<a name="42" href="#42">42</a> <strong>super</strong>(def, test); +<a name="43" href="#43">43</a> } +<a name="44" href="#44">44</a> +<a name="45" href="#45">45</a> <strong>protected</strong> String getFilename() { +<a name="46" href="#46">46</a> <strong>return</strong> YAMLFILE2; +<a name="47" href="#47">47</a> } +<a name="48" href="#48">48</a> +<a name="49" href="#49">49</a> <strong>public</strong> <strong>static</strong> Test suite() throws IOException { +<a name="50" href="#50">50</a> <strong>return</strong> <strong>new</strong> BasicSuite(); +<a name="51" href="#51">51</a> } +<a name="52" href="#52">52</a> +<a name="53" href="#53">53</a> <strong>protected</strong> List internalLoadTests(String filename) throws IOException { +<a name="54" href="#54">54</a> <strong>return</strong> loadTests(filename); +<a name="55" href="#55">55</a> } +<a name="56" href="#56">56</a> +<a name="57" href="#57">57</a> <strong>static</strong> <strong>class</strong> BasicSuite <strong>extends</strong> TestSuite { +<a name="58" href="#58">58</a> +<a name="59" href="#59">59</a> <strong>public</strong> BasicSuite() throws IOException { +<a name="60" href="#60">60</a> <strong>super</strong>(); +<a name="61" href="#61">61</a> List tests = loadTests(YAMLFILE2); +<a name="62" href="#62">62</a> Iterator i = tests.iterator(); +<a name="63" href="#63">63</a> <strong>while</strong> (i.hasNext()) { +<a name="64" href="#64">64</a> SPFYamlTestSuite o = (SPFYamlTestSuite) i.next(); +<a name="65" href="#65">65</a> Iterator ttt = o.getTests().keySet().iterator(); +<a name="66" href="#66">66</a> <strong>while</strong> (ttt.hasNext()) { +<a name="67" href="#67">67</a> addTest(<strong>new</strong> <a href="../../../../org/apache/james/jspf/YamlTest.html">YamlTest</a>(o,(String) ttt.next())); +<a name="68" href="#68">68</a> } +<a name="69" href="#69">69</a> } +<a name="70" href="#70">70</a> } +<a name="71" href="#71">71</a> +<a name="72" href="#72">72</a> } +<a name="73" href="#73">73</a> +<a name="74" href="#74">74</a> } +</pre> +<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body> +</html> + Propchange: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/YamlTest.html ------------------------------------------------------------------------------ svn:eol-style = native Modified: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/SPF1DataTest.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/SPF1DataTest.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/SPF1DataTest.html (original) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/SPF1DataTest.html Sun Sep 24 08:35:04 2006 @@ -28,23 +28,22 @@ <a name="19" href="#19">19</a> <a name="20" href="#20">20</a> <strong>package</strong> org.apache.james.jspf.core; <a name="21" href="#21">21</a> -<a name="22" href="#22">22</a> <strong>import</strong> org.apache.james.jspf.SPF1TestMockDNSService; -<a name="23" href="#23">23</a> <strong>import</strong> org.apache.james.jspf.exceptions.NoneException; -<a name="24" href="#24">24</a> <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException; -<a name="25" href="#25">25</a> -<a name="26" href="#26">26</a> <strong>import</strong> junit.framework.TestCase; -<a name="27" href="#27">27</a> -<a name="28" href="#28">28</a> <strong>public</strong> <strong>class</strong> SPF1DataTest <strong>extends</strong> TestCase { -<a name="29" href="#29">29</a> -<a name="30" href="#30">30</a> <em class="comment">/*</em> -<a name="31" href="#31">31</a> <em class="comment"> * Test method for 'org.apache.james.jspf.core.SPF1Data.getMacroIpAddress()'</em> -<a name="32" href="#32">32</a> <em class="comment"> */</em> -<a name="33" href="#33">33</a> <strong>public</strong> <strong>void</strong> testGetMacroIpAddress() throws PermErrorException, NoneException { -<a name="34" href="#34">34</a> SPF1Data d = <strong>new</strong> SPF1Data(<span class="string">"[EMAIL PROTECTED]"</span>,<span class="string">"helodomain.com"</span>,<span class="string">"2001:DB8::CB01"</span>, <strong>new</strong> SPF1TestMockDNSService()); -<a name="35" href="#35">35</a> assertEquals(<span class="string">"2.0.0.1.0.D.B.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.C.B.0.1"</span>,d.getMacroIpAddress()); -<a name="36" href="#36">36</a> } -<a name="37" href="#37">37</a> -<a name="38" href="#38">38</a> } +<a name="22" href="#22">22</a> <strong>import</strong> org.apache.james.jspf.exceptions.NoneException; +<a name="23" href="#23">23</a> <strong>import</strong> org.apache.james.jspf.exceptions.PermErrorException; +<a name="24" href="#24">24</a> +<a name="25" href="#25">25</a> <strong>import</strong> junit.framework.TestCase; +<a name="26" href="#26">26</a> +<a name="27" href="#27">27</a> <strong>public</strong> <strong>class</strong> SPF1DataTest <strong>extends</strong> TestCase { +<a name="28" href="#28">28</a> +<a name="29" href="#29">29</a> <em class="comment">/*</em> +<a name="30" href="#30">30</a> <em class="comment"> * Test method for 'org.apache.james.jspf.core.SPF1Data.getMacroIpAddress()'</em> +<a name="31" href="#31">31</a> <em class="comment"> */</em> +<a name="32" href="#32">32</a> <strong>public</strong> <strong>void</strong> testGetMacroIpAddress() throws PermErrorException, NoneException { +<a name="33" href="#33">33</a> SPF1Data d = <strong>new</strong> SPF1Data(<span class="string">"[EMAIL PROTECTED]"</span>,<span class="string">"helodomain.com"</span>,<span class="string">"2001:DB8::CB01"</span>, <strong>null</strong>); +<a name="34" href="#34">34</a> assertEquals(<span class="string">"2.0.0.1.0.D.B.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.C.B.0.1"</span>,d.getMacroIpAddress()); +<a name="35" href="#35">35</a> } +<a name="36" href="#36">36</a> +<a name="37" href="#37">37</a> } </pre> <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body> </html> Modified: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/package-frame.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/package-frame.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/package-frame.html (original) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/package-frame.html Sun Sep 24 08:35:04 2006 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <title>Apache James jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf.core</title> + <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf.core</title> <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" /> </head> <body> Modified: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/package-summary.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/package-summary.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/package-summary.html (original) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/core/package-summary.html Sun Sep 24 08:35:04 2006 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <title>Apache James jSPF 0.9-SNAPSHOT Reference Package $name</title> + <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package $name</title> <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" /> </head> <body> @@ -67,6 +67,6 @@ </ul> </div> <hr /> - Copyright © 2006 Apache Software Foundation. All Rights Reserved. + Copyright © 2006 The Apache Software Foundation. All Rights Reserved. </body> </html> Modified: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/macro/package-frame.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/macro/package-frame.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/macro/package-frame.html (original) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/macro/package-frame.html Sun Sep 24 08:35:04 2006 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <title>Apache James jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf.macro</title> + <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf.macro</title> <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" /> </head> <body> Modified: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/macro/package-summary.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/macro/package-summary.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/macro/package-summary.html (original) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/macro/package-summary.html Sun Sep 24 08:35:04 2006 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <title>Apache James jSPF 0.9-SNAPSHOT Reference Package $name</title> + <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package $name</title> <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" /> </head> <body> @@ -62,6 +62,6 @@ </ul> </div> <hr /> - Copyright © 2006 Apache Software Foundation. All Rights Reserved. + Copyright © 2006 The Apache Software Foundation. All Rights Reserved. </body> </html> Modified: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/package-frame.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/package-frame.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/package-frame.html (original) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/package-frame.html Sun Sep 24 08:35:04 2006 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <title>Apache James jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf</title> + <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package org.apache.james.jspf</title> <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./stylesheet.css" title="style" /> </head> <body> @@ -16,6 +16,9 @@ <ul> <li> + <a href="AbstractYamlTest.html" target="classFrame">AbstractYamlTest</a> + </li> + <li> <a href="ConsoleLogger.html" target="classFrame">ConsoleLogger</a> </li> <li> @@ -25,19 +28,19 @@ <a href="LoggingDNSService.html" target="classFrame">LoggingDNSService</a> </li> <li> - <a href="SPF1ParserTest.html" target="classFrame">SPF1ParserTest</a> + <a href="MailZoneYamlTest.html" target="classFrame">MailZoneYamlTest</a> </li> <li> - <a href="SPF1TestMZMockDNSService.html" target="classFrame">SPF1TestMZMockDNSService</a> + <a href="RFC4408YamlTest.html" target="classFrame">RFC4408YamlTest</a> </li> <li> - <a href="SPF1TestMockDNSService.html" target="classFrame">SPF1TestMockDNSService</a> + <a href="SPF1ParserTest.html" target="classFrame">SPF1ParserTest</a> </li> <li> - <a href="SPFMailZoneTest.html" target="classFrame">SPFMailZoneTest</a> + <a href="SPFYamlTest.html" target="classFrame">SPFYamlTest</a> </li> <li> - <a href="SPFTest.html" target="classFrame">SPFTest</a> + <a href="YamlTest.html" target="classFrame">YamlTest</a> </li> </ul> Modified: james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/package-summary.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/package-summary.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/package-summary.html (original) +++ james/site/trunk/www/jspf/xref-test/org/apache/james/jspf/package-summary.html Sun Sep 24 08:35:04 2006 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <title>Apache James jSPF 0.9-SNAPSHOT Reference Package $name</title> + <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference Package $name</title> <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./stylesheet.css" title="style" /> </head> <body> @@ -37,6 +37,11 @@ <tbody> <tr> <td> + <a href="AbstractYamlTest.html" target="classFrame">AbstractYamlTest</a> + </td> + </tr> + <tr> + <td> <a href="ConsoleLogger.html" target="classFrame">ConsoleLogger</a> </td> </tr> @@ -52,27 +57,27 @@ </tr> <tr> <td> - <a href="SPF1ParserTest.html" target="classFrame">SPF1ParserTest</a> + <a href="MailZoneYamlTest.html" target="classFrame">MailZoneYamlTest</a> </td> </tr> <tr> <td> - <a href="SPF1TestMZMockDNSService.html" target="classFrame">SPF1TestMZMockDNSService</a> + <a href="RFC4408YamlTest.html" target="classFrame">RFC4408YamlTest</a> </td> </tr> <tr> <td> - <a href="SPF1TestMockDNSService.html" target="classFrame">SPF1TestMockDNSService</a> + <a href="SPF1ParserTest.html" target="classFrame">SPF1ParserTest</a> </td> </tr> <tr> <td> - <a href="SPFMailZoneTest.html" target="classFrame">SPFMailZoneTest</a> + <a href="SPFYamlTest.html" target="classFrame">SPFYamlTest</a> </td> </tr> <tr> <td> - <a href="SPFTest.html" target="classFrame">SPFTest</a> + <a href="YamlTest.html" target="classFrame">YamlTest</a> </td> </tr> </tbody> @@ -97,6 +102,6 @@ </ul> </div> <hr /> - Copyright © 2006 Apache Software Foundation. All Rights Reserved. + Copyright © 2006 The Apache Software Foundation. All Rights Reserved. </body> </html> Modified: james/site/trunk/www/jspf/xref-test/overview-frame.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/overview-frame.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/overview-frame.html (original) +++ james/site/trunk/www/jspf/xref-test/overview-frame.html Sun Sep 24 08:35:04 2006 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <title>Apache James jSPF 0.9-SNAPSHOT Reference</title> + <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" /> </head> <body> Modified: james/site/trunk/www/jspf/xref-test/overview-summary.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref-test/overview-summary.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref-test/overview-summary.html (original) +++ james/site/trunk/www/jspf/xref-test/overview-summary.html Sun Sep 24 08:35:04 2006 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <title>Apache James jSPF 0.9-SNAPSHOT Reference</title> + <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" /> </head> <body> @@ -24,7 +24,7 @@ </ul> </div> - <h2>Apache James jSPF 0.9-SNAPSHOT Reference</h2> + <h2>Apache JAMES jSPF 0.9-SNAPSHOT Reference</h2> <table class="summary"> <thead> @@ -69,6 +69,6 @@ </div> <hr /> - Copyright © 2006 Apache Software Foundation. All Rights Reserved. + Copyright © 2006 The Apache Software Foundation. All Rights Reserved. </body> </html> Modified: james/site/trunk/www/jspf/xref/allclasses-frame.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/allclasses-frame.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref/allclasses-frame.html (original) +++ james/site/trunk/www/jspf/xref/allclasses-frame.html Sun Sep 24 08:35:04 2006 @@ -84,6 +84,9 @@ <a href="org/apache/james/jspf/core/Modifier.html" target="classFrame">Modifier</a> </li> <li> + <a href="org/apache/james/jspf/exceptions/NeutralException.html" target="classFrame">NeutralException</a> + </li> + <li> <a href="org/apache/james/jspf/exceptions/NoneException.html" target="classFrame">NoneException</a> </li> <li> Modified: james/site/trunk/www/jspf/xref/index.html URL: http://svn.apache.org/viewvc/james/site/trunk/www/jspf/xref/index.html?view=diff&rev=449415&r1=449414&r2=449415 ============================================================================== --- james/site/trunk/www/jspf/xref/index.html (original) +++ james/site/trunk/www/jspf/xref/index.html Sun Sep 24 08:35:04 2006 @@ -3,7 +3,7 @@ <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <title>Apache James jSPF 0.9-SNAPSHOT Reference</title> + <title>Apache JAMES jSPF 0.9-SNAPSHOT Reference</title> </head> <frameset cols="20%,80%"> <frameset rows="30%,70%">