Interface CFileWaiter

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean waitEqualsStringContent​(java.io.File expectedFile)
      Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the actual and expected file have the exact same content.
      default boolean waitEqualsStringContent​(java.io.File expectedFile, int waitInSeconds)
      Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the actual and expected file have the exact same content.
      default boolean waitEqualsStringContent​(java.io.File expectedFile, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual and expected file have the exact same content.
      default boolean waitIsExists()
      Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the the file exists
      default boolean waitIsExists​(int waitInSeconds)
      Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the the file exists
      default boolean waitIsExists​(int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the the file exists
      default boolean waitIsNotExists()
      Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the the file does not exists
      default boolean waitIsNotExists​(int waitInSeconds)
      Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the the file does not exists
      default boolean waitIsNotExists​(int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the the file does not exists
      default boolean waitNotEqualsStringContent​(CFile expectedFile)
      Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the actual and expected file does not have the exact same content.
      default boolean waitNotEqualsStringContent​(CFile expectedFile, int waitInSeconds)
      Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the actual and expected file does not have the exact same content.
      default boolean waitNotEqualsStringContent​(CFile expectedFile, int waitInSeconds, int intervalInMilliSeconds)
      Wait for defined number of seconds till the actual and expected file does not have the exact same content.
    • Method Detail

      • waitEqualsStringContent

        default boolean waitEqualsStringContent​(java.io.File expectedFile)
        Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the actual and expected file have the exact same content.
        Parameters:
        expectedFile - file to compare
        Returns:
        true if wait operation succeed otherwise return false
      • waitEqualsStringContent

        default boolean waitEqualsStringContent​(java.io.File expectedFile,
                                                int waitInSeconds)
        Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the actual and expected file have the exact same content.
        Parameters:
        expectedFile - file to compare
        waitInSeconds - maximum wait time
        Returns:
        true if wait operation succeed otherwise return false
      • waitEqualsStringContent

        default boolean waitEqualsStringContent​(java.io.File expectedFile,
                                                int waitInSeconds,
                                                int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual and expected file have the exact same content.
        Parameters:
        expectedFile - file to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsExists

        default boolean waitIsExists()
        Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the the file exists
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsExists

        default boolean waitIsExists​(int waitInSeconds)
        Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the the file exists
        Parameters:
        waitInSeconds - maximum wait time
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsExists

        default boolean waitIsExists​(int waitInSeconds,
                                     int intervalInMilliSeconds)
        Wait for defined number of seconds till the the file exists
        Parameters:
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsNotExists

        default boolean waitIsNotExists()
        Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the the file does not exists
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsNotExists

        default boolean waitIsNotExists​(int waitInSeconds)
        Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the the file does not exists
        Parameters:
        waitInSeconds - maximum wait time
        Returns:
        true if wait operation succeed otherwise return false
      • waitIsNotExists

        default boolean waitIsNotExists​(int waitInSeconds,
                                        int intervalInMilliSeconds)
        Wait for defined number of seconds till the the file does not exists
        Parameters:
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitNotEqualsStringContent

        default boolean waitNotEqualsStringContent​(CFile expectedFile)
        Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the actual and expected file does not have the exact same content.
        Parameters:
        expectedFile - file to compare
        Returns:
        true if wait operation succeed otherwise return false
      • waitNotEqualsStringContent

        default boolean waitNotEqualsStringContent​(CFile expectedFile,
                                                   int waitInSeconds)
        Wait for defined number of seconds with CTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds() interval till the actual and expected file does not have the exact same content.
        Parameters:
        expectedFile - file to compare
        waitInSeconds - maximum wait time
        Returns:
        true if wait operation succeed otherwise return false
      • waitNotEqualsStringContent

        default boolean waitNotEqualsStringContent​(CFile expectedFile,
                                                   int waitInSeconds,
                                                   int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual and expected file does not have the exact same content.
        Parameters:
        expectedFile - file to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false