Interface CFileState

  • All Superinterfaces:
    CBaseState<java.io.File>, CObjectState<java.io.File>, java.io.Serializable
    All Known Subinterfaces:
    CFileExtension
    All Known Implementing Classes:
    CFile

    public interface CFileState
    extends CObjectState<java.io.File>

    CFileState is an interface for File state related methods.

    We need this interface to have possibility of adding state to any exists objects with the minimum change in the code.

    • Method Detail

      • isEqual

        default boolean isEqual​(java.io.File expected)
        Description copied from interface: CObjectState
        Check if actual and expected are equal
        Specified by:
        isEqual in interface CObjectState<java.io.File>
        Parameters:
        expected - value to compare
        Returns:
        execution result
      • equalsStringContent

        default boolean equalsStringContent​(java.io.File expectedFile)
        Check if actual and expected file have the exact same content.
        Parameters:
        expectedFile - file to compare
        Returns:
        execution boolean result
      • notEqualsStringContent

        default boolean notEqualsStringContent​(java.io.File expectedFile)
        Check if actual and expected file does not have the exact same content.
        Parameters:
        expectedFile - file to compare
        Returns:
        execution boolean result