Interface CFileWaitVerifier
-
- All Superinterfaces:
CBaseState<java.io.File>
,CBaseVerifier<java.io.File>
,CBaseWaiter<java.io.File>
,CFileVerifier
,CObjectVerifier<java.io.File,CFileState>
,CObjectWaitVerifier<java.io.File,CFileState>
,java.io.Serializable
- All Known Subinterfaces:
CDynamicFileExtension
- All Known Implementing Classes:
CFile
public interface CFileWaitVerifier extends CFileVerifier, CObjectWaitVerifier<java.io.File,CFileState>
CFileVerifier is an interface for File verification related methods.
We need this interface to have possibility of adding verification to any exists objects with the minimum change in the code. In the meantime adding verification method in one place can be extend cross all other objects:
-
-
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 CFileState
_toState(java.lang.Object e)
default void
verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, int waitInSeconds)
Verify that actual and expected file have the exact same content.default void
verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual and expected file have the exact same content.default void
verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected file have the exact same content.default void
verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected file have the exact same content.default void
verifyExists(CVerificationQueue verificationQueue, int waitInSeconds)
Verify that the file existsdefault void
verifyExists(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds)
Verify that the file existsdefault void
verifyExists(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that the file existsdefault void
verifyExists(CVerificationQueue verificationQueue, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that the file existsdefault void
verifyIsNotExists(CVerificationQueue verificationQueue, int waitInSeconds)
Verify that the file does not existsdefault void
verifyIsNotExists(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds)
Verify that the file does not existsdefault void
verifyIsNotExists(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that the file does not existsdefault void
verifyIsNotExists(CVerificationQueue verificationQueue, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that the file does not existsdefault void
verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, int waitInSeconds)
Verify that actual and expected file does not have the exact same content.default void
verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual and expected file does not have the exact same content.default void
verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected file does not have the exact same content.default void
verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that 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.verify.interfaces.CBaseVerifier
_useWaiter, _verify, _verify, _verify, _verify, _verify, _verify, _verify, _verify, _verify, getDefaultMessage, getDefaultMessage, getVerifyMessagePrefix
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CBaseWaiter
getDefaultWaitInSeconds, getDefaultWaitIntervalInMilliSeconds
-
Methods inherited from interface org.catools.common.extensions.verify.interfaces.CFileVerifier
verifyEqualsStringContent, verifyEqualsStringContent, verifyExists, verifyExists, verifyIsNotExists, verifyIsNotExists, verifyNotEqualsStringContent, verifyNotEqualsStringContent
-
Methods inherited from interface org.catools.common.extensions.verify.interfaces.CObjectVerifier
verifyEquals, verifyEquals, verifyEqualsAny, verifyEqualsAny, verifyEqualsNone, verifyEqualsNone, verifyIsNotNull, verifyIsNotNull, verifyIsNull, verifyIsNull, verifyNotEquals, verifyNotEquals
-
Methods inherited from interface org.catools.common.extensions.waitVerify.interfaces.CObjectWaitVerifier
verifyEquals, verifyEquals, verifyEquals, verifyEquals, verifyEqualsAny, verifyEqualsAny, verifyEqualsAny, verifyEqualsAny, verifyEqualsNone, verifyEqualsNone, verifyEqualsNone, verifyEqualsNone, verifyIsNotNull, verifyIsNotNull, verifyIsNotNull, verifyIsNotNull, verifyIsNull, verifyIsNull, verifyIsNull, verifyIsNull, verifyNotEquals, verifyNotEquals, verifyNotEquals, verifyNotEquals
-
-
-
-
Method Detail
-
_toState
default CFileState _toState(java.lang.Object e)
- Specified by:
_toState
in interfaceCFileVerifier
- Specified by:
_toState
in interfaceCObjectVerifier<java.io.File,CFileState>
- Specified by:
_toState
in interfaceCObjectWaitVerifier<java.io.File,CFileState>
-
verifyEqualsStringContent
default void verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, int waitInSeconds)
Verify that actual and expected file have the exact same content.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpectedFile
- file to comparewaitInSeconds
- maximum wait time
-
verifyEqualsStringContent
default void verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected file have the exact same content.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpectedFile
- file to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEqualsStringContent
default void verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual and expected file have the exact same content.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpectedFile
- file to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyEqualsStringContent
default void verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected file have the exact same content.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpectedFile
- file to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyExists
default void verifyExists(CVerificationQueue verificationQueue, int waitInSeconds)
Verify that the file exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait time
-
verifyExists
default void verifyExists(CVerificationQueue verificationQueue, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that the file exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyExists
default void verifyExists(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds)
Verify that the file exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyExists
default void verifyExists(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that the file exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyIsNotExists
default void verifyIsNotExists(CVerificationQueue verificationQueue, int waitInSeconds)
Verify that the file does not exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait time
-
verifyIsNotExists
default void verifyIsNotExists(CVerificationQueue verificationQueue, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that the file does not exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyIsNotExists
default void verifyIsNotExists(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds)
Verify that the file does not exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyIsNotExists
default void verifyIsNotExists(CVerificationQueue verificationQueue, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that the file does not exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotEqualsStringContent
default void verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, int waitInSeconds)
Verify that actual and expected file does not have the exact same content.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpectedFile
- file to comparewaitInSeconds
- maximum wait time
-
verifyNotEqualsStringContent
default void verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, int waitInSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected file does not have the exact same content.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpectedFile
- file to comparewaitInSeconds
- maximum wait timemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotEqualsStringContent
default void verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, int waitInSeconds, int intervalInMilliSeconds)
Verify that actual and expected file does not have the exact same content.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpectedFile
- file to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in milliseconds
-
verifyNotEqualsStringContent
default void verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, int waitInSeconds, int intervalInMilliSeconds, java.lang.String message, java.lang.Object... params)
Verify that actual and expected file does not have the exact same content.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpectedFile
- file to comparewaitInSeconds
- maximum wait timeintervalInMilliSeconds
- interval between retries in millisecondsmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
-