creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject [03/51] [partial] creadur-site git commit: Updated the whole site.
Date Fri, 09 Sep 2016 23:00:56 GMT
http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/MockStandardLicense.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/MockStandardLicense.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/MockStandardLicense.html
new file mode 100644
index 0000000..40bf2cb
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/MockStandardLicense.html
@@ -0,0 +1,45 @@
+<!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=UTF-8" />
+<title>MockStandardLicense xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/rat/analysis/license/MockStandardLicense.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information        *</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance   *</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *                                                              *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> *                                                              *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an  *</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the    *</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations      *</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_comment"> * under the License.                                           *</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <em class="jxr_comment"> */</em> 
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.rat.analysis.license;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.api.MetaData;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/rat/analysis/license/MockStandardLicense.html">MockStandardLicense</a> <strong class="jxr_keyword">extends</strong> BaseLicense {
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_comment">//    public List visitors = new ArrayList();</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>      
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/rat/analysis/license/MockStandardLicense.html">MockStandardLicense</a>() {
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>          <strong class="jxr_keyword">super</strong>(<strong class="jxr_keyword">new</strong> MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_CATEGORY, <span class="jxr_string">""</span>), 
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>                  <strong class="jxr_keyword">new</strong> MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_NAME, <span class="jxr_string">""</span>), <span class="jxr_string">""</span>);
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      }
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2006&#x2013;2014 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/OASISLicenseTest.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/OASISLicenseTest.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/OASISLicenseTest.html
new file mode 100644
index 0000000..b6bbf7a
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/OASISLicenseTest.html
@@ -0,0 +1,119 @@
+<!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=UTF-8" />
+<title>OASISLicenseTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/rat/analysis/license/OASISLicenseTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information        *</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance   *</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *                                                              *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> *                                                              *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an  *</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the    *</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations      *</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_comment"> * under the License.                                           *</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <em class="jxr_comment"> */</em> 
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.rat.analysis.license;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.api.Document;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.document.MockLocation;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.report.claim.impl.xml.MockClaimReporter;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.test.utils.Resources;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.junit.Before;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> java.io.BufferedReader;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">import</strong> java.io.StringReader;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertFalse;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/rat/analysis/license/OASISLicenseTest.html">OASISLicenseTest</a> {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String LICENSE = <span class="jxr_string">"&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot;?&gt;\n"</span> +
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>              <span class="jxr_string">"&lt;!--\n"</span> +
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>              <span class="jxr_string">"OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.\n"</span> +
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>              <span class="jxr_string">"OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director\n."</span> +
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>              <span class="jxr_string">"Copyright (C) OASIS Open (2004-2005). All Rights Reserved.\n"</span> +
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>              <span class="jxr_string">"This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.\n"</span> +
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>              <span class="jxr_string">"The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.\n"</span> +
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>              <span class="jxr_string">"This document and the information contained herein is provided on an \&quot;AS IS\&quot; basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.\n"</span> +
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>              <span class="jxr_string">"--&gt;\n"</span>;
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>      
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>      OASISLicense license;
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>      <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a> reporter;
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>  
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>      @Before
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          license = <strong class="jxr_keyword">new</strong> OASISLicense();
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          reporter = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a>();
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>      }
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>  
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>      @Test
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> match() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          BufferedReader in = <strong class="jxr_keyword">new</strong> BufferedReader(<strong class="jxr_keyword">new</strong> StringReader(LICENSE));
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          String line = in.readLine();
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          <strong class="jxr_keyword">boolean</strong> result = false;
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>          <strong class="jxr_keyword">final</strong> Document subject = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/rat/document/MockLocation.html">MockLocation</a>(<span class="jxr_string">"subject"</span>);
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>          <strong class="jxr_keyword">while</strong> (line != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>              result = license.match(subject, line);
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>              line = in.readLine();
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          }
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          assertTrue(<span class="jxr_string">"OASIS license should be matched"</span>, result);
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>          license.reset();
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          result = license.match(subject, <span class="jxr_string">"New line"</span>);
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>          assertFalse(<span class="jxr_string">"After reset, content should build up again"</span>, result);
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      }
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>  
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>      @Test
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> noMatch() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>          BufferedReader in = Resources.getBufferedResourceReader(<span class="jxr_string">"elements/Source.java"</span>);
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>          String line = in.readLine();
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>          <strong class="jxr_keyword">boolean</strong> result = false;
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          <strong class="jxr_keyword">final</strong> Document subject = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/rat/document/MockLocation.html">MockLocation</a>(<span class="jxr_string">"subject"</span>);
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>          <strong class="jxr_keyword">while</strong> (line != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>              result = license.match(subject, line);
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>              line = in.readLine();
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>          }
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>          assertFalse(<span class="jxr_string">"OASIS license should not be matched"</span>, result);
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>          license.reset();
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>      }
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>      
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>      @Test(timeout=2000) <em class="jxr_comment">// may need to be adjusted if many more files are added</em>
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> goodFiles() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>          DirectoryScanner.testFilesInDir(<span class="jxr_string">"oasis/good"</span>, license, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>      }
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>    
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>     @Test(timeout=2000) <em class="jxr_comment">// may need to be adjusted if many more files are added</em>
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> baddFiles() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>         DirectoryScanner.testFilesInDir(<span class="jxr_string">"oasis/bad"</span>, license, false);
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>     }
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>    
+<a class="jxr_linenumber" name="L106" href="#L106">106</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2006&#x2013;2014 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/W3CLicenseTest.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/W3CLicenseTest.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/W3CLicenseTest.html
new file mode 100644
index 0000000..9ef7a78
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/W3CLicenseTest.html
@@ -0,0 +1,72 @@
+<!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=UTF-8" />
+<title>W3CLicenseTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/rat/analysis/license/W3CLicenseTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information        *</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance   *</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *                                                              *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> *                                                              *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an  *</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the    *</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations      *</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_comment"> * under the License.                                           *</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <em class="jxr_comment"> */</em> 
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.rat.analysis.license;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.api.Document;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.document.MockLocation;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.report.claim.impl.xml.MockClaimReporter;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.junit.Before;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertFalse;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/rat/analysis/license/W3CLicenseTest.html">W3CLicenseTest</a> {
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String COPYRIGHT_URL 
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      = <span class="jxr_string">"http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231"</span>;
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String COPYRIGHT_URL_COMMENTED
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      = <span class="jxr_string">"# http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 #"</span>;
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String COPYRIGHT_URL_XML
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      = <span class="jxr_string">"&lt;!-- http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 --&gt;"</span>;
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      W3CLicense license;
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a> reporter;
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      @Before
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          license = <strong class="jxr_keyword">new</strong> W3CLicense();
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          reporter = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a>();
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      }
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>  
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      @Test
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> match() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">final</strong> Document subject = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/rat/document/MockLocation.html">MockLocation</a>(<span class="jxr_string">"subject"</span>);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          assertTrue(<span class="jxr_string">"Expected matcher to return license"</span>, license.match(subject, COPYRIGHT_URL));
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          assertTrue(<span class="jxr_string">"Expected matcher to return license"</span>, license.match(subject, COPYRIGHT_URL_COMMENTED));
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          assertTrue(<span class="jxr_string">"Expected matcher to return license"</span>, license.match(subject, COPYRIGHT_URL_XML));
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          assertFalse(<span class="jxr_string">"Return null if the license isn't matched"</span>, license.match(subject, <span class="jxr_string">"Bogus"</span>));
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      }
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2006&#x2013;2014 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-frame.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-frame.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-frame.html
new file mode 100644
index 0000000..253c64d
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-frame.html
@@ -0,0 +1,51 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+		<title>Apache Creadur Rat::Core 0.11 Reference Package org.apache.rat.analysis.license</title>
+		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+	</head>
+	<body>
+
+		<h3>
+        	<a href="package-summary.html" target="classFrame">org.apache.rat.analysis.license</a>
+      	</h3>
+
+      	<h3>Classes</h3>
+
+      	<ul>
+      		          	<li>
+            	<a href="ApacheSoftwareLicense20Test.html" target="classFrame">ApacheSoftwareLicense20Test</a>
+          	</li>
+          	          	<li>
+            	<a href="AppliedApacheSoftwareLicense20Test.html" target="classFrame">AppliedApacheSoftwareLicense20Test</a>
+          	</li>
+          	          	<li>
+            	<a href="CDDL1LicenseTest.html" target="classFrame">CDDL1LicenseTest</a>
+          	</li>
+          	          	<li>
+            	<a href="CopyrightHeaderTest.html" target="classFrame">CopyrightHeaderTest</a>
+          	</li>
+          	          	<li>
+            	<a href="DirectoryScanner.html" target="classFrame">DirectoryScanner</a>
+          	</li>
+          	          	<li>
+            	<a href="GPL123LicenseTest.html" target="classFrame">GPL123LicenseTest</a>
+          	</li>
+          	          	<li>
+            	<a href="MITLicenseTest.html" target="classFrame">MITLicenseTest</a>
+          	</li>
+          	          	<li>
+            	<a href="MockStandardLicense.html" target="classFrame">MockStandardLicense</a>
+          	</li>
+          	          	<li>
+            	<a href="OASISLicenseTest.html" target="classFrame">OASISLicenseTest</a>
+          	</li>
+          	          	<li>
+            	<a href="W3CLicenseTest.html" target="classFrame">W3CLicenseTest</a>
+          	</li>
+          	      	</ul>
+
+	</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-summary.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-summary.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-summary.html
new file mode 100644
index 0000000..9fdef58
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-summary.html
@@ -0,0 +1,114 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+		<title>Apache Creadur Rat::Core 0.11 Reference Package org.apache.rat.analysis.license</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.rat.analysis.license</h2>
+
+		<table class="summary">
+        	<thead>
+          		<tr>
+            		<th>Class Summary</th>
+          		</tr>
+        	</thead>
+        	<tbody>
+        		            	<tr>
+              		<td>
+                		<a href="ApacheSoftwareLicense20Test.html" target="classFrame">ApacheSoftwareLicense20Test</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="AppliedApacheSoftwareLicense20Test.html" target="classFrame">AppliedApacheSoftwareLicense20Test</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="CDDL1LicenseTest.html" target="classFrame">CDDL1LicenseTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="CopyrightHeaderTest.html" target="classFrame">CopyrightHeaderTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="DirectoryScanner.html" target="classFrame">DirectoryScanner</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="GPL123LicenseTest.html" target="classFrame">GPL123LicenseTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="MITLicenseTest.html" target="classFrame">MITLicenseTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="MockStandardLicense.html" target="classFrame">MockStandardLicense</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="OASISLicenseTest.html" target="classFrame">OASISLicenseTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="W3CLicenseTest.html" target="classFrame">W3CLicenseTest</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 />
+		<div id="footer">
+			Copyright &#169; 2006&#x2013;2014 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.
+		</div>
+	</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/package-frame.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/package-frame.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/package-frame.html
new file mode 100644
index 0000000..28bd2e6
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/package-frame.html
@@ -0,0 +1,30 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+		<title>Apache Creadur Rat::Core 0.11 Reference Package org.apache.rat.analysis</title>
+		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
+	</head>
+	<body>
+
+		<h3>
+        	<a href="package-summary.html" target="classFrame">org.apache.rat.analysis</a>
+      	</h3>
+
+      	<h3>Classes</h3>
+
+      	<ul>
+      		          	<li>
+            	<a href="AnalyserFactoryTest.html" target="classFrame">AnalyserFactoryTest</a>
+          	</li>
+          	          	<li>
+            	<a href="HeaderCheckWorkerTest.html" target="classFrame">HeaderCheckWorkerTest</a>
+          	</li>
+          	          	<li>
+            	<a href="MockLicenseMatcher.html" target="classFrame">MockLicenseMatcher</a>
+          	</li>
+          	      	</ul>
+
+	</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/package-summary.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/package-summary.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/package-summary.html
new file mode 100644
index 0000000..fd3b461
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/package-summary.html
@@ -0,0 +1,79 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+		<title>Apache Creadur Rat::Core 0.11 Reference Package org.apache.rat.analysis</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.rat.analysis</h2>
+
+		<table class="summary">
+        	<thead>
+          		<tr>
+            		<th>Class Summary</th>
+          		</tr>
+        	</thead>
+        	<tbody>
+        		            	<tr>
+              		<td>
+                		<a href="AnalyserFactoryTest.html" target="classFrame">AnalyserFactoryTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="HeaderCheckWorkerTest.html" target="classFrame">HeaderCheckWorkerTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="MockLicenseMatcher.html" target="classFrame">MockLicenseMatcher</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 />
+		<div id="footer">
+			Copyright &#169; 2006&#x2013;2014 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.
+		</div>
+	</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/MatcherMultiplexerTest.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/MatcherMultiplexerTest.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/MatcherMultiplexerTest.html
new file mode 100644
index 0000000..c73b6f2
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/MatcherMultiplexerTest.html
@@ -0,0 +1,92 @@
+<!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=UTF-8" />
+<title>MatcherMultiplexerTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/rat/analysis/util/MatcherMultiplexerTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one   *</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * or more contributor license agreements.  See the NOTICE file *</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * distributed with this work for additional information        *</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * regarding copyright ownership.  The ASF licenses this file   *</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * to you under the Apache License, Version 2.0 (the            *</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * "License"); you may not use this file except in compliance   *</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> * with the License.  You may obtain a copy of the License at   *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *                                                              *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a>                 *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> *                                                              *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing,   *</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * software distributed under the License is distributed on an  *</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * KIND, either express or implied.  See the License for the    *</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> * specific language governing permissions and limitations      *</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_comment"> * under the License.                                           *</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <em class="jxr_comment"> */</em> 
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.rat.analysis.util;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.analysis.IHeaderMatcher;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.analysis.MockLicenseMatcher;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.api.Document;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.document.MockLocation;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.report.claim.impl.xml.MockClaimReporter;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/rat/analysis/util/MatcherMultiplexerTest.html">MatcherMultiplexerTest</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String LINE_ONE = <span class="jxr_string">"Line One"</span>;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String LINE_TWO = <span class="jxr_string">"Line Two"</span>;
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a> reporter;
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <a href="../../../../../org/apache/rat/analysis/MockLicenseMatcher.html">MockLicenseMatcher</a> matcherOne;
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      <a href="../../../../../org/apache/rat/analysis/MockLicenseMatcher.html">MockLicenseMatcher</a> matcherTwo;
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      HeaderMatcherMultiplexer multiplexer;
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      @Override
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          <strong class="jxr_keyword">super</strong>.setUp();
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          matcherOne = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/rat/analysis/MockLicenseMatcher.html">MockLicenseMatcher</a>();
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          matcherTwo = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/rat/analysis/MockLicenseMatcher.html">MockLicenseMatcher</a>();
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          IHeaderMatcher[] matchers = {matcherOne, matcherTwo};
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          multiplexer = <strong class="jxr_keyword">new</strong> HeaderMatcherMultiplexer(matchers);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          reporter = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a>();
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      }
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>  
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      @Override
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> tearDown() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">super</strong>.tearDown();
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      }
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>  
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testMatcherLine() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          matcherOne.result = false;
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>          matcherTwo.result = false;
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          <strong class="jxr_keyword">final</strong> Document subject = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/rat/document/MockLocation.html">MockLocation</a>(<span class="jxr_string">"subject"</span>);
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          multiplexer.match(subject, LINE_ONE);
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          assertEquals(<span class="jxr_string">"One line"</span>, 1, matcherOne.lines.size());
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>          assertEquals(<span class="jxr_string">"Same as line passed"</span>, LINE_ONE, matcherOne.lines.get(0));
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          assertEquals(<span class="jxr_string">"One line"</span>, 1, matcherTwo.lines.size());
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          assertEquals(<span class="jxr_string">"Same as line passed"</span>, LINE_ONE, matcherTwo.lines.get(0));
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>          multiplexer.match(subject, LINE_TWO);
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          assertEquals(<span class="jxr_string">"One line"</span>, 2, matcherOne.lines.size());
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          assertEquals(<span class="jxr_string">"Same as line passed"</span>, LINE_TWO, matcherOne.lines.get(1));
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          assertEquals(<span class="jxr_string">"One line"</span>, 2, matcherTwo.lines.size());
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          assertEquals(<span class="jxr_string">"Same as line passed"</span>, LINE_TWO, matcherTwo.lines.get(1));
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>      }
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>  
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReset() {
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>          multiplexer.reset();
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>          assertEquals(<span class="jxr_string">"Reset once"</span>, 1, matcherOne.resets);
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          assertEquals(<span class="jxr_string">"Reset once"</span>, 1, matcherTwo.resets);
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          multiplexer.reset();
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          assertEquals(<span class="jxr_string">"Reset twice"</span>, 2, matcherOne.resets);
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>          assertEquals(<span class="jxr_string">"Reset twice"</span>, 2, matcherTwo.resets);
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>      }
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2006&#x2013;2014 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/package-frame.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/package-frame.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/package-frame.html
new file mode 100644
index 0000000..5d17fac
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/package-frame.html
@@ -0,0 +1,24 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+		<title>Apache Creadur Rat::Core 0.11 Reference Package org.apache.rat.analysis.util</title>
+		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
+	</head>
+	<body>
+
+		<h3>
+        	<a href="package-summary.html" target="classFrame">org.apache.rat.analysis.util</a>
+      	</h3>
+
+      	<h3>Classes</h3>
+
+      	<ul>
+      		          	<li>
+            	<a href="MatcherMultiplexerTest.html" target="classFrame">MatcherMultiplexerTest</a>
+          	</li>
+          	      	</ul>
+
+	</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/package-summary.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/package-summary.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/package-summary.html
new file mode 100644
index 0000000..c7d0354
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/util/package-summary.html
@@ -0,0 +1,69 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+	<head>
+		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+		<title>Apache Creadur Rat::Core 0.11 Reference Package org.apache.rat.analysis.util</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.rat.analysis.util</h2>
+
+		<table class="summary">
+        	<thead>
+          		<tr>
+            		<th>Class Summary</th>
+          		</tr>
+        	</thead>
+        	<tbody>
+        		            	<tr>
+              		<td>
+                		<a href="MatcherMultiplexerTest.html" target="classFrame">MatcherMultiplexerTest</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 />
+		<div id="footer">
+			Copyright &#169; 2006&#x2013;2014 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.
+		</div>
+	</body>
+</html>
\ No newline at end of file


Mime
View raw message