[ https://issues.apache.org/jira/browse/SQOOP-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bilung Lee updated SQOOP-449: ----------------------------- Issue Type: Improvement (was: Test) > Use regular expression to verify output in compatibility tests > -------------------------------------------------------------- > > Key: SQOOP-449 > URL: https://issues.apache.org/jira/browse/SQOOP-449 > Project: Sqoop > Issue Type: Improvement > Reporter: Cheolsoo Park > Assignee: Cheolsoo Park > Priority: Minor > Original Estimate: 4h > Remaining Estimate: 4h > > One of OracleCompatTest tests (timestamp2) fails w/ Oracle 11g XE. The > problem is that the verifyReadback function in testutil does string > comparison to verify output, but the output string does not exactly match > with any of expected values. > In fact, doing string comparison is problematic since newer versions of > DBs/drivers may have different output formats, and this test will be broken > again. The better way to write this test would be to use regular expression > rather than string comparison. In addition, there are several tests where the > output string is compared against multiple expected values until succeed. > Using regular expression will eliminate multiple tries as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira