public class TimeZoneAdapterTest extends Object
| Modifier and Type | Field and Description |
|---|---|
private io.debezium.jdbc.TimeZoneAdapter |
adapter |
| Constructor and Description |
|---|
TimeZoneAdapterTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeEach() |
protected Date |
createSqlDate(int year,
Month month,
int dayOfMonth) |
protected Time |
createSqlTime(int hourOfDay,
int minute,
int second,
int milliseconds) |
protected Timestamp |
createSqlTimestamp(int year,
Month month,
int dayOfMonth,
int hourOfDay,
int minute,
int second,
int milliseconds) |
protected Timestamp |
createSqlTimestamp(long secondsFromEpoch,
int millis)
This sets the calendar via the milliseconds past epoch, and this behaves differently than actually setting the various
components of the calendar (see
createSqlTimestamp(int, Month, int, int, int, int, int)). |
protected Date |
createUtilDate(int year,
Month month,
int dayOfMonth,
int hourOfDay,
int minute,
int second,
int milliseconds) |
void |
shouldAdaptSqlDate() |
void |
shouldAdaptSqlTime() |
void |
shouldAdaptSqlTimestamp() |
void |
shouldAdaptSqlTimestampViaSecondsAndMillis() |
void |
shouldAdaptUtilDate() |
public void beforeEach()
public void shouldAdaptSqlDate()
public void shouldAdaptSqlTime()
public void shouldAdaptSqlTimestamp()
public void shouldAdaptSqlTimestampViaSecondsAndMillis()
public void shouldAdaptUtilDate()
protected Time createSqlTime(int hourOfDay, int minute, int second, int milliseconds)
protected Timestamp createSqlTimestamp(long secondsFromEpoch, int millis)
createSqlTimestamp(int, Month, int, int, int, int, int)). This is how the
MySQL Binary Log client library creates timestamps (v2).secondsFromEpoch - the number of seconds since epochmillis - the number of millisecondsprotected Timestamp createSqlTimestamp(int year, Month month, int dayOfMonth, int hourOfDay, int minute, int second, int milliseconds)
Copyright © 2016 JBoss by Red Hat. All rights reserved.