Package org.mongojack
Class TestJavaTimeHandling
- java.lang.Object
-
- org.mongojack.MongoDBTestBase
-
- org.mongojack.TestJavaTimeHandling
-
public class TestJavaTimeHandling extends MongoDBTestBase
class TestJavaTimeHandling: Tests the java.time.* handling in MongoJack.- Author:
- dnebinger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestJavaTimeHandling.CalendarContainer
static class
TestJavaTimeHandling.DurationContainer
static class
TestJavaTimeHandling.InstantContainer
static class
TestJavaTimeHandling.LocalDateContainer
static class
TestJavaTimeHandling.LocalDateTimeContainer
static class
TestJavaTimeHandling.LocalTimeContainer
static class
TestJavaTimeHandling.MonthDayContainer
static class
TestJavaTimeHandling.OffsetDateTimeContainer
static class
TestJavaTimeHandling.OffsetTimeContainer
static class
TestJavaTimeHandling.YearContainer
static class
TestJavaTimeHandling.YearMonthContainer
static class
TestJavaTimeHandling.ZonedDateTimeContainer
-
Field Summary
-
Fields inherited from class org.mongojack.MongoDBTestBase
db, mongo, uuidRepresentation
-
-
Constructor Summary
Constructors Constructor Description TestJavaTimeHandling()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testCalendarSavedAsISO8601()
void
testCalendarSavedAsNativeTimestamps()
void
testDurationSavedAsISO8601()
void
testInstantSavedAsISO8601()
void
testInstantSavedAsNativeTimestamps()
void
testLocalDateSavedAsISO8601()
void
testLocalDateSavedAsTimestamps()
void
testLocalDateTimeSavedAsISO8601()
void
testLocalDateTimeSavedAsTimestamps()
void
testLocalTimeSavedAsISO8601()
void
testLocalTimeSavedAsTimestamps()
void
testMonthDaySavedAsISO8601()
void
testMonthDaySavedAsTimestamps()
void
testOffsetDateTimeSavedAsISO8601()
void
testOffsetTimeSavedAsISO8601()
void
testOffsetTimeSavedAsTimestamps()
void
testYearMonthSavedAsISO8601()
void
testYearMonthSavedAsTimestamps()
void
testYearSavedAsISO8601()
void
testYearSavedAsTimestamps()
void
testZonedDateTimeSavedAsISO8601()
-
Methods inherited from class org.mongojack.MongoDBTestBase
configure, connectToDb, disconnectFromDb, getCollection, getCollection, getCollection, getCollection, getCollectionWithView, getMongoCollection, getMongoCollection, getUnderlyingCollection
-
-
-
-
Method Detail
-
setUp
public void setUp()
-
testLocalDateSavedAsTimestamps
public void testLocalDateSavedAsTimestamps()
-
testLocalDateSavedAsISO8601
public void testLocalDateSavedAsISO8601()
-
testLocalTimeSavedAsTimestamps
public void testLocalTimeSavedAsTimestamps()
-
testLocalTimeSavedAsISO8601
public void testLocalTimeSavedAsISO8601()
-
testLocalDateTimeSavedAsTimestamps
public void testLocalDateTimeSavedAsTimestamps()
-
testLocalDateTimeSavedAsISO8601
public void testLocalDateTimeSavedAsISO8601()
-
testZonedDateTimeSavedAsISO8601
public void testZonedDateTimeSavedAsISO8601()
-
testYearSavedAsTimestamps
public void testYearSavedAsTimestamps()
-
testYearSavedAsISO8601
public void testYearSavedAsISO8601()
-
testYearMonthSavedAsTimestamps
public void testYearMonthSavedAsTimestamps()
-
testYearMonthSavedAsISO8601
public void testYearMonthSavedAsISO8601()
-
testMonthDaySavedAsTimestamps
public void testMonthDaySavedAsTimestamps()
-
testMonthDaySavedAsISO8601
public void testMonthDaySavedAsISO8601()
-
testOffsetTimeSavedAsTimestamps
public void testOffsetTimeSavedAsTimestamps()
-
testOffsetTimeSavedAsISO8601
public void testOffsetTimeSavedAsISO8601()
-
testOffsetDateTimeSavedAsISO8601
public void testOffsetDateTimeSavedAsISO8601()
-
testDurationSavedAsISO8601
public void testDurationSavedAsISO8601()
-
testInstantSavedAsISO8601
public void testInstantSavedAsISO8601()
-
testInstantSavedAsNativeTimestamps
public void testInstantSavedAsNativeTimestamps()
-
testCalendarSavedAsISO8601
public void testCalendarSavedAsISO8601()
-
testCalendarSavedAsNativeTimestamps
public void testCalendarSavedAsNativeTimestamps()
-
-