Class DataMatchUtil
java.lang.Object
org.uitnet.testing.smartfwk.ui.core.utils.DataMatchUtil
public class DataMatchUtil extends Object
- Author:
- Madhav Krishna
-
Constructor Summary
Constructors Constructor Description DataMatchUtil() -
Method Summary
Modifier and Type Method Description static intindexOfExpectedValue(String actualValue, String expectedValue, TextMatchMechanism validationMechanism)Matches the expected values with actual value and returns the index of expected values in actual value.static booleanmatchTextValue(String actualValue, String expectedValue, TextMatchMechanism validationMechanism)static voidvalidateTextValue(String actualValue, String expectedValue, TextMatchMechanism validationMechanism)
-
Constructor Details
-
DataMatchUtil
public DataMatchUtil()
-
-
Method Details
-
matchTextValue
public static boolean matchTextValue(String actualValue, String expectedValue, TextMatchMechanism validationMechanism) -
indexOfExpectedValue
public static int indexOfExpectedValue(String actualValue, String expectedValue, TextMatchMechanism validationMechanism)Matches the expected values with actual value and returns the index of expected values in actual value.- Parameters:
actualValue-expectedValue-validationMechanism-- Returns:
- returns the index of expected values in actual value. -1 is returned when value is not matched.
-
validateTextValue
public static void validateTextValue(String actualValue, String expectedValue, TextMatchMechanism validationMechanism)
-