Package client
Class TestNessusClient
java.lang.Object
client.TestNessusClient
public class TestNessusClient
extends java.lang.Object
Unit test to make sure the Nessus Client works as expected. Requires that the test
configuration file points to a working and accessible Nessus installation
-
Field Summary
Fields Modifier and Type Field Description static org.apache.logging.log4j.Logger
logger
The TestNessusClient logger -
Constructor Summary
Constructors Constructor Description TestNessusClient()
-
Method Summary
Modifier and Type Method Description void
resetDB()
Resets the databasevoid
testFetchAllScans()
Fetches and saves all scans from the configured Nessus API
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger loggerThe TestNessusClient logger
-
-
Constructor Details
-
TestNessusClient
public TestNessusClient()
-
-
Method Details
-
resetDB
public void resetDB() throws java.io.FileNotFoundExceptionResets the database- Throws:
java.io.FileNotFoundException
- if the db reset SQL script can't be found
-
testFetchAllScans
public void testFetchAllScans() throws com.fasterxml.jackson.core.JsonProcessingExceptionFetches and saves all scans from the configured Nessus API- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- if there is an issue deserializing the responses
-