|
|
|
|
@@ -72,7 +72,7 @@
|
|
|
|
|
<a class="jxr_linenumber" name="L64" href="#L64">64</a> <em class="jxr_javadoccomment"> */</em>
|
|
|
|
|
<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> testAddFileSet() <strong class="jxr_keyword">throws</strong> Exception {
|
|
|
|
|
<a class="jxr_linenumber" name="L67" href="#L67">67</a> File report = <strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"target/DependencyCheck-Report.html"</span>);
|
|
|
|
|
<a class="jxr_linenumber" name="L67" href="#L67">67</a> File report = <strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"target/dependency-check-report.html"</span>);
|
|
|
|
|
<a class="jxr_linenumber" name="L68" href="#L68">68</a> <strong class="jxr_keyword">if</strong> (report.exists()) {
|
|
|
|
|
<a class="jxr_linenumber" name="L69" href="#L69">69</a> <strong class="jxr_keyword">if</strong> (!report.delete()) {
|
|
|
|
|
<a class="jxr_linenumber" name="L70" href="#L70">70</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> Exception(<span class="jxr_string">"Unable to delete 'target/DependencyCheck-Report.html' prior to test."</span>);
|
|
|
|
|
@@ -91,7 +91,7 @@
|
|
|
|
|
<a class="jxr_linenumber" name="L83" href="#L83">83</a> <em class="jxr_javadoccomment"> */</em>
|
|
|
|
|
<a class="jxr_linenumber" name="L84" href="#L84">84</a> @Test
|
|
|
|
|
<a class="jxr_linenumber" name="L85" href="#L85">85</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testAddFileList() <strong class="jxr_keyword">throws</strong> Exception {
|
|
|
|
|
<a class="jxr_linenumber" name="L86" href="#L86">86</a> File report = <strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"target/DependencyCheck-Report.xml"</span>);
|
|
|
|
|
<a class="jxr_linenumber" name="L86" href="#L86">86</a> File report = <strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"target/dependency-check-report.xml"</span>);
|
|
|
|
|
<a class="jxr_linenumber" name="L87" href="#L87">87</a> <strong class="jxr_keyword">if</strong> (report.exists()) {
|
|
|
|
|
<a class="jxr_linenumber" name="L88" href="#L88">88</a> <strong class="jxr_keyword">if</strong> (!report.delete()) {
|
|
|
|
|
<a class="jxr_linenumber" name="L89" href="#L89">89</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> Exception(<span class="jxr_string">"Unable to delete 'target/DependencyCheck-Report.xml' prior to test."</span>);
|
|
|
|
|
@@ -109,7 +109,7 @@
|
|
|
|
|
<a class="jxr_linenumber" name="L101" href="#L101">101</a> <em class="jxr_javadoccomment"> */</em>
|
|
|
|
|
<a class="jxr_linenumber" name="L102" href="#L102">102</a> @Test
|
|
|
|
|
<a class="jxr_linenumber" name="L103" href="#L103">103</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testAddDirSet() <strong class="jxr_keyword">throws</strong> Exception {
|
|
|
|
|
<a class="jxr_linenumber" name="L104" href="#L104">104</a> File report = <strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"target/DependencyCheck-Vulnerability.html"</span>);
|
|
|
|
|
<a class="jxr_linenumber" name="L104" href="#L104">104</a> File report = <strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"target/dependency-check-vulnerability.html"</span>);
|
|
|
|
|
<a class="jxr_linenumber" name="L105" href="#L105">105</a> <strong class="jxr_keyword">if</strong> (report.exists()) {
|
|
|
|
|
<a class="jxr_linenumber" name="L106" href="#L106">106</a> <strong class="jxr_keyword">if</strong> (!report.delete()) {
|
|
|
|
|
<a class="jxr_linenumber" name="L107" href="#L107">107</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> Exception(<span class="jxr_string">"Unable to delete 'target/DependencyCheck-Vulnerability.html' prior to test."</span>);
|
|
|
|
|
|