creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pottlin...@apache.org
Subject [02/51] [partial] creadur-site git commit: Init with current RAT docs.
Date Fri, 09 Sep 2016 21:54:10 GMT
http://git-wip-us.apache.org/repos/asf/creadur-site/blob/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/license/DirectoryScanner.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/license/DirectoryScanner.html b/apache-rat-core/xref-test/org/apache/rat/analysis/license/DirectoryScanner.html
new file mode 100644
index 0000000..52cced1
--- /dev/null
+++ b/apache-rat-core/xref-test/org/apache/rat/analysis/license/DirectoryScanner.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 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>DirectoryScanner xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/rat/analysis/license/DirectoryScanner.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 or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *   <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> * </em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  
+<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> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals;
+<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> java.io.BufferedReader;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> java.io.File;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.io.IOUtils;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.analysis.IHeaderMatcher;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.api.Document;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.document.MockLocation;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.test.utils.Resources;
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">import</strong> org.junit.Assert;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/rat/analysis/license/DirectoryScanner.html">DirectoryScanner</a> {
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      @SuppressWarnings(<span class="jxr_string">"boxing"</span>) <em class="jxr_comment">// OK in test code</em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment">     * Get list of files in a directory, and scan for license matches</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment">     * @param directory the directory containing the files</em>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  <em class="jxr_javadoccomment">     * @param matcher the license matcher</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment">     * @param expected the expected result of the each scan</em>
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  <em class="jxr_javadoccomment">     * @throws Exception</em>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> testFilesInDir(String directory, IHeaderMatcher matcher, <strong class="jxr_keyword">boolean</strong> expected) <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          <strong class="jxr_keyword">final</strong> File[] resourceFiles = Resources.getResourceFiles(directory);
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          <strong class="jxr_keyword">if</strong> (resourceFiles.length == 0) {
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>              Assert.fail(<span class="jxr_string">"No files found under "</span>+directory);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          }
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <strong class="jxr_keyword">for</strong>(File f : resourceFiles) {
+<a class="jxr_linenumber" name="L49" href="#L49">49</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>(f.toString());
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>              BufferedReader br = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>              <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>                  <strong class="jxr_keyword">boolean</strong> result = false;
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>                  br = Resources.getBufferedReader(f);
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>                  String line;
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>                  <strong class="jxr_keyword">while</strong>(!result &amp;&amp; (line = br.readLine()) != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>                      result = matcher.match(subject, line);
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>                  }
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>                  assertEquals(f.toString(), expected, result);
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>              } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>                  matcher.reset();
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>                  IOUtils.closeQuietly(br);
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>              }
+<a class="jxr_linenumber" name="L63" href="#L63">63</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>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2006&#x2013;2016 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/license/GPL123LicenseTest.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/license/GPL123LicenseTest.html b/apache-rat-core/xref-test/org/apache/rat/analysis/license/GPL123LicenseTest.html
new file mode 100644
index 0000000..3dbb5f0
--- /dev/null
+++ b/apache-rat-core/xref-test/org/apache/rat/analysis/license/GPL123LicenseTest.html
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>GPL123LicenseTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/rat/analysis/license/GPL123LicenseTest.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.analysis.IHeaderMatcher;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.api.Document;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.document.MockLocation;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.report.claim.impl.xml.MockClaimReporter;
+<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.util.HashMap;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
+<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>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <em class="jxr_javadoccomment"> * Tests GPL license occurrences within comments and other characters.</em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <em class="jxr_javadoccomment"> * Works for GPL1 to GPL3.</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/rat/analysis/license/GPL123LicenseTest.html">GPL123LicenseTest</a> {
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a> reporter;
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      Document subject;
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  <em class="jxr_javadoccomment">     * To ease testing provide a map with a given license version and the string to test for.</em>
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> Map&lt;IHeaderMatcher, String&gt; licenseStringMap;
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>  
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>  <em class="jxr_javadoccomment">     * If you replace this with BeforeClass and make this method static the build fails at line 67.</em>
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      @Before
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> initLicensesUnderTest() {
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          licenseStringMap = <strong class="jxr_keyword">new</strong> HashMap&lt;IHeaderMatcher, String&gt;();
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          licenseStringMap.put(<strong class="jxr_keyword">new</strong> GPL1License(), GPL1License.FIRST_LICENSE_LINE);
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          licenseStringMap.put(<strong class="jxr_keyword">new</strong> GPL2License(), GPL2License.FIRST_LICENSE_LINE);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          licenseStringMap.put(<strong class="jxr_keyword">new</strong> GPL3License(), GPL3License.FIRST_LICENSE_LINE);
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>      }
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>  
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>      @Before
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">void</strong> initReporter() {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          <strong class="jxr_keyword">this</strong>.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="L61" href="#L61">61</a>          <strong class="jxr_keyword">this</strong>.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="L62" href="#L62">62</a>      }
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>  
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>      @Test
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNegativeMatches() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          <strong class="jxr_keyword">for</strong> (Map.Entry&lt;IHeaderMatcher, String&gt; licenseUnderTest : licenseStringMap.entrySet()) {
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>              assertFalse(licenseUnderTest.getKey().match(subject, <span class="jxr_string">"'Behold, Telemachus! (nor fear the sight,)"</span>));
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          }
+<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>      @Test
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testPositiveMatchInDocument() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>          <strong class="jxr_keyword">for</strong> (Map.Entry&lt;IHeaderMatcher, String&gt; licenseUnderTest : licenseStringMap.entrySet()) {
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">"\t"</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">"     "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>              assertTrue(licenseUnderTest.getKey().match(subject, licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" * "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" // "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" /* "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" /** "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">"    "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" ## "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" ## "</span> + licenseUnderTest.getValue() + <span class="jxr_string">" ##"</span>));
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>          }
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>      }
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>  
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2006&#x2013;2016 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/license/MITLicenseTest.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/license/MITLicenseTest.html b/apache-rat-core/xref-test/org/apache/rat/analysis/license/MITLicenseTest.html
new file mode 100644
index 0000000..ea6ab7a
--- /dev/null
+++ b/apache-rat-core/xref-test/org/apache/rat/analysis/license/MITLicenseTest.html
@@ -0,0 +1,97 @@
+<!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>MITLicenseTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/rat/analysis/license/MITLicenseTest.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.analysis.IHeaderMatcher;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.api.Document;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.document.MockLocation;
+<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> java.util.HashMap;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals;
+<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/MITLicenseTest.html">MITLicenseTest</a> {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">private</strong> Document subject;
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment">     * To ease testing provide a map with a given license version and the string to test for.</em>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> Map&lt;IHeaderMatcher, String&gt; licenseStringMap;
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  <em class="jxr_javadoccomment">     * If you replace this with BeforeClass and make this method static the build fails at line 71.</em>
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>      @Before
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> initLicensesUnderTest() {
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          licenseStringMap = <strong class="jxr_keyword">new</strong> HashMap&lt;IHeaderMatcher, String&gt;();
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          licenseStringMap.put(<strong class="jxr_keyword">new</strong> MITLicense(),
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>                  MITLicense.FIRST_LICENSE_LINE
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>                          + <span class="jxr_string">"\n"</span> + MITLicense.MIDDLE_LICENSE_LINE
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>                          + <span class="jxr_string">"\r\n * "</span> + MITLicense.AS_IS_LICENSE_LINE);
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          assertEquals(1, licenseStringMap.entrySet().size());
+<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>  
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>      @Before
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">void</strong> initReporter() {
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          <strong class="jxr_keyword">this</strong>.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>      }
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>  
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      @Test
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNegativeMatches() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          <strong class="jxr_keyword">for</strong> (Map.Entry&lt;IHeaderMatcher, String&gt; licenseUnderTest : licenseStringMap.entrySet()) {
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>              assertFalse(licenseUnderTest.getKey().match(subject, <span class="jxr_string">"'Behold, Telemachus! (nor fear the sight,)"</span>));
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          }
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>      }
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>  
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>      @Test
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testPositiveMatchInDocument() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          <strong class="jxr_keyword">for</strong> (Map.Entry&lt;IHeaderMatcher, String&gt; licenseUnderTest : licenseStringMap.entrySet()) {
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">"\t"</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">"     "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>              assertTrue(licenseUnderTest.getKey().match(subject, licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" * "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" // "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" /* "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" /** "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">"    "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" ## "</span> + licenseUnderTest.getValue()));
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>              assertTrue(licenseUnderTest.getKey().match(subject, <span class="jxr_string">" ## "</span> + licenseUnderTest.getValue() + <span class="jxr_string">" ##"</span>));
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>          }
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>      }
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>  
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2006&#x2013;2016 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/license/MockStandardLicense.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/license/MockStandardLicense.html b/apache-rat-core/xref-test/org/apache/rat/analysis/license/MockStandardLicense.html
new file mode 100644
index 0000000..7d32e55
--- /dev/null
+++ b/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;2016 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/license/OASISLicenseTest.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/license/OASISLicenseTest.html b/apache-rat-core/xref-test/org/apache/rat/analysis/license/OASISLicenseTest.html
new file mode 100644
index 0000000..013a1cf
--- /dev/null
+++ b/apache-rat-core/xref-test/org/apache/rat/analysis/license/OASISLicenseTest.html
@@ -0,0 +1,130 @@
+<!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.commons.io.IOUtils;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.api.Document;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.document.MockLocation;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.report.claim.impl.xml.MockClaimReporter;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.test.utils.Resources;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.junit.Before;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">import</strong> java.io.BufferedReader;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">import</strong> java.io.StringReader;
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  
+<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.assertFalse;
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
+<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">class</strong> <a href="../../../../../org/apache/rat/analysis/license/OASISLicenseTest.html">OASISLicenseTest</a> {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  
+<a class="jxr_linenumber" name="L37" href="#L37">37</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="L38" href="#L38">38</a>              <span class="jxr_string">"&lt;!--\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">"\n"</span> +
+<a class="jxr_linenumber" name="L41" href="#L41">41</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="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">"\n"</span> +
+<a class="jxr_linenumber" name="L44" href="#L44">44</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="L45" href="#L45">45</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>              <span class="jxr_string">"Copyright (C) OASIS Open (2004-2005). All Rights Reserved.\n"</span> +
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L48" href="#L48">48</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="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">"\n"</span> +
+<a class="jxr_linenumber" name="L51" href="#L51">51</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="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">"\n"</span> +
+<a class="jxr_linenumber" name="L54" href="#L54">54</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="L55" href="#L55">55</a>              <span class="jxr_string">"--&gt;\n"</span>;
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>  
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      <strong class="jxr_keyword">private</strong> OASISLicense license;
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>      <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a> reporter;
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>  
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      @Before
+<a class="jxr_linenumber" name="L62" href="#L62">62</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="L63" href="#L63">63</a>          license = <strong class="jxr_keyword">new</strong> OASISLicense();
+<a class="jxr_linenumber" name="L64" href="#L64">64</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="L65" href="#L65">65</a>      }
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>  
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>      @Test
+<a class="jxr_linenumber" name="L68" href="#L68">68</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="L69" href="#L69">69</a>          BufferedReader in = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>              in = <strong class="jxr_keyword">new</strong> BufferedReader(<strong class="jxr_keyword">new</strong> StringReader(LICENSE));
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              String line = in.readLine();
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>              <strong class="jxr_keyword">boolean</strong> result = false;
+<a class="jxr_linenumber" name="L74" href="#L74">74</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="L75" href="#L75">75</a>              <strong class="jxr_keyword">while</strong> (line != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>                  result = license.match(subject, line);
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>                  line = in.readLine();
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>              }
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>              assertTrue(<span class="jxr_string">"OASIS license should be matched"</span>, result);
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>              license.reset();
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>              result = license.match(subject, <span class="jxr_string">"New line"</span>);
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>              assertFalse(<span class="jxr_string">"After reset, content should build up again"</span>, result);
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>              IOUtils.closeQuietly(in);
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>          }
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>      }
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>  
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>      @Test
+<a class="jxr_linenumber" name="L89" href="#L89">89</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="L90" href="#L90">90</a>          BufferedReader in = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>          <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>              in = Resources.getBufferedResourceReader(<span class="jxr_string">"elements/Source.java"</span>);
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>              String line = in.readLine();
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>              <strong class="jxr_keyword">boolean</strong> result = false;
+<a class="jxr_linenumber" name="L95" href="#L95">95</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="L96" href="#L96">96</a>              <strong class="jxr_keyword">while</strong> (line != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>                  result = license.match(subject, line);
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>                  line = in.readLine();
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>              }
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>             assertFalse(<span class="jxr_string">"OASIS license should not be matched"</span>, result);
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>             license.reset();
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>             IOUtils.closeQuietly(in);
+<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> 
+<a class="jxr_linenumber" name="L107" href="#L107">107</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="L108" href="#L108">108</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="L109" href="#L109">109</a>         DirectoryScanner.testFilesInDir(<span class="jxr_string">"oasis/good"</span>, license, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>     }
+<a class="jxr_linenumber" name="L111" href="#L111">111</a> 
+<a class="jxr_linenumber" name="L112" href="#L112">112</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="L113" href="#L113">113</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="L114" href="#L114">114</a>         DirectoryScanner.testFilesInDir(<span class="jxr_string">"oasis/bad"</span>, license, false);
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>     }
+<a class="jxr_linenumber" name="L116" href="#L116">116</a> 
+<a class="jxr_linenumber" name="L117" href="#L117">117</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2006&#x2013;2016 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/license/W3CLicenseTest.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/license/W3CLicenseTest.html b/apache-rat-core/xref-test/org/apache/rat/analysis/license/W3CLicenseTest.html
new file mode 100644
index 0000000..5b0032b
--- /dev/null
+++ b/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>      <strong class="jxr_keyword">private</strong> W3CLicense license;
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <strong class="jxr_keyword">private</strong> <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;2016 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/creadur-site/blob/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-frame.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-frame.html b/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-frame.html
new file mode 100644
index 0000000..6cc4e2a
--- /dev/null
+++ b/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.13-SNAPSHOT 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/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-summary.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-summary.html b/apache-rat-core/xref-test/org/apache/rat/analysis/license/package-summary.html
new file mode 100644
index 0000000..835ca8d
--- /dev/null
+++ b/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.13-SNAPSHOT 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;2016 <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/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/package-frame.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/package-frame.html b/apache-rat-core/xref-test/org/apache/rat/analysis/package-frame.html
new file mode 100644
index 0000000..e149b0d
--- /dev/null
+++ b/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.13-SNAPSHOT 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/88439734/apache-rat-core/xref-test/org/apache/rat/analysis/package-summary.html
----------------------------------------------------------------------
diff --git a/apache-rat-core/xref-test/org/apache/rat/analysis/package-summary.html b/apache-rat-core/xref-test/org/apache/rat/analysis/package-summary.html
new file mode 100644
index 0000000..6ca179f
--- /dev/null
+++ b/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.13-SNAPSHOT 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;2016 <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