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
All Methods Static Methods Concrete Methods 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)
-
-
-
Method Detail
-
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)
-
-