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, startDb
-
-
-
-
Method Detail
-
setUp
@BeforeEach public void setUp()
-
testLocalDateSavedAsTimestamps
@Test public void testLocalDateSavedAsTimestamps()
-
testLocalDateSavedAsISO8601
@Test public void testLocalDateSavedAsISO8601()
-
testLocalTimeSavedAsTimestamps
@Test public void testLocalTimeSavedAsTimestamps()
-
testLocalTimeSavedAsISO8601
@Test public void testLocalTimeSavedAsISO8601()
-
testLocalDateTimeSavedAsTimestamps
@Test public void testLocalDateTimeSavedAsTimestamps()
-
testLocalDateTimeSavedAsISO8601
@Test public void testLocalDateTimeSavedAsISO8601()
-
testZonedDateTimeSavedAsISO8601
@Test public void testZonedDateTimeSavedAsISO8601()
-
testYearSavedAsTimestamps
@Test public void testYearSavedAsTimestamps()
-
testYearSavedAsISO8601
@Test public void testYearSavedAsISO8601()
-
testYearMonthSavedAsTimestamps
@Test public void testYearMonthSavedAsTimestamps()
-
testYearMonthSavedAsISO8601
@Test public void testYearMonthSavedAsISO8601()
-
testMonthDaySavedAsTimestamps
@Test public void testMonthDaySavedAsTimestamps()
-
testMonthDaySavedAsISO8601
@Test public void testMonthDaySavedAsISO8601()
-
testOffsetTimeSavedAsTimestamps
@Test public void testOffsetTimeSavedAsTimestamps()
-
testOffsetTimeSavedAsISO8601
@Test public void testOffsetTimeSavedAsISO8601()
-
testOffsetDateTimeSavedAsISO8601
@Test public void testOffsetDateTimeSavedAsISO8601()
-
testDurationSavedAsISO8601
@Test public void testDurationSavedAsISO8601()
-
testInstantSavedAsISO8601
@Test public void testInstantSavedAsISO8601()
-
testInstantSavedAsNativeTimestamps
@Test public void testInstantSavedAsNativeTimestamps()
-
testCalendarSavedAsISO8601
@Test public void testCalendarSavedAsISO8601()
-
testCalendarSavedAsNativeTimestamps
@Test public void testCalendarSavedAsNativeTimestamps()
-
-