Interface CFileVerifier
-
- All Superinterfaces:
CBaseState<java.io.File>
,CBaseVerifier<java.io.File>
,CBaseWaiter<java.io.File>
,CObjectVerifier<java.io.File,CFileState>
,java.io.Serializable
- All Known Subinterfaces:
CDynamicFileExtension
,CFileWaitVerifier
,CStaticFileExtension
- All Known Implementing Classes:
CFile
public interface CFileVerifier extends CObjectVerifier<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)
Verify that actual and expected file have the exact same content.default void
verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, java.lang.String message, java.lang.Object... params)
Verify that actual and expected file have the exact same content.default void
verifyExists(CVerificationQueue verificationQueue)
Verify that the file existsdefault void
verifyExists(CVerificationQueue verificationQueue, java.lang.String message, java.lang.Object... params)
Verify that the file existsdefault void
verifyIsNotExists(CVerificationQueue verificationQueue)
Verify that the file does not existsdefault void
verifyIsNotExists(CVerificationQueue verificationQueue, java.lang.String message, java.lang.Object... params)
Verify that the file does not existsdefault void
verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile)
Verify that actual and expected file does not have the exact same content.default void
verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, 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.CObjectVerifier
verifyEquals, verifyEquals, verifyEqualsAny, verifyEqualsAny, verifyEqualsNone, verifyEqualsNone, verifyIsNotNull, verifyIsNotNull, verifyIsNull, verifyIsNull, verifyNotEquals, verifyNotEquals
-
-
-
-
Method Detail
-
_toState
default CFileState _toState(java.lang.Object e)
- Specified by:
_toState
in interfaceCObjectVerifier<java.io.File,CFileState>
-
verifyEqualsStringContent
default void verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile)
Verify that actual and expected file have the exact same content.- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instanceexpectedFile
- file to compare
-
verifyEqualsStringContent
default void verifyEqualsStringContent(CVerificationQueue verificationQueue, java.io.File expectedFile, 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 comparemessage
- 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)
Verify that the file exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instance
-
verifyExists
default void verifyExists(CVerificationQueue verificationQueue, java.lang.String message, java.lang.Object... params)
Verify that the file exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancemessage
- 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)
Verify that the file does not exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instance
-
verifyIsNotExists
default void verifyIsNotExists(CVerificationQueue verificationQueue, java.lang.String message, java.lang.Object... params)
Verify that the file does not exists- Parameters:
verificationQueue
- CTest, CVerifier or any other verification queue instancemessage
- 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)
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 compare
-
verifyNotEqualsStringContent
default void verifyNotEqualsStringContent(CVerificationQueue verificationQueue, CFile expectedFile, 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 comparemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
-