creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject [05/51] [partial] creadur-site git commit: Updated the whole site.
Date Fri, 09 Sep 2016 23:00:58 GMT
http://git-wip-us.apache.org/repos/asf/creadur-site/blob/2f0003c6/rat/apache-rat-core/xref-test/org/apache/rat/ReportTest.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/ReportTest.html b/rat/apache-rat-core/xref-test/org/apache/rat/ReportTest.html
new file mode 100644
index 0000000..e92e5a9
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/ReportTest.html
@@ -0,0 +1,139 @@
+<!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>ReportTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../testapidocs/org/apache/rat/ReportTest.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;
+<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.util.HeaderMatcherMultiplexer;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.test.utils.Resources;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.walker.DirectoryWalker;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<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> java.io.File;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> java.io.StringWriter;
+<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> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals;
+<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.assertTrue;
+<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">class</strong> <a href="../../../org/apache/rat/ReportTest.html">ReportTest</a> {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String HEADER =
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>              <span class="jxr_string">"\n"</span> + 
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>              <span class="jxr_string">"*****************************************************\n"</span> + 
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>              <span class="jxr_string">"Summary\n"</span> + 
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>              <span class="jxr_string">"-------\n"</span> + 
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>              <span class="jxr_string">"Generated at: "</span>;
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> String getElementsReports(String pElementsPath) {
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <strong class="jxr_keyword">return</strong>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>              <span class="jxr_string">"Notes: 2\n"</span> + 
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>              <span class="jxr_string">"Binaries: 1\n"</span> + 
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>              <span class="jxr_string">"Archives: 1\n"</span> + 
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>              <span class="jxr_string">"Standards: 6\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">"Apache Licensed: 3\n"</span> + 
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>              <span class="jxr_string">"Generated Documents: 0\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">"JavaDocs are generated and so license header is optional\n"</span> + 
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>              <span class="jxr_string">"Generated files do not required license headers\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">"2 Unknown Licenses\n"</span> + 
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>              <span class="jxr_string">"\n"</span> + 
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>              <span class="jxr_string">"*******************************\n"</span> + 
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>              <span class="jxr_string">"\n"</span> + 
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>              <span class="jxr_string">"Unapproved licenses:\n"</span> + 
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>              <span class="jxr_string">"  "</span> + pElementsPath + <span class="jxr_string">"/Source.java\n"</span> +
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>              <span class="jxr_string">"  "</span> + pElementsPath + <span class="jxr_string">"/sub/Empty.txt\n"</span> +
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>              <span class="jxr_string">"*******************************\n"</span> + 
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>              <span class="jxr_string">"\n"</span> + 
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>              <span class="jxr_string">"Archives:\n"</span> + 
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>              <span class="jxr_string">"\n"</span> + 
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>              <span class="jxr_string">" + "</span> + pElementsPath + <span class="jxr_string">"/dummy.jar\n"</span> + 
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>              <span class="jxr_string">" \n"</span> + 
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>              <span class="jxr_string">"*****************************************************\n"</span> + 
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>              <span class="jxr_string">"  Files with Apache License headers will be marked AL\n"</span> + 
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>              <span class="jxr_string">"  Binary files (which do not require AL headers) will be marked B\n"</span> + 
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>              <span class="jxr_string">"  Compressed archives will be marked A\n"</span> + 
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              <span class="jxr_string">"  Notices, licenses etc will be marked N\n"</span> + 
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>              <span class="jxr_string">"  MIT   "</span> + pElementsPath + <span class="jxr_string">"/ILoggerFactory.java\n"</span> + 
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>              <span class="jxr_string">"  B     "</span> + pElementsPath + <span class="jxr_string">"/Image.png\n"</span> + 
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>              <span class="jxr_string">"  N     "</span> + pElementsPath + <span class="jxr_string">"/LICENSE\n"</span> + 
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>              <span class="jxr_string">"  N     "</span> + pElementsPath + <span class="jxr_string">"/NOTICE\n"</span> + 
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>              <span class="jxr_string">" !????? "</span> + pElementsPath + <span class="jxr_string">"/Source.java\n"</span> + 
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>              <span class="jxr_string">"  AL    "</span> + pElementsPath + <span class="jxr_string">"/Text.txt\n"</span> + 
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>              <span class="jxr_string">"  AL    "</span> + pElementsPath + <span class="jxr_string">"/Xml.xml\n"</span> + 
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>              <span class="jxr_string">"  AL    "</span> + pElementsPath + <span class="jxr_string">"/buildr.rb\n"</span> + 
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>              <span class="jxr_string">"  A     "</span> + pElementsPath + <span class="jxr_string">"/dummy.jar\n"</span> + 
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>              <span class="jxr_string">" !????? "</span> + pElementsPath + <span class="jxr_string">"/sub/Empty.txt\n"</span> + 
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>              <span class="jxr_string">" \n"</span> + 
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>              <span class="jxr_string">"*****************************************************\n"</span> + 
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>              <span class="jxr_string">" Printing headers for files without AL header...\n"</span> + 
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>              <span class="jxr_string">" \n"</span> + 
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>              <span class="jxr_string">" \n"</span> + 
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>              <span class="jxr_string">"=======================================================================\n"</span> + 
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>              <span class="jxr_string">"=="</span> + pElementsPath + <span class="jxr_string">"/Source.java\n"</span> + 
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>              <span class="jxr_string">"=======================================================================\n"</span> + 
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>              <span class="jxr_string">"package elements;\n"</span> + 
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>              <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>              <span class="jxr_string">"/*\n"</span> +
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>              <span class="jxr_string">" * This file does intentionally *NOT* contain an AL license header,\n"</span> +
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>              <span class="jxr_string">" * because it is used in the test suite.\n"</span> +
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>              <span class="jxr_string">" */\n"</span> +
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>              <span class="jxr_string">"public class Source {\n"</span> + 
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>              <span class="jxr_string">"\n"</span> + 
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>              <span class="jxr_string">"}\n"</span> + 
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>             <span class="jxr_string">"\n"</span> + 
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>             <span class="jxr_string">"=======================================================================\n"</span> + 
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>             <span class="jxr_string">"=="</span> + pElementsPath + <span class="jxr_string">"/sub/Empty.txt\n"</span> + 
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>             <span class="jxr_string">"=======================================================================\n"</span> + 
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>             <span class="jxr_string">"\n"</span>;
+<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
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> plainReport() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>         StringWriter out = <strong class="jxr_keyword">new</strong> StringWriter();
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>         HeaderMatcherMultiplexer matcherMultiplexer = <strong class="jxr_keyword">new</strong> HeaderMatcherMultiplexer(Defaults.DEFAULT_MATCHERS);
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>         <strong class="jxr_keyword">final</strong> String elementsPath = Resources.getResourceDirectory(<span class="jxr_string">"elements/Source.java"</span>);
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>         <strong class="jxr_keyword">final</strong> ReportConfiguration configuration = <strong class="jxr_keyword">new</strong> ReportConfiguration();
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>         configuration.setHeaderMatcher(matcherMultiplexer);
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>         Report.report(out, <strong class="jxr_keyword">new</strong> DirectoryWalker(<strong class="jxr_keyword">new</strong> File(elementsPath)),
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>                 Defaults.getPlainStyleSheet(), configuration);
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>         String result = out.getBuffer().toString();
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>         <strong class="jxr_keyword">final</strong> String nl = System.getProperty(<span class="jxr_string">"line.separator"</span>);
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>         assertTrue(<span class="jxr_string">"'Generated at' is present in "</span> + result,
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>                    result.startsWith(HEADER.replaceAll(<span class="jxr_string">"\n"</span>, nl)));
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> generatedAtLineEnd = result.indexOf(nl, HEADER.length());
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>         <strong class="jxr_keyword">final</strong> String elementsReports = getElementsReports(elementsPath);
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>         assertEquals(<span class="jxr_string">"Report created"</span>,
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>                      elementsReports.replaceAll(<span class="jxr_string">"\n"</span>, nl),
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>                      result.substring(generatedAtLineEnd + nl.length()));
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>     }
+<a class="jxr_linenumber" name="L126" href="#L126">126</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/ReportTransformerTest.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/ReportTransformerTest.html b/rat/apache-rat-core/xref-test/org/apache/rat/ReportTransformerTest.html
new file mode 100644
index 0000000..7df798e
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/ReportTransformerTest.html
@@ -0,0 +1,66 @@
+<!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>ReportTransformerTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../testapidocs/org/apache/rat/ReportTransformerTest.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;
+<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.junit.Test;
+<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>  <strong class="jxr_keyword">import</strong> java.io.FileReader;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> java.io.StringReader;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> java.io.StringWriter;
+<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> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertNotNull;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../org/apache/rat/ReportTransformerTest.html">ReportTransformerTest</a> {
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SIMPLE_CONTENT =  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>          <span class="jxr_string">"&lt;?xml version='1.0'?&gt;"</span> +
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          <span class="jxr_string">"&lt;directory name='sub'&gt;"</span> +
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          <span class="jxr_string">"&lt;standard name='Empty.txt'&gt;"</span> +
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <span class="jxr_string">"&lt;license code='?????' name='UNKNOWN' version='' approved='false' generated='false'&gt;&lt;/license&gt;"</span> +
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          <span class="jxr_string">"&lt;/standard&gt;"</span> +
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          <span class="jxr_string">"&lt;directory name='.svn' restricted='true'/&gt;"</span> +
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <span class="jxr_string">"&lt;/directory&gt;"</span>;
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      @Test
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testTransform() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          StringWriter writer = <strong class="jxr_keyword">new</strong> StringWriter();
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          assertNotNull(writer);
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          StringReader in = <strong class="jxr_keyword">new</strong> StringReader(SIMPLE_CONTENT);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          ReportTransformer transformer = <strong class="jxr_keyword">new</strong> ReportTransformer(writer, 
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>                  <strong class="jxr_keyword">new</strong> BufferedReader(<strong class="jxr_keyword">new</strong> FileReader(<strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"src/main/resources/org/apache/rat/plain-rat.xsl"</span>))), 
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>                  in);
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          transformer.transform();
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>      }
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>  
+<a class="jxr_linenumber" name="L53" href="#L53">53</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/AnalyserFactoryTest.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/AnalyserFactoryTest.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/AnalyserFactoryTest.html
new file mode 100644
index 0000000..9648752
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/AnalyserFactoryTest.html
@@ -0,0 +1,124 @@
+<!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>AnalyserFactoryTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../testapidocs/org/apache/rat/analysis/AnalyserFactoryTest.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;
+<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.IDocumentAnalyser;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.document.impl.MonolithicFileDocument;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.report.claim.impl.xml.SimpleXmlClaimReporter;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.report.xml.writer.impl.base.XmlWriter;
+<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.File;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">import</strong> java.io.StringWriter;
+<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.assertEquals;
+<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/AnalyserFactoryTest.html">AnalyserFactoryTest</a> {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      StringWriter out;
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      SimpleXmlClaimReporter reporter;
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      IHeaderMatcher matcherStub;
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      @Before
+<a class="jxr_linenumber" name="L41" href="#L41">41</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="L42" href="#L42">42</a>          out = <strong class="jxr_keyword">new</strong> StringWriter();
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          XmlWriter writer = <strong class="jxr_keyword">new</strong> XmlWriter(out);
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          reporter = <strong class="jxr_keyword">new</strong> SimpleXmlClaimReporter(writer);
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          matcherStub = <strong class="jxr_keyword">new</strong> IHeaderMatcher() {
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>  
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>              <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> match(Document subject, String line) <strong class="jxr_keyword">throws</strong> RatHeaderAnalysisException {
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>                  <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>              }
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>  
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>              <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> reset() {
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>              }            
+<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>      @Test
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> standardTypeAnalyser() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          MonolithicFileDocument document = <strong class="jxr_keyword">new</strong> MonolithicFileDocument(<strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"src/test/resources/elements/Text.txt"</span>));
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          IDocumentAnalyser analyser = DefaultAnalyserFactory.createDefaultAnalyser(matcherStub);
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          analyser.analyse(document);
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>          reporter.report(document);
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          assertEquals(<span class="jxr_string">"Open standard element"</span>, <span class="jxr_string">"&lt;resource name='src/test/resources/elements/Text.txt'&gt;&lt;header-sample&gt;/*\n"</span> +
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>                  <span class="jxr_string">" * Licensed to the Apache Software Foundation (ASF) under one\n"</span> +
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>                  <span class="jxr_string">" * or more contributor license agreements.  See the NOTICE file\n"</span> +
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>                  <span class="jxr_string">" * distributed with this work for additional information\n"</span> +
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>                  <span class="jxr_string">" * regarding copyright ownership.  The ASF licenses this file\n"</span> +
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>                  <span class="jxr_string">" * to you under the Apache License, Version 2.0 (the \&quot;License\&quot;);\n"</span> +
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>                  <span class="jxr_string">" * you may not use this file except in compliance with the License.\n"</span> +
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>                  <span class="jxr_string">" * You may obtain a copy of the License at\n"</span> +
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>                  <span class="jxr_string">" *\n"</span> +
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>                  <span class="jxr_string">" *    http://www.apache.org/licenses/LICENSE-2.0\n"</span> +
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>                  <span class="jxr_string">" *\n"</span> +
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>                  <span class="jxr_string">" * Unless required by applicable law or agreed to in writing,\n"</span> +
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>                  <span class="jxr_string">" * software distributed under the License is distributed on an\n"</span> +
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>                  <span class="jxr_string">" * \&quot;AS IS\&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n"</span> +
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>                  <span class="jxr_string">" * KIND, either express or implied.  See the License for the\n"</span> +
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>                  <span class="jxr_string">" * specific language governing permissions and limitations\n"</span> +
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>                  <span class="jxr_string">" * under the License.    \n"</span> +
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>                  <span class="jxr_string">" */\n"</span> +
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>                  <span class="jxr_string">"\n"</span> +
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>                  <span class="jxr_string">"            \n"</span> +
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>                  <span class="jxr_string">"&lt;/header-sample&gt;&lt;header-type name='?????'/&gt;&lt;license-family name='?????'/&gt;&lt;type name='standard'/&gt;"</span>, out.toString());
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>      }
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>  
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>      @Test
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> noteTypeAnalyser() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          MonolithicFileDocument document = <strong class="jxr_keyword">new</strong> MonolithicFileDocument(<strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"src/test/elements/LICENSE"</span>));
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>          IDocumentAnalyser analyser = DefaultAnalyserFactory.createDefaultAnalyser(matcherStub);
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>          analyser.analyse(document);
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>          reporter.report(document);
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>          assertEquals(<span class="jxr_string">"Open note element"</span>, <span class="jxr_string">"&lt;resource name='src/test/elements/LICENSE'&gt;&lt;type name='notice'/&gt;"</span>, out.toString());
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>      }
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>  
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>      @Test
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> binaryTypeAnalyser() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>          MonolithicFileDocument document = <strong class="jxr_keyword">new</strong> MonolithicFileDocument(<strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"src/test/elements/Image.png"</span>));
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>          IDocumentAnalyser analyser = DefaultAnalyserFactory.createDefaultAnalyser(matcherStub);
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>          analyser.analyse(document);
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>          reporter.report(document);
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>         assertEquals(<span class="jxr_string">"Open binary element"</span>, <span class="jxr_string">"&lt;resource name='src/test/elements/Image.png'&gt;&lt;type name='binary'/&gt;"</span>, out.toString());
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>     }
+<a class="jxr_linenumber" name="L102" href="#L102">102</a> 
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>     @Test
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> archiveTypeAnalyser() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>         MonolithicFileDocument document = <strong class="jxr_keyword">new</strong> MonolithicFileDocument(<strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"src/test/elements/Dummy.jar"</span>));
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         IDocumentAnalyser analyser = DefaultAnalyserFactory.createDefaultAnalyser(matcherStub);
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>         analyser.analyse(document);
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>         reporter.report(document);
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>         assertEquals(<span class="jxr_string">"Open archive element"</span>, <span class="jxr_string">"&lt;resource name='src/test/elements/Dummy.jar'&gt;&lt;type name='archive'/&gt;"</span>, out.toString());
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>     }
+<a class="jxr_linenumber" name="L111" href="#L111">111</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/HeaderCheckWorkerTest.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/HeaderCheckWorkerTest.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/HeaderCheckWorkerTest.html
new file mode 100644
index 0000000..ee62ba2
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/HeaderCheckWorkerTest.html
@@ -0,0 +1,55 @@
+<!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>HeaderCheckWorkerTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../testapidocs/org/apache/rat/analysis/HeaderCheckWorkerTest.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>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">package</strong> org.apache.rat.analysis;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.analysis.license.ApacheSoftwareLicense20;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.api.Document;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.rat.document.MockLocation;
+<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.io.StringReader;
+<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> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertFalse;
+<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.assertTrue;
+<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">class</strong> <a href="../../../../org/apache/rat/analysis/HeaderCheckWorkerTest.html">HeaderCheckWorkerTest</a> {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      @Test
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> isFinished() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L36" href="#L36">36</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="L37" href="#L37">37</a>          HeaderCheckWorker worker = <strong class="jxr_keyword">new</strong> HeaderCheckWorker(<strong class="jxr_keyword">new</strong> StringReader(<span class="jxr_string">""</span>), <strong class="jxr_keyword">new</strong> ApacheSoftwareLicense20(), subject);
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          assertFalse(worker.isFinished());
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          worker.read();
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          assertTrue(worker.isFinished());
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      }
+<a class="jxr_linenumber" name="L42" href="#L42">42</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/MockLicenseMatcher.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/MockLicenseMatcher.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/MockLicenseMatcher.html
new file mode 100644
index 0000000..b6dcf93
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/MockLicenseMatcher.html
@@ -0,0 +1,54 @@
+<!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>MockLicenseMatcher xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../testapidocs/org/apache/rat/analysis/MockLicenseMatcher.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;
+<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>  
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> java.util.ArrayList;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/rat/analysis/MockLicenseMatcher.html">MockLicenseMatcher</a> <strong class="jxr_keyword">implements</strong> IHeaderMatcher {
+<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> <strong class="jxr_keyword">final</strong> List&lt;String&gt; lines = <strong class="jxr_keyword">new</strong> ArrayList&lt;String&gt;();
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> resets = 0;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> result = <strong class="jxr_keyword">true</strong>;
+<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">boolean</strong> match(Document subject, String line) {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>          lines.add(line);
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>          <strong class="jxr_keyword">return</strong> result;
+<a class="jxr_linenumber" name="L35" href="#L35">35</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">public</strong> <strong class="jxr_keyword">void</strong> reset() {
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          resets++;
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      }
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  
+<a class="jxr_linenumber" name="L41" href="#L41">41</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/generation/GeneratedLicenseNotRequiredTest.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.html
new file mode 100644
index 0000000..b5e540c
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>GeneratedLicenseNotRequiredTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.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.generation;
+<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> java.util.regex.Pattern;
+<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> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertFalse;
+<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.assertTrue;
+<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">class</strong> <a href="../../../../../org/apache/rat/analysis/generation/GeneratedLicenseNotRequiredTest.html">GeneratedLicenseNotRequiredTest</a> {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      GeneratedLicenseNotRequired license;
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a> reporter;
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      @Before
+<a class="jxr_linenumber" name="L38" href="#L38">38</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="L39" href="#L39">39</a>          Pattern[] patterns = {Pattern.compile(<span class="jxr_string">".*Generated"</span>)};
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          license = <strong class="jxr_keyword">new</strong> GeneratedLicenseNotRequired(patterns);
+<a class="jxr_linenumber" name="L41" href="#L41">41</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="L42" href="#L42">42</a>      }
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      @Test
+<a class="jxr_linenumber" name="L45" href="#L45">45</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="L46" href="#L46">46</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="L47" href="#L47">47</a>          assertFalse(<span class="jxr_string">"Does not match regex"</span>, license.match(subject, <span class="jxr_string">"Not at all"</span>));
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          assertTrue(<span class="jxr_string">"Matches regex"</span>, license.match(subject, <span class="jxr_string">"This is Generated"</span>));
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>      }
+<a class="jxr_linenumber" name="L50" href="#L50">50</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/generation/JavaDocLicenseNotRequiredTest.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/JavaDocLicenseNotRequiredTest.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/JavaDocLicenseNotRequiredTest.html
new file mode 100644
index 0000000..4080bb3
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/JavaDocLicenseNotRequiredTest.html
@@ -0,0 +1,90 @@
+<!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>JavaDocLicenseNotRequiredTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/rat/analysis/generation/JavaDocLicenseNotRequiredTest.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.generation;
+<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.File;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">import</strong> java.io.FileReader;
+<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/generation/JavaDocLicenseNotRequiredTest.html">JavaDocLicenseNotRequiredTest</a> {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      <a href="../../../../../org/apache/rat/report/claim/impl/xml/MockClaimReporter.html">MockClaimReporter</a> reporter;
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      JavaDocLicenseNotRequired license;
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      @Before
+<a class="jxr_linenumber" name="L41" href="#L41">41</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="L42" href="#L42">42</a>          license = <strong class="jxr_keyword">new</strong> JavaDocLicenseNotRequired();
+<a class="jxr_linenumber" name="L43" href="#L43">43</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="L44" href="#L44">44</a>      }
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      @Test
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> matchIndexDoc() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <strong class="jxr_keyword">boolean</strong> result = readAndMatch(<span class="jxr_string">"index.html"</span>);
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          assertTrue(<span class="jxr_string">"Is a javadoc"</span>, result);
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      }
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>      @Test
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> matchClassDoc() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          <strong class="jxr_keyword">boolean</strong> result = readAndMatch(<span class="jxr_string">"ArchiveElement.html"</span>);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          assertTrue(<span class="jxr_string">"Is a javadoc"</span>, result);
+<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>      @Test
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> matchNonJavaDoc() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          <strong class="jxr_keyword">boolean</strong> result = readAndMatch(<span class="jxr_string">"notjavadoc.html"</span>);
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>          assertFalse(<span class="jxr_string">"Not javadocs and so should return null"</span>, result);
+<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>      <strong class="jxr_keyword">boolean</strong> readAndMatch(String name) <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          File file = Resources.getResourceFile(<span class="jxr_string">"javadocs/"</span> + name);
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          <strong class="jxr_keyword">boolean</strong> result = false;
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          BufferedReader in = <strong class="jxr_keyword">new</strong> BufferedReader(<strong class="jxr_keyword">new</strong> FileReader(file));
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          String line = in.readLine();
+<a class="jxr_linenumber" name="L69" href="#L69">69</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="L70" href="#L70">70</a>          <strong class="jxr_keyword">while</strong> (line != <strong class="jxr_keyword">null</strong> &amp;&amp; !result) {
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>              result = license.match(subject, line);
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              line = in.readLine();
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>          }
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          in.close();
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          <strong class="jxr_keyword">return</strong> result;
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>      }
+<a class="jxr_linenumber" name="L77" href="#L77">77</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/generation/package-frame.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/package-frame.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/package-frame.html
new file mode 100644
index 0000000..16be061
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/package-frame.html
@@ -0,0 +1,27 @@
+
+<!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.generation</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.generation</a>
+      	</h3>
+
+      	<h3>Classes</h3>
+
+      	<ul>
+      		          	<li>
+            	<a href="GeneratedLicenseNotRequiredTest.html" target="classFrame">GeneratedLicenseNotRequiredTest</a>
+          	</li>
+          	          	<li>
+            	<a href="JavaDocLicenseNotRequiredTest.html" target="classFrame">JavaDocLicenseNotRequiredTest</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/generation/package-summary.html
----------------------------------------------------------------------
diff --git a/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/package-summary.html b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/package-summary.html
new file mode 100644
index 0000000..8b97a44
--- /dev/null
+++ b/rat/apache-rat-core/xref-test/org/apache/rat/analysis/generation/package-summary.html
@@ -0,0 +1,74 @@
+
+<!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.generation</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.generation</h2>
+
+		<table class="summary">
+        	<thead>
+          		<tr>
+            		<th>Class Summary</th>
+          		</tr>
+        	</thead>
+        	<tbody>
+        		            	<tr>
+              		<td>
+                		<a href="GeneratedLicenseNotRequiredTest.html" target="classFrame">GeneratedLicenseNotRequiredTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="JavaDocLicenseNotRequiredTest.html" target="classFrame">JavaDocLicenseNotRequiredTest</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