#420 - Review JodaLocalTime (being stored and fetched using UTC)

This commit is contained in:
Robin Bygrave committed 2016-02-17 21:34:52 +13:00
1 parent a22574b0c9
commit f055a0d0cb
7 files changed
+141 -10

No files matched your search

@@ -2,14 +2,28 @@ package com.avaje.ebeaninternal.server.type;
import org.joda.time.DateTimeZone;
import org.joda.time.LocalDateTime;
import org.joda.time.LocalTime;
import org.junit.Test;
import java.sql.Timestamp;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
public class ScalarTypeJodaLocalTimeTest {
ScalarTypeJodaLocalTime type = new ScalarTypeJodaLocalTime();
@Test
public void toJdbcType_toBeanType() {
LocalTime localTime0 = new LocalTime();
Object time = type.toJdbcType(localTime0);
LocalTime localTime1 = type.toBeanType(time);
assertThat(localTime0).isEqualTo(localTime1);
}
@Test
public void test() {