fixed bug were an exception would cause the lock not to be released

This commit is contained in:
Jeremy Long
2017-10-15 07:57:33 -04:00
parent c8bfdddd59
commit f4b11d8e44
6 changed files with 156 additions and 162 deletions

View File

@@ -37,6 +37,7 @@ import org.junit.Assume;
import org.junit.Test;
import org.owasp.dependencycheck.Engine;
import org.owasp.dependencycheck.data.nvdcve.DatabaseException;
import org.owasp.dependencycheck.exception.ExceptionCollection;
import org.owasp.dependencycheck.utils.InvalidSettingException;
import org.owasp.dependencycheck.utils.Settings;
@@ -113,8 +114,8 @@ public class BaseDependencyCheckMojoTest extends BaseTest {
public class BaseDependencyCheckMojoImpl extends BaseDependencyCheckMojo {
@Override
public void runCheck() throws MojoExecutionException, MojoFailureException {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
protected void runCheck() throws MojoExecutionException, MojoFailureException {
throw new UnsupportedOperationException("Operation not supported");
}
@Override
@@ -129,7 +130,12 @@ public class BaseDependencyCheckMojoTest extends BaseTest {
@Override
public boolean canGenerateReport() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException("Operation not supported");
}
@Override
protected ExceptionCollection scanDependencies(Engine engine) throws MojoExecutionException {
throw new UnsupportedOperationException("Operation not supported");
}
}
}