Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/DefaultClassAnalyzerTest.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/DefaultClassAnalyzerTest.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/DefaultClassAnalyzerTest.html Sun Apr 30 22:24:03 2023 @@ -38,9 +38,9 @@ <a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">import</strong> java.util.zip.ZipEntry; <a class="jxr_linenumber" name="L31" href="#L31">31</a> <strong class="jxr_keyword">import</strong> java.util.zip.ZipException; <a class="jxr_linenumber" name="L32" href="#L32">32</a> -<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">import</strong> org.junit.After; -<a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong class="jxr_keyword">import</strong> org.junit.Before; -<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">import</strong> org.junit.Test; +<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">import</strong> org.junit.jupiter.api.BeforeEach; +<a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong class="jxr_keyword">import</strong> org.junit.jupiter.api.Test; +<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">import</strong> org.junit.jupiter.api.io.TempDir; <a class="jxr_linenumber" name="L36" href="#L36">36</a> <a class="jxr_linenumber" name="L37" href="#L37">37</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.assertj.core.api.Assertions.assertThat; <a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.assertj.core.api.Assertions.fail; @@ -51,63 +51,60 @@ <a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_javadoccomment"> * @author <a href="<a href="mailto:markhob...@gmail.com" target="alexandria_uri">mailto:markhob...@gmail.com</a>">Mark Hobson</a></em> <a class="jxr_linenumber" name="L44" href="#L44">44</a> <em class="jxr_javadoccomment"> * @see DefaultClassAnalyzer</em> <a class="jxr_linenumber" name="L45" href="#L45">45</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L46" href="#L46">46</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a name="DefaultClassAnalyzerTest" href="../../../../../../org/apache/maven/shared/dependency/analyzer/DefaultClassAnalyzerTest.html#DefaultClassAnalyzerTest">DefaultClassAnalyzerTest</a> { -<a class="jxr_linenumber" name="L47" href="#L47">47</a> <strong class="jxr_keyword">private</strong> Path file; -<a class="jxr_linenumber" name="L48" href="#L48">48</a> -<a class="jxr_linenumber" name="L49" href="#L49">49</a> @Before -<a class="jxr_linenumber" name="L50" href="#L50">50</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> IOException { -<a class="jxr_linenumber" name="L51" href="#L51">51</a> file = Files.createTempFile(<span class="jxr_string">"test"</span>, <span class="jxr_string">".jar"</span>); -<a class="jxr_linenumber" name="L52" href="#L52">52</a> <strong class="jxr_keyword">try</strong> (JarOutputStream out = <strong class="jxr_keyword">new</strong> JarOutputStream(<strong class="jxr_keyword">new</strong> FileOutputStream(file.toFile()))) { -<a class="jxr_linenumber" name="L53" href="#L53">53</a> addZipEntry(out, <span class="jxr_string">"a/b/c.class"</span>, <span class="jxr_string">"class a.b.c"</span>); -<a class="jxr_linenumber" name="L54" href="#L54">54</a> addZipEntry(out, <span class="jxr_string">"x/y/z.class"</span>, <span class="jxr_string">"class x.y.z"</span>); -<a class="jxr_linenumber" name="L55" href="#L55">55</a> } -<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> @After -<a class="jxr_linenumber" name="L59" href="#L59">59</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> cleanup() <strong class="jxr_keyword">throws</strong> IOException { -<a class="jxr_linenumber" name="L60" href="#L60">60</a> <strong class="jxr_keyword">if</strong> (file != <strong class="jxr_keyword">null</strong>) { -<a class="jxr_linenumber" name="L61" href="#L61">61</a> Files.deleteIfExists(file); -<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> testAnalyzeWithJar() <strong class="jxr_keyword">throws</strong> IOException { -<a class="jxr_linenumber" name="L67" href="#L67">67</a> Set<String> expectedClasses = <strong class="jxr_keyword">new</strong> HashSet<>(); -<a class="jxr_linenumber" name="L68" href="#L68">68</a> expectedClasses.add(<span class="jxr_string">"a.b.c"</span>); -<a class="jxr_linenumber" name="L69" href="#L69">69</a> expectedClasses.add(<span class="jxr_string">"x.y.z"</span>); +<a class="jxr_linenumber" name="L46" href="#L46">46</a> <strong class="jxr_keyword">class</strong> <a name="DefaultClassAnalyzerTest" href="../../../../../../org/apache/maven/shared/dependency/analyzer/DefaultClassAnalyzerTest.html#DefaultClassAnalyzerTest">DefaultClassAnalyzerTest</a> { +<a class="jxr_linenumber" name="L47" href="#L47">47</a> +<a class="jxr_linenumber" name="L48" href="#L48">48</a> @TempDir +<a class="jxr_linenumber" name="L49" href="#L49">49</a> <strong class="jxr_keyword">private</strong> Path tempDir; +<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> Path file; +<a class="jxr_linenumber" name="L52" href="#L52">52</a> +<a class="jxr_linenumber" name="L53" href="#L53">53</a> @BeforeEach +<a class="jxr_linenumber" name="L54" href="#L54">54</a> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> IOException { +<a class="jxr_linenumber" name="L55" href="#L55">55</a> file = Files.createTempFile(tempDir, <span class="jxr_string">"test"</span>, <span class="jxr_string">".jar"</span>); +<a class="jxr_linenumber" name="L56" href="#L56">56</a> <strong class="jxr_keyword">try</strong> (JarOutputStream out = <strong class="jxr_keyword">new</strong> JarOutputStream(<strong class="jxr_keyword">new</strong> FileOutputStream(file.toFile()))) { +<a class="jxr_linenumber" name="L57" href="#L57">57</a> addZipEntry(out, <span class="jxr_string">"a/b/c.class"</span>, <span class="jxr_string">"class a.b.c"</span>); +<a class="jxr_linenumber" name="L58" href="#L58">58</a> addZipEntry(out, <span class="jxr_string">"x/y/z.class"</span>, <span class="jxr_string">"class x.y.z"</span>); +<a class="jxr_linenumber" name="L59" href="#L59">59</a> } +<a class="jxr_linenumber" name="L60" href="#L60">60</a> } +<a class="jxr_linenumber" name="L61" href="#L61">61</a> +<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">void</strong> testAnalyzeWithJar() <strong class="jxr_keyword">throws</strong> IOException { +<a class="jxr_linenumber" name="L64" href="#L64">64</a> Set<String> expectedClasses = <strong class="jxr_keyword">new</strong> HashSet<>(); +<a class="jxr_linenumber" name="L65" href="#L65">65</a> expectedClasses.add(<span class="jxr_string">"a.b.c"</span>); +<a class="jxr_linenumber" name="L66" href="#L66">66</a> expectedClasses.add(<span class="jxr_string">"x.y.z"</span>); +<a class="jxr_linenumber" name="L67" href="#L67">67</a> +<a class="jxr_linenumber" name="L68" href="#L68">68</a> DefaultClassAnalyzer analyzer = <strong class="jxr_keyword">new</strong> DefaultClassAnalyzer(); +<a class="jxr_linenumber" name="L69" href="#L69">69</a> Set<String> actualClasses = analyzer.analyze(file.toUri().toURL()); <a class="jxr_linenumber" name="L70" href="#L70">70</a> -<a class="jxr_linenumber" name="L71" href="#L71">71</a> DefaultClassAnalyzer analyzer = <strong class="jxr_keyword">new</strong> DefaultClassAnalyzer(); -<a class="jxr_linenumber" name="L72" href="#L72">72</a> Set<String> actualClasses = analyzer.analyze(file.toUri().toURL()); +<a class="jxr_linenumber" name="L71" href="#L71">71</a> assertThat(actualClasses).isEqualTo(expectedClasses); +<a class="jxr_linenumber" name="L72" href="#L72">72</a> } <a class="jxr_linenumber" name="L73" href="#L73">73</a> -<a class="jxr_linenumber" name="L74" href="#L74">74</a> assertThat(actualClasses).isEqualTo(expectedClasses); -<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> testAnalyzeBadJar() <strong class="jxr_keyword">throws</strong> IOException { -<a class="jxr_linenumber" name="L79" href="#L79">79</a> <em class="jxr_comment">// to reproduce MDEP-143</em> -<a class="jxr_linenumber" name="L80" href="#L80">80</a> <em class="jxr_comment">// corrupt the jar file by altering its contents</em> -<a class="jxr_linenumber" name="L81" href="#L81">81</a> ByteArrayOutputStream baos = <strong class="jxr_keyword">new</strong> ByteArrayOutputStream(100); -<a class="jxr_linenumber" name="L82" href="#L82">82</a> Files.copy(file, baos); -<a class="jxr_linenumber" name="L83" href="#L83">83</a> byte[] ba = baos.toByteArray(); -<a class="jxr_linenumber" name="L84" href="#L84">84</a> ba[50] = 1; -<a class="jxr_linenumber" name="L85" href="#L85">85</a> Files.write(file, ba); -<a class="jxr_linenumber" name="L86" href="#L86">86</a> -<a class="jxr_linenumber" name="L87" href="#L87">87</a> ClassAnalyzer analyzer = <strong class="jxr_keyword">new</strong> DefaultClassAnalyzer(); -<a class="jxr_linenumber" name="L88" href="#L88">88</a> -<a class="jxr_linenumber" name="L89" href="#L89">89</a> <strong class="jxr_keyword">try</strong> { -<a class="jxr_linenumber" name="L90" href="#L90">90</a> analyzer.analyze(file.toUri().toURL()); -<a class="jxr_linenumber" name="L91" href="#L91">91</a> fail(<span class="jxr_string">"Exception expected"</span>); -<a class="jxr_linenumber" name="L92" href="#L92">92</a> } <strong class="jxr_keyword">catch</strong> (ZipException e) { -<a class="jxr_linenumber" name="L93" href="#L93">93</a> assertThat(e).hasMessageStartingWith(<span class="jxr_string">"Cannot process Jar entry on URL:"</span>); -<a class="jxr_linenumber" name="L94" href="#L94">94</a> } -<a class="jxr_linenumber" name="L95" href="#L95">95</a> } -<a class="jxr_linenumber" name="L96" href="#L96">96</a> -<a class="jxr_linenumber" name="L97" href="#L97">97</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> addZipEntry(JarOutputStream out, String fileName, String content) <strong class="jxr_keyword">throws</strong> IOException { -<a class="jxr_linenumber" name="L98" href="#L98">98</a> out.putNextEntry(<strong class="jxr_keyword">new</strong> ZipEntry(fileName)); -<a class="jxr_linenumber" name="L99" href="#L99">99</a> byte[] bytes = content.getBytes(StandardCharsets.UTF_8); -<a class="jxr_linenumber" name="L100" href="#L100">100</a> out.write(bytes, 0, bytes.length); -<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="L74" href="#L74">74</a> @Test +<a class="jxr_linenumber" name="L75" href="#L75">75</a> <strong class="jxr_keyword">void</strong> testAnalyzeBadJar() <strong class="jxr_keyword">throws</strong> IOException { +<a class="jxr_linenumber" name="L76" href="#L76">76</a> <em class="jxr_comment">// to reproduce MDEP-143</em> +<a class="jxr_linenumber" name="L77" href="#L77">77</a> <em class="jxr_comment">// corrupt the jar file by altering its contents</em> +<a class="jxr_linenumber" name="L78" href="#L78">78</a> ByteArrayOutputStream baos = <strong class="jxr_keyword">new</strong> ByteArrayOutputStream(100); +<a class="jxr_linenumber" name="L79" href="#L79">79</a> Files.copy(file, baos); +<a class="jxr_linenumber" name="L80" href="#L80">80</a> byte[] ba = baos.toByteArray(); +<a class="jxr_linenumber" name="L81" href="#L81">81</a> ba[50] = 1; +<a class="jxr_linenumber" name="L82" href="#L82">82</a> Files.write(file, ba); +<a class="jxr_linenumber" name="L83" href="#L83">83</a> +<a class="jxr_linenumber" name="L84" href="#L84">84</a> ClassAnalyzer analyzer = <strong class="jxr_keyword">new</strong> DefaultClassAnalyzer(); +<a class="jxr_linenumber" name="L85" href="#L85">85</a> +<a class="jxr_linenumber" name="L86" href="#L86">86</a> <strong class="jxr_keyword">try</strong> { +<a class="jxr_linenumber" name="L87" href="#L87">87</a> analyzer.analyze(file.toUri().toURL()); +<a class="jxr_linenumber" name="L88" href="#L88">88</a> fail(<span class="jxr_string">"Exception expected"</span>); +<a class="jxr_linenumber" name="L89" href="#L89">89</a> } <strong class="jxr_keyword">catch</strong> (ZipException e) { +<a class="jxr_linenumber" name="L90" href="#L90">90</a> assertThat(e).hasMessageStartingWith(<span class="jxr_string">"Cannot process Jar entry on URL:"</span>); +<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> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> addZipEntry(JarOutputStream out, String fileName, String content) <strong class="jxr_keyword">throws</strong> IOException { +<a class="jxr_linenumber" name="L95" href="#L95">95</a> out.putNextEntry(<strong class="jxr_keyword">new</strong> ZipEntry(fileName)); +<a class="jxr_linenumber" name="L96" href="#L96">96</a> byte[] bytes = content.getBytes(StandardCharsets.UTF_8); +<a class="jxr_linenumber" name="L97" href="#L97">97</a> out.write(bytes, 0, bytes.length); +<a class="jxr_linenumber" name="L98" href="#L98">98</a> } +<a class="jxr_linenumber" name="L99" href="#L99">99</a> } </pre> <hr/> <div id="footer">Copyright © 2002–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalysisTest.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalysisTest.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalysisTest.html Sun Apr 30 22:24:03 2023 @@ -33,7 +33,7 @@ <a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.apache.maven.artifact.Artifact; <a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">import</strong> org.apache.maven.artifact.DefaultArtifact; <a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">import</strong> org.apache.maven.artifact.versioning.VersionRange; -<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">import</strong> org.junit.Test; +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">import</strong> org.junit.jupiter.api.Test; <a class="jxr_linenumber" name="L29" href="#L29">29</a> <a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.assertj.core.api.Assertions.assertThat; <a class="jxr_linenumber" name="L31" href="#L31">31</a> @@ -43,9 +43,9 @@ <a class="jxr_linenumber" name="L35" href="#L35">35</a> <em class="jxr_javadoccomment"> * @author <a href="<a href="mailto:markhob...@gmail.com" target="alexandria_uri">mailto:markhob...@gmail.com</a>">Mark Hobson</a></em> <a class="jxr_linenumber" name="L36" href="#L36">36</a> <em class="jxr_javadoccomment"> * @see ProjectDependencyAnalysis</em> <a class="jxr_linenumber" name="L37" href="#L37">37</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a name="ProjectDependencyAnalysisTest" href="../../../../../../org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalysisTest.html#ProjectDependencyAnalysisTest">ProjectDependencyAnalysisTest</a> { +<a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong class="jxr_keyword">class</strong> <a name="ProjectDependencyAnalysisTest" href="../../../../../../org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalysisTest.html#ProjectDependencyAnalysisTest">ProjectDependencyAnalysisTest</a> { <a class="jxr_linenumber" name="L39" href="#L39">39</a> @Test -<a class="jxr_linenumber" name="L40" href="#L40">40</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConstructor() { +<a class="jxr_linenumber" name="L40" href="#L40">40</a> <strong class="jxr_keyword">void</strong> testConstructor() { <a class="jxr_linenumber" name="L41" href="#L41">41</a> Set<Artifact> usedDeclaredArtifacts = <strong class="jxr_keyword">new</strong> HashSet<>(); <a class="jxr_linenumber" name="L42" href="#L42">42</a> Set<Artifact> usedUndeclaredArtifacts = <strong class="jxr_keyword">new</strong> HashSet<>(); <a class="jxr_linenumber" name="L43" href="#L43">43</a> Set<Artifact> unusedDeclaredArtifacts = <strong class="jxr_keyword">new</strong> HashSet<>(); @@ -60,7 +60,7 @@ <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> @Test -<a class="jxr_linenumber" name="L55" href="#L55">55</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> ignoreNonCompileShouldFilterOnlyUnusedDeclare() { +<a class="jxr_linenumber" name="L55" href="#L55">55</a> <strong class="jxr_keyword">void</strong> ignoreNonCompileShouldFilterOnlyUnusedDeclare() { <a class="jxr_linenumber" name="L56" href="#L56">56</a> Artifact artifactCompile = aTestArtifact(<span class="jxr_string">"test1"</span>, Artifact.SCOPE_COMPILE); <a class="jxr_linenumber" name="L57" href="#L57">57</a> Artifact artifactProvided = aTestArtifact(<span class="jxr_string">"test2"</span>, Artifact.SCOPE_PROVIDED); <a class="jxr_linenumber" name="L58" href="#L58">58</a> Artifact artifactTest = aTestArtifact(<span class="jxr_string">"test3"</span>, Artifact.SCOPE_TEST); Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalyzerExceptionTest.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalyzerExceptionTest.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalyzerExceptionTest.html Sun Apr 30 22:24:03 2023 @@ -26,7 +26,7 @@ <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.maven.shared.dependency.analyzer; <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="L21" href="#L21">21</a> <strong class="jxr_keyword">import</strong> org.junit.jupiter.api.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> <strong class="jxr_keyword">static</strong> org.assertj.core.api.Assertions.assertThat; <a class="jxr_linenumber" name="L24" href="#L24">24</a> @@ -36,14 +36,14 @@ <a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> * @author <a href="<a href="mailto:markhob...@gmail.com" target="alexandria_uri">mailto:markhob...@gmail.com</a>">Mark Hobson</a></em> <a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> * @see ProjectDependencyAnalyzerException</em> <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> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a name="ProjectDependencyAnalyzerExceptionTest" href="../../../../../../org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalyzerExceptionTest.html#ProjectDependencyAnalyzerExceptionTest">ProjectDependencyAnalyzerExceptionTest</a> { +<a class="jxr_linenumber" name="L31" href="#L31">31</a> <strong class="jxr_keyword">class</strong> <a name="ProjectDependencyAnalyzerExceptionTest" href="../../../../../../org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalyzerExceptionTest.html#ProjectDependencyAnalyzerExceptionTest">ProjectDependencyAnalyzerExceptionTest</a> { <a class="jxr_linenumber" name="L32" href="#L32">32</a> @Test -<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConstructor() { +<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">void</strong> testConstructor() { <a class="jxr_linenumber" name="L34" href="#L34">34</a> assertThat(<strong class="jxr_keyword">new</strong> ProjectDependencyAnalyzerException(<span class="jxr_string">"a"</span>)).hasMessage(<span class="jxr_string">"a"</span>); <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> @Test -<a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConstructorWithThrowable() { +<a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong class="jxr_keyword">void</strong> testConstructorWithThrowable() { <a class="jxr_linenumber" name="L39" href="#L39">39</a> Throwable throwable = <strong class="jxr_keyword">new</strong> Exception(); <a class="jxr_linenumber" name="L40" href="#L40">40</a> ProjectDependencyAnalyzerException exception = <strong class="jxr_keyword">new</strong> ProjectDependencyAnalyzerException(<span class="jxr_string">"a"</span>, throwable); <a class="jxr_linenumber" name="L41" href="#L41">41</a> Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/asm/ASMDependencyAnalyzerTest.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/asm/ASMDependencyAnalyzerTest.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/xref-test/org/apache/maven/shared/dependency/analyzer/asm/ASMDependencyAnalyzerTest.html Sun Apr 30 22:24:03 2023 @@ -30,15 +30,15 @@ <a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> java.util.Set; <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.shared.dependency.analyzer.DependencyAnalyzer; -<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.junit.Test; +<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.junit.jupiter.api.Test; <a class="jxr_linenumber" name="L26" href="#L26">26</a> <a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.assertj.core.api.Assertions.assertThat; <a class="jxr_linenumber" name="L28" href="#L28">28</a> -<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a name="ASMDependencyAnalyzerTest" href="../../../../../../../org/apache/maven/shared/dependency/analyzer/asm/ASMDependencyAnalyzerTest.html#ASMDependencyAnalyzerTest">ASMDependencyAnalyzerTest</a> { +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">class</strong> <a name="ASMDependencyAnalyzerTest" href="../../../../../../../org/apache/maven/shared/dependency/analyzer/asm/ASMDependencyAnalyzerTest.html#ASMDependencyAnalyzerTest">ASMDependencyAnalyzerTest</a> { <a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> DependencyAnalyzer analyzer = <strong class="jxr_keyword">new</strong> ASMDependencyAnalyzer(); <a class="jxr_linenumber" name="L31" href="#L31">31</a> <a class="jxr_linenumber" name="L32" href="#L32">32</a> @Test -<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> test() <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">void</strong> test() <strong class="jxr_keyword">throws</strong> Exception { <a class="jxr_linenumber" name="L34" href="#L34">34</a> URL jarUrl = <strong class="jxr_keyword">this</strong>.getClass().getResource(<span class="jxr_string">"/org/objectweb/asm/ClassReader.class"</span>); <a class="jxr_linenumber" name="L35" href="#L35">35</a> assertThat(jarUrl).isNotNull(); <a class="jxr_linenumber" name="L36" href="#L36">36</a> String fileUrl =