Skip to content

Commit

Permalink
chore: support LocalDateTime jdbc values (#3029)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuriy Movchan <Yuriy.Movchan@gmail.com>
  • Loading branch information
yuremm and yurem authored Nov 18, 2022
1 parent c80548c commit 6681c45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
public class PageConfig {

public static int WAIT_OPERATION_TIMEOUT = 60;
public static int WAIT_OPERATION_TIMEOUT = 30;

private final WebDriver driver;
private final Map<String, String> testKeys = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.text.SimpleDateFormat;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.format.DateTimeParseException;
import java.util.ArrayList;
import java.util.Collection;
Expand Down Expand Up @@ -659,6 +660,9 @@ private List<AttributeData> getAttributeDataList(TableMapping tableMapping, Resu
} else if (attributeObject instanceof Timestamp) {
attributeValueObjects = new Object[] {
new java.util.Date(((Timestamp) attributeObject).getTime()) };
} else if (attributeObject instanceof LocalDateTime) {
attributeValueObjects = new Object[] {
new java.util.Date(Timestamp.valueOf((LocalDateTime) attributeObject).getTime()) };
} else {
Object value = attributeObject.toString();
attributeValueObjects = new Object[] { value };
Expand Down

0 comments on commit 6681c45

Please sign in to comment.