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 database
    void testFetchAllScans()
    Fetches and saves all scans from the configured Nessus API

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      public static final org.apache.logging.log4j.Logger logger
      The TestNessusClient logger
  • Constructor Details

  • Method Details

    • resetDB

      public void resetDB() throws java.io.FileNotFoundException
      Resets 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.JsonProcessingException
      Fetches and saves all scans from the configured Nessus API
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if there is an issue deserializing the responses