Skip to content

Commit

Permalink
Refactor BaseDQLE2EIT (#31397)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored May 26, 2024
1 parent 410f229 commit db14c46
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import javax.xml.bind.JAXBException;
import java.io.IOException;
import java.math.BigDecimal;
import java.sql.Clob;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
Expand Down Expand Up @@ -188,6 +189,8 @@ private void assertRow(final ResultSet actualResultSet, final ResultSetMetaData
? expectedResultSet.getTimestamp(i + 1).toLocalDateTime().format(DateTimeFormatterFactory.getStandardFormatter())
: actualValue;
assertThat(String.valueOf(convertedActualValue), is(String.valueOf(convertedExpectedValue)));
} else if (expectedValue instanceof Clob) {
assertThat(String.valueOf(actualValue), is(((Clob) expectedValue).getSubString(1, (int) ((Clob) expectedValue).length())));
} else if (actualValue instanceof String && expectedValue instanceof byte[]) {
assertThat(actualValue, is(new String((byte[]) expectedValue)));
} else {
Expand Down

0 comments on commit db14c46

Please sign in to comment.