Class JacksonJsonTest
java.lang.Object
info.ejava.examples.svc.content.quotes.dto.MarshallingTestBase
info.ejava.examples.svc.content.quotes.dto.JacksonJsonTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
private com.fasterxml.jackson.databind.ObjectMapper
Fields inherited from class info.ejava.examples.svc.content.quotes.dto.MarshallingTestBase
DATES_JSON, DATES_XML, faker, ISO_8601_DATETIME_FORMAT, ISO_8601_DATETIME4_FORMAT, ISO_8601_DATETIME5_FORMAT, jul4Utc, quoteDTOFactory, RFC_822_DATETIME_FORMAT, UTC_TZ
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canParseFormat
(String format, ZoneOffset tzo) protected String
get_marshalled_adate
(String dateText) void
init()
<T> String
marshal
(T object) <T> T
Methods inherited from class info.ejava.examples.svc.content.quotes.dto.MarshallingTestBase
marshal_dates, message_dto_marshals, parse_date, quote_dto_marshals, quotesList_dto_marshals, randomZdt, read_by_formats, read_from_formats
-
Field Details
-
mapper
private com.fasterxml.jackson.databind.ObjectMapper mapper -
ADATE_JSON
-
-
Constructor Details
-
JacksonJsonTest
public JacksonJsonTest()
-
-
Method Details
-
init
@BeforeEach public void init()- Overrides:
init
in classMarshallingTestBase
-
marshal
- Specified by:
marshal
in classMarshallingTestBase
- Throws:
IOException
-
unmarshal
- Specified by:
unmarshal
in classMarshallingTestBase
- Throws:
IOException
-
get_marshalled_adate
- Specified by:
get_marshalled_adate
in classMarshallingTestBase
-
get_date
- Specified by:
get_date
in classMarshallingTestBase
-
canParseFormat
- Overrides:
canParseFormat
in classMarshallingTestBase
-