private boolean doSimpleMatch(String source, String query) { if(exactMatch) { return StringUtil.matchesExact(source, query, caseSensitive); } else { return StringUtil.matchesContains(source, query, caseSensitive); } }
private boolean doSimpleMatch(String source, String query) { if(exactMatch) { return StringUtil.matchesExact(source, query, caseSensitive); } else { return StringUtil.matchesContains(source, query, caseSensitive); } }
/** * Verifies if the output contains the specified data. * @param expectedOutput the data * @throws VerifyFailedException if verification fails */ public void verifyOutputContains(String expectedOutput) { String actualOutput = getOutput(); if(!StringUtil.matchesContains(actualOutput, expectedOutput, caseSensitive)) { throw new VerifyFailedException("actual output: " + actualOutput + " does not match expected output"); } }
/** * Verifies if the output contains the specified data. * @param expectedOutput the data * @throws VerifyFailedException if verification fails */ public void verifyOutputContains(String expectedOutput) { String actualOutput = getOutput(); if(!StringUtil.matchesContains(actualOutput, expectedOutput, caseSensitive)) { throw new VerifyFailedException("actual output: " + actualOutput + " does not match expected output"); } }
/** * Verifies if the output contains the specified data. * @param expectedOutput the data * @throws VerifyFailedException if verification fails */ public void verifyOutputContains(String expectedOutput) { String actualOutput = getOutput(); if(!StringUtil.matchesContains(actualOutput, expectedOutput, caseSensitive)) { throw new VerifyFailedException("actual output: " + actualOutput + " does not match expected output"); } }