Class SquitResult

  • All Implemented Interfaces:

    
    public final class SquitResult
    
                        

    Intermediate data class for storing test results.

    • Constructor Detail

      • SquitResult

        SquitResult(Long id, String difference, SquitResponseInfo expectedResponseInfo, Boolean isIgnored, MediaType mediaType, String alternativeName, Path contextPath, Path suitePath, Path testDirectoryPath, Path squitBuildDirectoryPath)
        Parameters:
        contextPath - The path of the context the test has been run in.
        suitePath - The path of the suite the test has been run in.
        testDirectoryPath - The path of the directory, the test files are contained in.
        squitBuildDirectoryPath - The directory of Squit's build files.
    • Method Detail

      • getId

         final Long getId()

        A unique id to use for further processing.

      • getDifference

         final String getDifference()

        The difference of the expected and actual responses. If empty, the test was successful.

      • getMediaType

         final MediaType getMediaType()

        The media type of the associated request and response.

      • isSuccess

         final Boolean isSuccess()

        Convenience property being true if the test was successful.

      • isError

         final Boolean isError()

        Convenience property being true if this result is an error. This differs from a failure as such an exception has been thrown.

      • getSimpleName

         final String getSimpleName()

        Convenience property with the name of this test.

        The name is denoted by the filename of the directory it resides in and optionally by a title set in the corresponding test.conf file.

      • getCombinedName

         final String getCombinedName()

        Convenience property with the combined name of this test.

        This is the simpleName with the alternativeName if present.

      • getPath

         final Path getPath()

        Convenience property with the path to the test without the actual test directory.

      • getFullPath

         final Path getFullPath()

        Convenience property with the full path consisting of the path and the actual test directory.