Modified:
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojoTest.html
==============================================================================
---
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojoTest.html
(original)
+++
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojoTest.html
Sat Apr 20 14:51:39 2024
@@ -24,135 +24,133 @@
<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> <strong
class="jxr_keyword">package</strong> org.apache.commons.release.plugin.mojos;
<a class="jxr_linenumber" name="L18" href="#L18">18</a>
-<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong
class="jxr_keyword">import</strong> org.apache.maven.plugin.testing.MojoRule;
-<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong
class="jxr_keyword">import</strong> org.codehaus.plexus.util.FileUtils;
-<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong
class="jxr_keyword">import</strong> org.junit.Before;
-<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong
class="jxr_keyword">import</strong> org.junit.Rule;
-<a class="jxr_linenumber" name="L23" href="#L23">23</a> <strong
class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong
class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong>
junit.framework.TestCase.assertTrue;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong
class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong>
org.junit.Assert.assertFalse;
+<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.assertNotNull;
+<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.File;
<a class="jxr_linenumber" name="L24" href="#L24">24</a>
-<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong
class="jxr_keyword">import</strong> java.io.File;
-<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>
junit.framework.TestCase.assertTrue;
-<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.assertFalse;
-<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="L25" href="#L25">25</a> <strong
class="jxr_keyword">import</strong> org.apache.maven.plugin.testing.MojoRule;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong
class="jxr_keyword">import</strong> org.codehaus.plexus.util.FileUtils;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong
class="jxr_keyword">import</strong> org.junit.Before;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong
class="jxr_keyword">import</strong> org.junit.Rule;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong
class="jxr_keyword">import</strong> org.junit.Test;
<a class="jxr_linenumber" name="L30" href="#L30">30</a>
<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em
class="jxr_javadoccomment">/**</em>
<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em
class="jxr_javadoccomment"> * Unit tests for {@link
CommonsDistributionStagingMojo}.</em>
-<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em
class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="L34" href="#L34">34</a> <em
class="jxr_javadoccomment"> * @since 1.0.</em>
-<a class="jxr_linenumber" name="L35" href="#L35">35</a> <em
class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong>
<a name="CommonsDistributionStagingMojoTest"
href="../../../../../../org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojoTest.html#CommonsDistributionStagingMojoTest">CommonsDistributionStagingMojoTest</a>
{
+<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong>
<a name="CommonsDistributionStagingMojoTest"
href="../../../../../../org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojoTest.html#CommonsDistributionStagingMojoTest">CommonsDistributionStagingMojoTest</a>
{
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong
class="jxr_keyword">private</strong> <strong
class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH = <span
class="jxr_string">"target/testing-commons-release-plugin"</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">private</strong> <strong
class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH = <span
class="jxr_string">"target/testing-commons-release-plugin"</span>;
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>
-<a class="jxr_linenumber" name="L40" href="#L40">40</a> @Rule
-<a class="jxr_linenumber" name="L41" href="#L41">41</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong>
MojoRule rule = <strong class="jxr_keyword">new</strong> MojoRule() {
-<a class="jxr_linenumber" name="L42" href="#L42">42</a> @Override
-<a class="jxr_linenumber" name="L43" href="#L43">43</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> before() <strong
class="jxr_keyword">throws</strong> Throwable {
-<a class="jxr_linenumber" name="L44" href="#L44">44</a> <em
class="jxr_comment">// noop</em>
-<a class="jxr_linenumber" name="L45" href="#L45">45</a> }
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>
-<a class="jxr_linenumber" name="L47" href="#L47">47</a> @Override
-<a class="jxr_linenumber" name="L48" href="#L48">48</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> after() {
-<a class="jxr_linenumber" name="L49" href="#L49">49</a> <em
class="jxr_comment">// noop</em>
-<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="L38" href="#L38">38</a> @Rule
+<a class="jxr_linenumber" name="L39" href="#L39">39</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong>
MojoRule rule = <strong class="jxr_keyword">new</strong> MojoRule() {
+<a class="jxr_linenumber" name="L40" href="#L40">40</a> @Override
+<a class="jxr_linenumber" name="L41" href="#L41">41</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> before() <strong
class="jxr_keyword">throws</strong> Throwable {
+<a class="jxr_linenumber" name="L42" href="#L42">42</a> <em
class="jxr_comment">// noop</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a> }
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>
+<a class="jxr_linenumber" name="L45" href="#L45">45</a> @Override
+<a class="jxr_linenumber" name="L46" href="#L46">46</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> after() {
+<a class="jxr_linenumber" name="L47" href="#L47">47</a> <em
class="jxr_comment">// noop</em>
+<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>
+<a class="jxr_linenumber" name="L51" href="#L51">51</a> <strong
class="jxr_keyword">private</strong> CommonsDistributionDetachmentMojo
detachmentMojo;
<a class="jxr_linenumber" name="L52" href="#L52">52</a>
-<a class="jxr_linenumber" name="L53" href="#L53">53</a> <strong
class="jxr_keyword">private</strong> CommonsDistributionDetachmentMojo
detachmentMojo;
+<a class="jxr_linenumber" name="L53" href="#L53">53</a> <strong
class="jxr_keyword">private</strong> CommonsDistributionStagingMojo mojoForTest;
<a class="jxr_linenumber" name="L54" href="#L54">54</a>
-<a class="jxr_linenumber" name="L55" href="#L55">55</a> <strong
class="jxr_keyword">private</strong> CommonsDistributionStagingMojo mojoForTest;
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>
-<a class="jxr_linenumber" name="L57" href="#L57">57</a> @Before
-<a class="jxr_linenumber" name="L58" href="#L58">58</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="L59" href="#L59">59</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
-<a class="jxr_linenumber" name="L60" href="#L60">60</a> <strong
class="jxr_keyword">if</strong> (testingDirectory.exists()) {
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>
FileUtils.deleteDirectory(testingDirectory);
-<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> @Test
-<a class="jxr_linenumber" name="L66" href="#L66">66</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testSuccess() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L67" href="#L67">67</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/stage-distributions/stage-distributions.xml"</span>);
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>
assertNotNull(testPom);
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>
assertTrue(testPom.exists());
-<a class="jxr_linenumber" name="L70" href="#L70">70</a> <strong
class="jxr_keyword">final</strong> File detachmentPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/detach-distributions/detach-distributions.xml"</span>);
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>
assertNotNull(detachmentPom);
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>
assertTrue(detachmentPom.exists());
-<a class="jxr_linenumber" name="L73" href="#L73">73</a> mojoForTest =
(CommonsDistributionStagingMojo) rule.lookupMojo(<span
class="jxr_string">"stage-distributions"</span>, testPom);
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>
detachmentMojo = (CommonsDistributionDetachmentMojo) rule.lookupMojo(<span
class="jxr_string">"detach-distributions"</span>, detachmentPom);
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>
detachmentMojo.execute();
-<a class="jxr_linenumber" name="L76" href="#L76">76</a> <strong
class="jxr_keyword">final</strong> File releaseNotesBasedir = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/stage-distributions/"</span>);
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>
mojoForTest.setBaseDir(releaseNotesBasedir);
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>
mojoForTest.execute();
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>
assertRequisiteFilesExist();
-<a class="jxr_linenumber" name="L80" href="#L80">80</a> }
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>
-<a class="jxr_linenumber" name="L82" href="#L82">82</a> @Test
-<a class="jxr_linenumber" name="L83" href="#L83">83</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testDisabled() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L84" href="#L84">84</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/stage-distributions/stage-distributions-disabled.xml"</span>);
-<a class="jxr_linenumber" name="L85" href="#L85">85</a>
assertNotNull(testPom);
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>
assertTrue(testPom.exists());
-<a class="jxr_linenumber" name="L87" href="#L87">87</a> mojoForTest =
(CommonsDistributionStagingMojo) rule.lookupMojo(<span
class="jxr_string">"stage-distributions"</span>, testPom);
-<a class="jxr_linenumber" name="L88" href="#L88">88</a>
mojoForTest.execute();
-<a class="jxr_linenumber" name="L89" href="#L89">89</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
-<a class="jxr_linenumber" name="L90" href="#L90">90</a>
assertFalse(testingDirectory.exists());
-<a class="jxr_linenumber" name="L91" href="#L91">91</a> }
-<a class="jxr_linenumber" name="L92" href="#L92">92</a>
-<a class="jxr_linenumber" name="L93" href="#L93">93</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
assertRequisiteFilesExist() {
-<a class="jxr_linenumber" name="L94" href="#L94">94</a> <strong
class="jxr_keyword">final</strong> File targetScmDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1"</span>);
-<a class="jxr_linenumber" name="L95" href="#L95">95</a> <strong
class="jxr_keyword">final</strong> File releaseNotes = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/RELEASE-NOTES.txt"</span>);
-<a class="jxr_linenumber" name="L96" href="#L96">96</a> <strong
class="jxr_keyword">final</strong> File readmeHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/README.html"</span>);
-<a class="jxr_linenumber" name="L97" href="#L97">97</a> <strong
class="jxr_keyword">final</strong> File headerHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/HEADER.html"</span>);
-<a class="jxr_linenumber" name="L98" href="#L98">98</a> <strong
class="jxr_keyword">final</strong> File signatureValidatorScript = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/signature-validator.sh"</span>);
-<a class="jxr_linenumber" name="L99" href="#L99">99</a> <strong
class="jxr_keyword">final</strong> File binariesReadmeHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/README.html"</span>);
-<a class="jxr_linenumber" name="L100" href="#L100">100</a> <strong
class="jxr_keyword">final</strong> File binariesHeaderHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/HEADER.html"</span>);
-<a class="jxr_linenumber" name="L101" href="#L101">101</a> <strong
class="jxr_keyword">final</strong> File binTar = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.tar.gz"</span>);
-<a class="jxr_linenumber" name="L102" href="#L102">102</a> <strong
class="jxr_keyword">final</strong> File binTarASC = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.tar.gz.asc"</span>);
-<a class="jxr_linenumber" name="L103" href="#L103">103</a> <strong
class="jxr_keyword">final</strong> File binTarSha512 = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.tar.gz.sha512"</span>);
-<a class="jxr_linenumber" name="L104" href="#L104">104</a> <strong
class="jxr_keyword">final</strong> File binZip = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.zip"</span>);
-<a class="jxr_linenumber" name="L105" href="#L105">105</a> <strong
class="jxr_keyword">final</strong> File binZipASC = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.zip.asc"</span>);
-<a class="jxr_linenumber" name="L106" href="#L106">106</a> <strong
class="jxr_keyword">final</strong> File binZipSha512 = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.zip.sha512"</span>);
-<a class="jxr_linenumber" name="L107" href="#L107">107</a> <strong
class="jxr_keyword">final</strong> File sourcesReadmeHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/README.html"</span>);
-<a class="jxr_linenumber" name="L108" href="#L108">108</a> <strong
class="jxr_keyword">final</strong> File sourceHeaderHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/HEADER.html"</span>);
-<a class="jxr_linenumber" name="L109" href="#L109">109</a> <strong
class="jxr_keyword">final</strong> File srcTar = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.tar.gz"</span>);
-<a class="jxr_linenumber" name="L110" href="#L110">110</a> <strong
class="jxr_keyword">final</strong> File srcTarASC = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.tar.gz.asc"</span>);
-<a class="jxr_linenumber" name="L111" href="#L111">111</a> <strong
class="jxr_keyword">final</strong> File srcTarSha512 = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.tar.gz.sha512"</span>);
-<a class="jxr_linenumber" name="L112" href="#L112">112</a> <strong
class="jxr_keyword">final</strong> File srcZip = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.zip"</span>);
-<a class="jxr_linenumber" name="L113" href="#L113">113</a> <strong
class="jxr_keyword">final</strong> File srcZipASC = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.zip.asc"</span>);
-<a class="jxr_linenumber" name="L114" href="#L114">114</a> <strong
class="jxr_keyword">final</strong> File srcZipSha512 = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.zip.sha512"</span>);
-<a class="jxr_linenumber" name="L115" href="#L115">115</a> <strong
class="jxr_keyword">final</strong> File site = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/site"</span>);
-<a class="jxr_linenumber" name="L116" href="#L116">116</a> <strong
class="jxr_keyword">final</strong> File siteIndexHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/site/index.html"</span>);
-<a class="jxr_linenumber" name="L117" href="#L117">117</a> <strong
class="jxr_keyword">final</strong> File siteSubdirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/site/subdirectory"</span>);
-<a class="jxr_linenumber" name="L118" href="#L118">118</a> <strong
class="jxr_keyword">final</strong> File siteSubdirectoryIndexHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/site/subdirectory/index.html"</span>);
-<a class="jxr_linenumber" name="L119" href="#L119">119</a>
assertTrue(targetScmDirectory.exists());
-<a class="jxr_linenumber" name="L120" href="#L120">120</a>
assertTrue(releaseNotes.exists());
-<a class="jxr_linenumber" name="L121" href="#L121">121</a>
assertTrue(readmeHtml.exists());
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>
assertTrue(headerHtml.exists());
-<a class="jxr_linenumber" name="L123" href="#L123">123</a>
assertTrue(signatureValidatorScript.exists());
-<a class="jxr_linenumber" name="L124" href="#L124">124</a>
assertTrue(binariesReadmeHtml.exists());
-<a class="jxr_linenumber" name="L125" href="#L125">125</a>
assertTrue(binariesHeaderHtml.exists());
-<a class="jxr_linenumber" name="L126" href="#L126">126</a>
assertTrue(binTar.exists());
-<a class="jxr_linenumber" name="L127" href="#L127">127</a>
assertTrue(binTarASC.exists());
-<a class="jxr_linenumber" name="L128" href="#L128">128</a>
assertTrue(binTarSha512.exists());
-<a class="jxr_linenumber" name="L129" href="#L129">129</a>
assertTrue(binZip.exists());
-<a class="jxr_linenumber" name="L130" href="#L130">130</a>
assertTrue(binZipASC.exists());
-<a class="jxr_linenumber" name="L131" href="#L131">131</a>
assertTrue(binZipSha512.exists());
-<a class="jxr_linenumber" name="L132" href="#L132">132</a>
assertTrue(sourcesReadmeHtml.exists());
-<a class="jxr_linenumber" name="L133" href="#L133">133</a>
assertTrue(sourceHeaderHtml.exists());
-<a class="jxr_linenumber" name="L134" href="#L134">134</a>
assertTrue(srcTar.exists());
-<a class="jxr_linenumber" name="L135" href="#L135">135</a>
assertTrue(srcTarASC.exists());
-<a class="jxr_linenumber" name="L136" href="#L136">136</a>
assertTrue(srcTarSha512.exists());
-<a class="jxr_linenumber" name="L137" href="#L137">137</a>
assertTrue(srcZip.exists());
-<a class="jxr_linenumber" name="L138" href="#L138">138</a>
assertTrue(srcZipASC.exists());
-<a class="jxr_linenumber" name="L139" href="#L139">139</a>
assertTrue(srcZipSha512.exists());
-<a class="jxr_linenumber" name="L140" href="#L140">140</a>
assertTrue(site.exists());
-<a class="jxr_linenumber" name="L141" href="#L141">141</a>
assertTrue(siteIndexHtml.exists());
-<a class="jxr_linenumber" name="L142" href="#L142">142</a>
assertTrue(siteSubdirectory.exists());
-<a class="jxr_linenumber" name="L143" href="#L143">143</a>
assertTrue(siteSubdirectoryIndexHtml.exists());
-<a class="jxr_linenumber" name="L144" href="#L144">144</a> }
-<a class="jxr_linenumber" name="L145" href="#L145">145</a> }
+<a class="jxr_linenumber" name="L55" href="#L55">55</a> @Before
+<a class="jxr_linenumber" name="L56" href="#L56">56</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="L57" href="#L57">57</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
+<a class="jxr_linenumber" name="L58" href="#L58">58</a> <strong
class="jxr_keyword">if</strong> (testingDirectory.exists()) {
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>
FileUtils.deleteDirectory(testingDirectory);
+<a class="jxr_linenumber" name="L60" href="#L60">60</a> }
+<a class="jxr_linenumber" name="L61" href="#L61">61</a> }
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>
+<a class="jxr_linenumber" name="L63" href="#L63">63</a> @Test
+<a class="jxr_linenumber" name="L64" href="#L64">64</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testSuccess() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L65" href="#L65">65</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/stage-distributions/stage-distributions.xml"</span>);
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>
assertNotNull(testPom);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>
assertTrue(testPom.exists());
+<a class="jxr_linenumber" name="L68" href="#L68">68</a> <strong
class="jxr_keyword">final</strong> File detachmentPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/detach-distributions/detach-distributions.xml"</span>);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>
assertNotNull(detachmentPom);
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>
assertTrue(detachmentPom.exists());
+<a class="jxr_linenumber" name="L71" href="#L71">71</a> mojoForTest =
(CommonsDistributionStagingMojo) rule.lookupMojo(<span
class="jxr_string">"stage-distributions"</span>, testPom);
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>
detachmentMojo = (CommonsDistributionDetachmentMojo) rule.lookupMojo(<span
class="jxr_string">"detach-distributions"</span>, detachmentPom);
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>
detachmentMojo.execute();
+<a class="jxr_linenumber" name="L74" href="#L74">74</a> <strong
class="jxr_keyword">final</strong> File releaseNotesBasedir = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/stage-distributions/"</span>);
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>
mojoForTest.setBaseDir(releaseNotesBasedir);
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>
mojoForTest.execute();
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>
assertRequisiteFilesExist();
+<a class="jxr_linenumber" name="L78" href="#L78">78</a> }
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>
+<a class="jxr_linenumber" name="L80" href="#L80">80</a> @Test
+<a class="jxr_linenumber" name="L81" href="#L81">81</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testDisabled() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L82" href="#L82">82</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/stage-distributions/stage-distributions-disabled.xml"</span>);
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>
assertNotNull(testPom);
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>
assertTrue(testPom.exists());
+<a class="jxr_linenumber" name="L85" href="#L85">85</a> mojoForTest =
(CommonsDistributionStagingMojo) rule.lookupMojo(<span
class="jxr_string">"stage-distributions"</span>, testPom);
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>
mojoForTest.execute();
+<a class="jxr_linenumber" name="L87" href="#L87">87</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>
assertFalse(testingDirectory.exists());
+<a class="jxr_linenumber" name="L89" href="#L89">89</a> }
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>
+<a class="jxr_linenumber" name="L91" href="#L91">91</a> <strong
class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong>
assertRequisiteFilesExist() {
+<a class="jxr_linenumber" name="L92" href="#L92">92</a> <strong
class="jxr_keyword">final</strong> File targetScmDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1"</span>);
+<a class="jxr_linenumber" name="L93" href="#L93">93</a> <strong
class="jxr_keyword">final</strong> File releaseNotes = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/RELEASE-NOTES.txt"</span>);
+<a class="jxr_linenumber" name="L94" href="#L94">94</a> <strong
class="jxr_keyword">final</strong> File readmeHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/README.html"</span>);
+<a class="jxr_linenumber" name="L95" href="#L95">95</a> <strong
class="jxr_keyword">final</strong> File headerHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/HEADER.html"</span>);
+<a class="jxr_linenumber" name="L96" href="#L96">96</a> <strong
class="jxr_keyword">final</strong> File signatureValidatorScript = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/signature-validator.sh"</span>);
+<a class="jxr_linenumber" name="L97" href="#L97">97</a> <strong
class="jxr_keyword">final</strong> File binariesReadmeHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/README.html"</span>);
+<a class="jxr_linenumber" name="L98" href="#L98">98</a> <strong
class="jxr_keyword">final</strong> File binariesHeaderHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/HEADER.html"</span>);
+<a class="jxr_linenumber" name="L99" href="#L99">99</a> <strong
class="jxr_keyword">final</strong> File binTar = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.tar.gz"</span>);
+<a class="jxr_linenumber" name="L100" href="#L100">100</a> <strong
class="jxr_keyword">final</strong> File binTarASC = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.tar.gz.asc"</span>);
+<a class="jxr_linenumber" name="L101" href="#L101">101</a> <strong
class="jxr_keyword">final</strong> File binTarSha512 = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.tar.gz.sha512"</span>);
+<a class="jxr_linenumber" name="L102" href="#L102">102</a> <strong
class="jxr_keyword">final</strong> File binZip = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.zip"</span>);
+<a class="jxr_linenumber" name="L103" href="#L103">103</a> <strong
class="jxr_keyword">final</strong> File binZipASC = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.zip.asc"</span>);
+<a class="jxr_linenumber" name="L104" href="#L104">104</a> <strong
class="jxr_keyword">final</strong> File binZipSha512 = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/commons-text-1.4-bin.zip.sha512"</span>);
+<a class="jxr_linenumber" name="L105" href="#L105">105</a> <strong
class="jxr_keyword">final</strong> File sourcesReadmeHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/README.html"</span>);
+<a class="jxr_linenumber" name="L106" href="#L106">106</a> <strong
class="jxr_keyword">final</strong> File sourceHeaderHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/binaries/HEADER.html"</span>);
+<a class="jxr_linenumber" name="L107" href="#L107">107</a> <strong
class="jxr_keyword">final</strong> File srcTar = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.tar.gz"</span>);
+<a class="jxr_linenumber" name="L108" href="#L108">108</a> <strong
class="jxr_keyword">final</strong> File srcTarASC = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.tar.gz.asc"</span>);
+<a class="jxr_linenumber" name="L109" href="#L109">109</a> <strong
class="jxr_keyword">final</strong> File srcTarSha512 = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.tar.gz.sha512"</span>);
+<a class="jxr_linenumber" name="L110" href="#L110">110</a> <strong
class="jxr_keyword">final</strong> File srcZip = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.zip"</span>);
+<a class="jxr_linenumber" name="L111" href="#L111">111</a> <strong
class="jxr_keyword">final</strong> File srcZipASC = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.zip.asc"</span>);
+<a class="jxr_linenumber" name="L112" href="#L112">112</a> <strong
class="jxr_keyword">final</strong> File srcZipSha512 = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/source/commons-text-1.4-src.zip.sha512"</span>);
+<a class="jxr_linenumber" name="L113" href="#L113">113</a> <strong
class="jxr_keyword">final</strong> File site = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/site"</span>);
+<a class="jxr_linenumber" name="L114" href="#L114">114</a> <strong
class="jxr_keyword">final</strong> File siteIndexHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/site/index.html"</span>);
+<a class="jxr_linenumber" name="L115" href="#L115">115</a> <strong
class="jxr_keyword">final</strong> File siteSubdirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/site/subdirectory"</span>);
+<a class="jxr_linenumber" name="L116" href="#L116">116</a> <strong
class="jxr_keyword">final</strong> File siteSubdirectoryIndexHtml = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span
class="jxr_string">"/scm/1.0-SNAPSHOT-RC1/site/subdirectory/index.html"</span>);
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>
assertTrue(targetScmDirectory.exists());
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>
assertTrue(releaseNotes.exists());
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>
assertTrue(readmeHtml.exists());
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>
assertTrue(headerHtml.exists());
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>
assertTrue(signatureValidatorScript.exists());
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>
assertTrue(binariesReadmeHtml.exists());
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>
assertTrue(binariesHeaderHtml.exists());
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>
assertTrue(binTar.exists());
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>
assertTrue(binTarASC.exists());
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>
assertTrue(binTarSha512.exists());
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>
assertTrue(binZip.exists());
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>
assertTrue(binZipASC.exists());
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>
assertTrue(binZipSha512.exists());
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>
assertTrue(sourcesReadmeHtml.exists());
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>
assertTrue(sourceHeaderHtml.exists());
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>
assertTrue(srcTar.exists());
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>
assertTrue(srcTarASC.exists());
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>
assertTrue(srcTarSha512.exists());
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>
assertTrue(srcZip.exists());
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>
assertTrue(srcZipASC.exists());
+<a class="jxr_linenumber" name="L137" href="#L137">137</a>
assertTrue(srcZipSha512.exists());
+<a class="jxr_linenumber" name="L138" href="#L138">138</a>
assertTrue(site.exists());
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>
assertTrue(siteIndexHtml.exists());
+<a class="jxr_linenumber" name="L140" href="#L140">140</a>
assertTrue(siteSubdirectory.exists());
+<a class="jxr_linenumber" name="L141" href="#L141">141</a>
assertTrue(siteSubdirectoryIndexHtml.exists());
+<a class="jxr_linenumber" name="L142" href="#L142">142</a> }
+<a class="jxr_linenumber" name="L143" href="#L143">143</a> }
</pre>
<hr/>
-<div id="footer">Copyright © 2018–2023 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
+<div id="footer">Copyright © 2018–2024 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
</body>
</html>
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojoTest.html
==============================================================================
---
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojoTest.html
(original)
+++
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojoTest.html
Sat Apr 20 14:51:39 2024
@@ -24,94 +24,92 @@
<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> <strong
class="jxr_keyword">package</strong> org.apache.commons.release.plugin.mojos;
<a class="jxr_linenumber" name="L18" href="#L18">18</a>
-<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong
class="jxr_keyword">import</strong>
org.apache.maven.plugin.MojoFailureException;
-<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong
class="jxr_keyword">import</strong> org.apache.maven.plugin.testing.MojoRule;
-<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong
class="jxr_keyword">import</strong> org.codehaus.plexus.util.FileUtils;
-<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong
class="jxr_keyword">import</strong> org.junit.Before;
-<a class="jxr_linenumber" name="L23" href="#L23">23</a> <strong
class="jxr_keyword">import</strong> org.junit.Rule;
-<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong
class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong
class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong>
junit.framework.TestCase.assertTrue;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong
class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong>
org.junit.Assert.assertEquals;
+<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.assertFalse;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong
class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong>
org.junit.Assert.assertNotNull;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>
+<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> java.io.File;
-<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> <strong class="jxr_keyword">static</strong>
junit.framework.TestCase.assertTrue;
-<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.assertFalse;
-<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.assertNotNull;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong
class="jxr_keyword">import</strong>
org.apache.maven.plugin.MojoFailureException;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong
class="jxr_keyword">import</strong> org.apache.maven.plugin.testing.MojoRule;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong
class="jxr_keyword">import</strong> org.codehaus.plexus.util.FileUtils;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong
class="jxr_keyword">import</strong> org.junit.Before;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong
class="jxr_keyword">import</strong> org.junit.Rule;
+<a class="jxr_linenumber" name="L31" href="#L31">31</a> <strong
class="jxr_keyword">import</strong> org.junit.Test;
<a class="jxr_linenumber" name="L32" href="#L32">32</a>
<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em
class="jxr_javadoccomment">/**</em>
<a class="jxr_linenumber" name="L34" href="#L34">34</a> <em
class="jxr_javadoccomment"> * Unit tests for {@link
CommonsSiteCompressionMojo}.</em>
-<a class="jxr_linenumber" name="L35" href="#L35">35</a> <em
class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="L36" href="#L36">36</a> <em
class="jxr_javadoccomment"> * @since 1.0</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>
@SuppressWarnings(<span class="jxr_string">"deprecation"</span>) <em
class="jxr_comment">// testing a deprecated class</em>
-<a class="jxr_linenumber" name="L39" href="#L39">39</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong>
<a name="CommonsSiteCompressionMojoTest"
href="../../../../../../org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojoTest.html#CommonsSiteCompressionMojoTest">CommonsSiteCompressionMojoTest</a>
{
+<a class="jxr_linenumber" name="L35" href="#L35">35</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>
@SuppressWarnings(<span class="jxr_string">"deprecation"</span>) <em
class="jxr_comment">// testing a deprecated class</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong>
<a name="CommonsSiteCompressionMojoTest"
href="../../../../../../org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojoTest.html#CommonsSiteCompressionMojoTest">CommonsSiteCompressionMojoTest</a>
{
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a> <strong
class="jxr_keyword">private</strong> <strong
class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH = <span
class="jxr_string">"target/testing-commons-release-plugin"</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> <strong
class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH = <span
class="jxr_string">"target/testing-commons-release-plugin"</span>;
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>
-<a class="jxr_linenumber" name="L43" href="#L43">43</a> @Rule
-<a class="jxr_linenumber" name="L44" href="#L44">44</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong>
MojoRule rule = <strong class="jxr_keyword">new</strong> MojoRule() {
-<a class="jxr_linenumber" name="L45" href="#L45">45</a> @Override
-<a class="jxr_linenumber" name="L46" href="#L46">46</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> before() <strong
class="jxr_keyword">throws</strong> Throwable {
-<a class="jxr_linenumber" name="L47" href="#L47">47</a> <em
class="jxr_comment">// noop</em>
-<a class="jxr_linenumber" name="L48" href="#L48">48</a> }
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>
-<a class="jxr_linenumber" name="L50" href="#L50">50</a> @Override
-<a class="jxr_linenumber" name="L51" href="#L51">51</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> after() {
-<a class="jxr_linenumber" name="L52" href="#L52">52</a> <em
class="jxr_comment">// noop</em>
-<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="L41" href="#L41">41</a> @Rule
+<a class="jxr_linenumber" name="L42" href="#L42">42</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong>
MojoRule rule = <strong class="jxr_keyword">new</strong> MojoRule() {
+<a class="jxr_linenumber" name="L43" href="#L43">43</a> @Override
+<a class="jxr_linenumber" name="L44" href="#L44">44</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> before() <strong
class="jxr_keyword">throws</strong> Throwable {
+<a class="jxr_linenumber" name="L45" href="#L45">45</a> <em
class="jxr_comment">// noop</em>
+<a class="jxr_linenumber" name="L46" href="#L46">46</a> }
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>
+<a class="jxr_linenumber" name="L48" href="#L48">48</a> @Override
+<a class="jxr_linenumber" name="L49" href="#L49">49</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> after() {
+<a class="jxr_linenumber" name="L50" href="#L50">50</a> <em
class="jxr_comment">// noop</em>
+<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>
+<a class="jxr_linenumber" name="L54" href="#L54">54</a> <strong
class="jxr_keyword">protected</strong> CommonsSiteCompressionMojo mojo;
<a class="jxr_linenumber" name="L55" href="#L55">55</a>
-<a class="jxr_linenumber" name="L56" href="#L56">56</a> <strong
class="jxr_keyword">protected</strong> CommonsSiteCompressionMojo mojo;
-<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">void</strong>
setUp() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L60" href="#L60">60</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
-<a class="jxr_linenumber" name="L61" href="#L61">61</a> <strong
class="jxr_keyword">if</strong> (testingDirectory.exists()) {
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>
FileUtils.deleteDirectory(testingDirectory);
-<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> @Test
-<a class="jxr_linenumber" name="L67" href="#L67">67</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testCompressSiteSuccess() <strong class="jxr_keyword">throws</strong> Exception
{
-<a class="jxr_linenumber" name="L68" href="#L68">68</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>
testingDirectory.mkdir();
-<a class="jxr_linenumber" name="L70" href="#L70">70</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/compress-site/compress-site.xml"</span>);
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>
assertNotNull(testPom);
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>
assertTrue(testPom.exists());
-<a class="jxr_linenumber" name="L73" href="#L73">73</a> mojo =
(CommonsSiteCompressionMojo) rule.lookupMojo(<span
class="jxr_string">"compress-site"</span>, testPom);
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>
mojo.execute();
-<a class="jxr_linenumber" name="L75" href="#L75">75</a> <strong
class="jxr_keyword">final</strong> File siteZip = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/site.zip"</span>);
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>
assertTrue(siteZip.exists());
-<a class="jxr_linenumber" name="L77" href="#L77">77</a> }
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>
-<a class="jxr_linenumber" name="L79" href="#L79">79</a> @Test
-<a class="jxr_linenumber" name="L80" href="#L80">80</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testCompressSiteDirNonExistentFailure() <strong
class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L81" href="#L81">81</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/compress-site/compress-site-failure.xml"</span>);
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>
assertNotNull(testPom);
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>
assertTrue(testPom.exists());
-<a class="jxr_linenumber" name="L84" href="#L84">84</a> mojo =
(CommonsSiteCompressionMojo) rule.lookupMojo(<span
class="jxr_string">"compress-site"</span>, testPom);
-<a class="jxr_linenumber" name="L85" href="#L85">85</a> <strong
class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>
mojo.execute();
-<a class="jxr_linenumber" name="L87" href="#L87">87</a> } <strong
class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong>
MojoFailureException e) {
-<a class="jxr_linenumber" name="L88" href="#L88">88</a>
assertEquals(
-<a class="jxr_linenumber" name="L89" href="#L89">89</a>
<span class="jxr_string">"\"mvn site\" was not run before this goal,
or a siteDirectory did not exist."</span>, e.getMessage()
-<a class="jxr_linenumber" name="L90" href="#L90">90</a> );
-<a class="jxr_linenumber" name="L91" href="#L91">91</a> }
-<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>
testDisabled() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L96" href="#L96">96</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/compress-site/compress-site-disabled.xml"</span>);
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>
assertNotNull(testPom);
-<a class="jxr_linenumber" name="L98" href="#L98">98</a>
assertTrue(testPom.exists());
-<a class="jxr_linenumber" name="L99" href="#L99">99</a> mojo =
(CommonsSiteCompressionMojo) rule.lookupMojo(<span
class="jxr_string">"compress-site"</span>, testPom);
-<a class="jxr_linenumber" name="L100" href="#L100">100</a>
mojo.execute();
-<a class="jxr_linenumber" name="L101" href="#L101">101</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
-<a class="jxr_linenumber" name="L102" href="#L102">102</a>
assertFalse(testingDirectory.exists());
-<a class="jxr_linenumber" name="L103" href="#L103">103</a> }
-<a class="jxr_linenumber" name="L104" href="#L104">104</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">void</strong>
setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L58" href="#L58">58</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
+<a class="jxr_linenumber" name="L59" href="#L59">59</a> <strong
class="jxr_keyword">if</strong> (testingDirectory.exists()) {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>
FileUtils.deleteDirectory(testingDirectory);
+<a class="jxr_linenumber" name="L61" href="#L61">61</a> }
+<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>
testCompressSiteSuccess() <strong class="jxr_keyword">throws</strong> Exception
{
+<a class="jxr_linenumber" name="L66" href="#L66">66</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>
testingDirectory.mkdir();
+<a class="jxr_linenumber" name="L68" href="#L68">68</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/compress-site/compress-site.xml"</span>);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>
assertNotNull(testPom);
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>
assertTrue(testPom.exists());
+<a class="jxr_linenumber" name="L71" href="#L71">71</a> mojo =
(CommonsSiteCompressionMojo) rule.lookupMojo(<span
class="jxr_string">"compress-site"</span>, testPom);
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>
mojo.execute();
+<a class="jxr_linenumber" name="L73" href="#L73">73</a> <strong
class="jxr_keyword">final</strong> File siteZip = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/site.zip"</span>);
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>
assertTrue(siteZip.exists());
+<a class="jxr_linenumber" name="L75" href="#L75">75</a> }
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>
+<a class="jxr_linenumber" name="L77" href="#L77">77</a> @Test
+<a class="jxr_linenumber" name="L78" href="#L78">78</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testCompressSiteDirNonExistentFailure() <strong
class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L79" href="#L79">79</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/compress-site/compress-site-failure.xml"</span>);
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>
assertNotNull(testPom);
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>
assertTrue(testPom.exists());
+<a class="jxr_linenumber" name="L82" href="#L82">82</a> mojo =
(CommonsSiteCompressionMojo) rule.lookupMojo(<span
class="jxr_string">"compress-site"</span>, testPom);
+<a class="jxr_linenumber" name="L83" href="#L83">83</a> <strong
class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>
mojo.execute();
+<a class="jxr_linenumber" name="L85" href="#L85">85</a> } <strong
class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong>
MojoFailureException e) {
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>
assertEquals(
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>
<span class="jxr_string">"\"mvn site\" was not run before this goal,
or a siteDirectory did not exist."</span>, e.getMessage()
+<a class="jxr_linenumber" name="L88" href="#L88">88</a> );
+<a class="jxr_linenumber" name="L89" href="#L89">89</a> }
+<a class="jxr_linenumber" name="L90" href="#L90">90</a> }
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>
+<a class="jxr_linenumber" name="L92" href="#L92">92</a> @Test
+<a class="jxr_linenumber" name="L93" href="#L93">93</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testDisabled() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L94" href="#L94">94</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/compress-site/compress-site-disabled.xml"</span>);
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>
assertNotNull(testPom);
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>
assertTrue(testPom.exists());
+<a class="jxr_linenumber" name="L97" href="#L97">97</a> mojo =
(CommonsSiteCompressionMojo) rule.lookupMojo(<span
class="jxr_string">"compress-site"</span>, testPom);
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>
mojo.execute();
+<a class="jxr_linenumber" name="L99" href="#L99">99</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>
assertFalse(testingDirectory.exists());
+<a class="jxr_linenumber" name="L101" href="#L101">101</a> }
+<a class="jxr_linenumber" name="L102" href="#L102">102</a> }
</pre>
<hr/>
-<div id="footer">Copyright © 2018–2023 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
+<div id="footer">Copyright © 2018–2024 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
</body>
</html>
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/CommonsStagingCleanupMojoTest.html
==============================================================================
---
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/CommonsStagingCleanupMojoTest.html
(original)
+++
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/CommonsStagingCleanupMojoTest.html
Sat Apr 20 14:51:39 2024
@@ -24,64 +24,62 @@
<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> <strong
class="jxr_keyword">package</strong> org.apache.commons.release.plugin.mojos;
<a class="jxr_linenumber" name="L18" href="#L18">18</a>
-<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong
class="jxr_keyword">import</strong> org.apache.maven.plugin.testing.MojoRule;
-<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong
class="jxr_keyword">import</strong> org.codehaus.plexus.util.FileUtils;
-<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong
class="jxr_keyword">import</strong> org.junit.Before;
-<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong
class="jxr_keyword">import</strong> org.junit.Rule;
-<a class="jxr_linenumber" name="L23" href="#L23">23</a> <strong
class="jxr_keyword">import</strong> org.junit.Test;
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>
-<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong
class="jxr_keyword">import</strong> java.io.File;
-<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>
junit.framework.TestCase.assertTrue;
-<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.assertNotNull;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong
class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong>
junit.framework.TestCase.assertTrue;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong
class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong>
org.junit.Assert.assertNotNull;
+<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> java.io.File;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong
class="jxr_keyword">import</strong> org.apache.maven.plugin.testing.MojoRule;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong
class="jxr_keyword">import</strong> org.codehaus.plexus.util.FileUtils;
+<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.Rule;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong
class="jxr_keyword">import</strong> org.junit.Test;
<a class="jxr_linenumber" name="L29" href="#L29">29</a>
<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em
class="jxr_javadoccomment">/**</em>
<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em
class="jxr_javadoccomment"> * Unit tests for {@link
CommonsSiteCompressionMojo}.</em>
-<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em
class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em
class="jxr_javadoccomment"> * @since 1.0</em>
-<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> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong>
<a name="CommonsStagingCleanupMojoTest"
href="../../../../../../org/apache/commons/release/plugin/mojos/CommonsStagingCleanupMojoTest.html#CommonsStagingCleanupMojoTest">CommonsStagingCleanupMojoTest</a>
{
+<a class="jxr_linenumber" name="L32" href="#L32">32</a> <em
class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong>
<a name="CommonsStagingCleanupMojoTest"
href="../../../../../../org/apache/commons/release/plugin/mojos/CommonsStagingCleanupMojoTest.html#CommonsStagingCleanupMojoTest">CommonsStagingCleanupMojoTest</a>
{
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong
class="jxr_keyword">private</strong> <strong
class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH = <span
class="jxr_string">"target/testing-commons-release-plugin"</span>;
<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 COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH = <span
class="jxr_string">"target/testing-commons-release-plugin"</span>;
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>
-<a class="jxr_linenumber" name="L39" href="#L39">39</a> @Rule
-<a class="jxr_linenumber" name="L40" href="#L40">40</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong>
MojoRule rule = <strong class="jxr_keyword">new</strong> MojoRule() {
-<a class="jxr_linenumber" name="L41" href="#L41">41</a> @Override
-<a class="jxr_linenumber" name="L42" href="#L42">42</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> before() <strong
class="jxr_keyword">throws</strong> Throwable {
-<a class="jxr_linenumber" name="L43" href="#L43">43</a> <em
class="jxr_comment">// noop</em>
-<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> @Override
-<a class="jxr_linenumber" name="L47" href="#L47">47</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> after() {
-<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em
class="jxr_comment">// noop</em>
-<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="L37" href="#L37">37</a> @Rule
+<a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong>
MojoRule rule = <strong class="jxr_keyword">new</strong> MojoRule() {
+<a class="jxr_linenumber" name="L39" href="#L39">39</a> @Override
+<a class="jxr_linenumber" name="L40" href="#L40">40</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> before() <strong
class="jxr_keyword">throws</strong> Throwable {
+<a class="jxr_linenumber" name="L41" href="#L41">41</a> <em
class="jxr_comment">// noop</em>
+<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> @Override
+<a class="jxr_linenumber" name="L45" href="#L45">45</a> <strong
class="jxr_keyword">protected</strong> <strong
class="jxr_keyword">void</strong> after() {
+<a class="jxr_linenumber" name="L46" href="#L46">46</a> <em
class="jxr_comment">// noop</em>
+<a class="jxr_linenumber" name="L47" href="#L47">47</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> <strong
class="jxr_keyword">protected</strong> CommonsStagingCleanupMojo mojo;
<a class="jxr_linenumber" name="L51" href="#L51">51</a>
-<a class="jxr_linenumber" name="L52" href="#L52">52</a> <strong
class="jxr_keyword">protected</strong> CommonsStagingCleanupMojo mojo;
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>
-<a class="jxr_linenumber" name="L54" href="#L54">54</a> @Before
-<a class="jxr_linenumber" name="L55" href="#L55">55</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="L56" href="#L56">56</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
-<a class="jxr_linenumber" name="L57" href="#L57">57</a> <strong
class="jxr_keyword">if</strong> (testingDirectory.exists()) {
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>
FileUtils.deleteDirectory(testingDirectory);
-<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>
-<a class="jxr_linenumber" name="L62" href="#L62">62</a> @Test
-<a class="jxr_linenumber" name="L63" href="#L63">63</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testCompressSiteSuccess() <strong class="jxr_keyword">throws</strong> Exception
{
-<a class="jxr_linenumber" name="L64" href="#L64">64</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>
testingDirectory.mkdir();
-<a class="jxr_linenumber" name="L66" href="#L66">66</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/staging-cleanup/staging-cleanup.xml"</span>);
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>
assertNotNull(testPom);
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>
assertTrue(testPom.exists());
-<a class="jxr_linenumber" name="L69" href="#L69">69</a> mojo =
(CommonsStagingCleanupMojo) rule.lookupMojo(<span
class="jxr_string">"clean-staging"</span>, testPom);
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>
mojo.execute();
-<a class="jxr_linenumber" name="L71" href="#L71">71</a> <strong
class="jxr_keyword">final</strong> File cleanupDir = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm-cleanup"</span>);
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>
assertTrue(cleanupDir.exists());
-<a class="jxr_linenumber" name="L73" href="#L73">73</a> }
-<a class="jxr_linenumber" name="L74" href="#L74">74</a> }
+<a class="jxr_linenumber" name="L52" href="#L52">52</a> @Before
+<a class="jxr_linenumber" name="L53" href="#L53">53</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="L54" href="#L54">54</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a> <strong
class="jxr_keyword">if</strong> (testingDirectory.exists()) {
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>
FileUtils.deleteDirectory(testingDirectory);
+<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>
+<a class="jxr_linenumber" name="L60" href="#L60">60</a> @Test
+<a class="jxr_linenumber" name="L61" href="#L61">61</a> <strong
class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong>
testCompressSiteSuccess() <strong class="jxr_keyword">throws</strong> Exception
{
+<a class="jxr_linenumber" name="L62" href="#L62">62</a> <strong
class="jxr_keyword">final</strong> File testingDirectory = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH);
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>
testingDirectory.mkdir();
+<a class="jxr_linenumber" name="L64" href="#L64">64</a> <strong
class="jxr_keyword">final</strong> File testPom = <strong
class="jxr_keyword">new</strong> File(<span
class="jxr_string">"src/test/resources/mojos/staging-cleanup/staging-cleanup.xml"</span>);
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>
assertNotNull(testPom);
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>
assertTrue(testPom.exists());
+<a class="jxr_linenumber" name="L67" href="#L67">67</a> mojo =
(CommonsStagingCleanupMojo) rule.lookupMojo(<span
class="jxr_string">"clean-staging"</span>, testPom);
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>
mojo.execute();
+<a class="jxr_linenumber" name="L69" href="#L69">69</a> <strong
class="jxr_keyword">final</strong> File cleanupDir = <strong
class="jxr_keyword">new</strong> File(COMMONS_RELEASE_PLUGIN_TEST_DIR_PATH +
<span class="jxr_string">"/scm-cleanup"</span>);
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>
assertTrue(cleanupDir.exists());
+<a class="jxr_linenumber" name="L71" href="#L71">71</a> }
+<a class="jxr_linenumber" name="L72" href="#L72">72</a> }
</pre>
<hr/>
-<div id="footer">Copyright © 2018–2023 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
+<div id="footer">Copyright © 2018–2024 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
</body>
</html>
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/package-frame.html
==============================================================================
---
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/package-frame.html
(original)
+++
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/package-frame.html
Sat Apr 20 14:51:39 2024
@@ -4,7 +4,7 @@
<!-- generated by Apache Maven JXR (jdk8) -->
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />
- <title>Apache Commons Release Plugin 1.8.1 Reference Package
org.apache.commons.release.plugin.mojos</title>
+ <title>Apache Commons Release Plugin 1.8.2 Reference Package
org.apache.commons.release.plugin.mojos</title>
<link rel="stylesheet" type="text/css"
href="../../../../../../stylesheet.css" title="style" />
</head>
<body>
Modified:
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/package-summary.html
==============================================================================
---
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/package-summary.html
(original)
+++
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/mojos/package-summary.html
Sat Apr 20 14:51:39 2024
@@ -4,7 +4,7 @@
<!-- generated by Apache Maven JXR (jdk8) -->
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />
- <title>Apache Commons Release Plugin 1.8.1 Reference Package
org.apache.commons.release.plugin.mojos</title>
+ <title>Apache Commons Release Plugin 1.8.2 Reference Package
org.apache.commons.release.plugin.mojos</title>
<link rel="stylesheet" type="text/css"
href="../../../../../../stylesheet.css" title="style" />
</head>
@@ -23,7 +23,7 @@
<li>Index</li>
<li>Help</li>
</ul>
- <div class="aboutLanguage"><em><strong>Apache Commons Release
Plugin 1.8.1 Reference</strong></em></div>
+ <div class="aboutLanguage"><em><strong>Apache Commons Release
Plugin 1.8.2 Reference</strong></em></div>
</div>
<div class="subNav">
<ul class="navList">
@@ -96,7 +96,7 @@
<li>Index</li>
<li>Help</li>
</ul>
- <div class="aboutLanguage"><em><strong>Apache Commons Release
Plugin 1.8.1 Reference</strong></em></div>
+ <div class="aboutLanguage"><em><strong>Apache Commons Release
Plugin 1.8.2 Reference</strong></em></div>
</div>
<div class="subNav">
<ul class="navList">
@@ -116,7 +116,7 @@
</div>
<div id="footer">
- Copyright © 2018–2023 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.
+ Copyright © 2018–2024 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.
</div>
</body>
</html>
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/stubs/DistributionDetachmentProjectStub.html
==============================================================================
---
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/stubs/DistributionDetachmentProjectStub.html
(original)
+++
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/stubs/DistributionDetachmentProjectStub.html
Sat Apr 20 14:51:39 2024
@@ -262,6 +262,6 @@
<a class="jxr_linenumber" name="L254" href="#L254">254</a> }
</pre>
<hr/>
-<div id="footer">Copyright © 2018–2023 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
+<div id="footer">Copyright © 2018–2024 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
</body>
</html>
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/stubs/package-frame.html
==============================================================================
---
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/stubs/package-frame.html
(original)
+++
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/stubs/package-frame.html
Sat Apr 20 14:51:39 2024
@@ -4,7 +4,7 @@
<!-- generated by Apache Maven JXR (jdk8) -->
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />
- <title>Apache Commons Release Plugin 1.8.1 Reference Package
org.apache.commons.release.plugin.stubs</title>
+ <title>Apache Commons Release Plugin 1.8.2 Reference Package
org.apache.commons.release.plugin.stubs</title>
<link rel="stylesheet" type="text/css"
href="../../../../../../stylesheet.css" title="style" />
</head>
<body>
Modified:
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/stubs/package-summary.html
==============================================================================
---
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/stubs/package-summary.html
(original)
+++
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/stubs/package-summary.html
Sat Apr 20 14:51:39 2024
@@ -4,7 +4,7 @@
<!-- generated by Apache Maven JXR (jdk8) -->
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />
- <title>Apache Commons Release Plugin 1.8.1 Reference Package
org.apache.commons.release.plugin.stubs</title>
+ <title>Apache Commons Release Plugin 1.8.2 Reference Package
org.apache.commons.release.plugin.stubs</title>
<link rel="stylesheet" type="text/css"
href="../../../../../../stylesheet.css" title="style" />
</head>
@@ -23,7 +23,7 @@
<li>Index</li>
<li>Help</li>
</ul>
- <div class="aboutLanguage"><em><strong>Apache Commons Release
Plugin 1.8.1 Reference</strong></em></div>
+ <div class="aboutLanguage"><em><strong>Apache Commons Release
Plugin 1.8.2 Reference</strong></em></div>
</div>
<div class="subNav">
<ul class="navList">
@@ -86,7 +86,7 @@
<li>Index</li>
<li>Help</li>
</ul>
- <div class="aboutLanguage"><em><strong>Apache Commons Release
Plugin 1.8.1 Reference</strong></em></div>
+ <div class="aboutLanguage"><em><strong>Apache Commons Release
Plugin 1.8.2 Reference</strong></em></div>
</div>
<div class="subNav">
<ul class="navList">
@@ -106,7 +106,7 @@
</div>
<div id="footer">
- Copyright © 2018–2023 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.
+ Copyright © 2018–2024 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.
</div>
</body>
</html>
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/velocity/HeaderHtmlVelocityDelegateTest.html
==============================================================================
---
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/velocity/HeaderHtmlVelocityDelegateTest.html
(original)
+++
websites/production/commons/content/proper/commons-release-plugin/xref-test/org/apache/commons/release/plugin/velocity/HeaderHtmlVelocityDelegateTest.html
Sat Apr 20 14:51:39 2024
@@ -48,6 +48,6 @@
<a class="jxr_linenumber" name="L40" href="#L40">40</a> }
</pre>
<hr/>
-<div id="footer">Copyright © 2018–2023 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
+<div id="footer">Copyright © 2018–2024 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</div>
</body>
</html>
\ No newline at end of file