Interface CFileWaiter
-
- All Superinterfaces:
CBaseState<java.io.File>
,CBaseWaiter<java.io.File>
,CObjectWaiter<java.io.File>
,java.io.Serializable
- All Known Subinterfaces:
CDynamicFileExtension
,CStaticFileExtension
- All Known Implementing Classes:
CFile
public interface CFileWaiter extends CObjectWaiter<java.io.File>
CFileWaiter is an interface for CFile waiter related methods.
-
-
Field Summary
-
Fields inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
serialVersionUID
-
-
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 withCTypeExtensionConfigs.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 withCTypeExtensionConfigs.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 withCTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds()
interval till the the file existsdefault boolean
waitIsExists(int waitInSeconds)
Wait for defined number of seconds withCTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds()
interval till the the file existsdefault boolean
waitIsExists(int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the the file existsdefault boolean
waitIsNotExists()
Wait for defined number of seconds withCTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds()
interval till the the file does not existsdefault boolean
waitIsNotExists(int waitInSeconds)
Wait for defined number of seconds withCTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds()
interval till the the file does not existsdefault boolean
waitIsNotExists(int waitInSeconds, int intervalInMilliSeconds)
Wait for defined number of seconds till the the file does not existsdefault boolean
waitNotEqualsStringContent(CFile expectedFile)
Wait for defined number of seconds withCTypeExtensionConfigs.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 withCTypeExtensionConfigs.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.-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
getBaseValue
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CBaseWaiter
getDefaultWaitInSeconds, getDefaultWaitIntervalInMilliSeconds
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CObjectWaiter
_waiter, wait, wait, wait, waitEquals, waitEquals, waitEquals, waitEqualsAny, waitEqualsAny, waitEqualsAny, waitEqualsNone, waitEqualsNone, waitEqualsNone, waitIsNotNull, waitIsNotNull, waitIsNotNull, waitIsNull, waitIsNull, waitIsNull, waitNotEquals, waitNotEquals, waitNotEquals
-
-
-
-
Method Detail
-
waitEqualsStringContent
default boolean waitEqualsStringContent(java.io.File expectedFile)
Wait for defined number of seconds withCTypeExtensionConfigs.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 withCTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected file have the exact same content.- Parameters:
expectedFile
- file to comparewaitInSeconds
- 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 comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitIsExists
default boolean waitIsExists()
Wait for defined number of seconds withCTypeExtensionConfigs.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 withCTypeExtensionConfigs.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 timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
waitIsNotExists
default boolean waitIsNotExists()
Wait for defined number of seconds withCTypeExtensionConfigs.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 withCTypeExtensionConfigs.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 timeintervalInMilliSeconds
- 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 withCTypeExtensionConfigs.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 withCTypeExtensionConfigs.getDefaultWaitIntervalInMilliSeconds()
interval till the actual and expected file does not have the exact same content.- Parameters:
expectedFile
- file to comparewaitInSeconds
- 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 comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds- Returns:
- true if wait operation succeed otherwise return false
-
-