@Test public void verifyOnEventConfiguresProperly() throws ComponentLookupException { this.mocker.getComponentUnderTest().onEvent(null, null, null); for (ConverterHelper converter : Engine.getInstance().getRegisteredConverters()) { if (converter instanceof JacksonConverter) { JacksonConverter jconverter = (JacksonConverter) converter; jconverter.getObjectMapper().getSerializationConfig().isEnabled(Feature.WRITE_DATES_AS_TIMESTAMPS); } } }
@Override public void onEvent(Event event, Object source, Object data) { for (ConverterHelper converter : Engine.getInstance().getRegisteredConverters()) { if (converter instanceof JacksonConverter) { JacksonConverter jconverter = (JacksonConverter) converter; jconverter.getObjectMapper().configure(Feature.WRITE_DATES_AS_TIMESTAMPS, false); } } }
ConfigureISODatesInJson extends AbstractEventListener { @Override public void onEvent(Event event, Object source, Object data) { for (ConverterHelper converter : Engine.getInstance().getRegisteredConverters()) { if (converter instanceof JacksonConverter) { JacksonConverter jconverter = (JacksonConverter) converter; jconverter.getObjectMapper().configure(Feature.WRITE_DATES_AS_TIMESTAMPS, false); } } } }
ConfigureISODatesInJson extends AbstractEventListener { @Override public void onEvent(Event event, Object source, Object data) { for (ConverterHelper converter : Engine.getInstance().getRegisteredConverters()) { if (converter instanceof JacksonConverter) { JacksonConverter jconverter = (JacksonConverter) converter; jconverter.getObjectMapper().configure(Feature.WRITE_DATES_AS_TIMESTAMPS, false); } } } ConfigureISODatesInJson(); }
ConfigureISODatesInJson extends AbstractEventListener { @Override public void onEvent(Event event, Object source, Object data) { for (ConverterHelper converter : Engine.getInstance().getRegisteredConverters()) { if (converter instanceof JacksonConverter) { JacksonConverter jconverter = (JacksonConverter) converter; jconverter.getObjectMapper().configure(Feature.WRITE_DATES_AS_TIMESTAMPS, false); } } } ConfigureISODatesInJson(); @Override void onEvent(Event event, Object source, Object data); }
ConfigureISODatesInJson extends AbstractEventListener { @Override public void onEvent(Event event, Object source, Object data) { for (ConverterHelper converter : Engine.getInstance().getRegisteredConverters()) { if (converter instanceof JacksonConverter) { JacksonConverter jconverter = (JacksonConverter) converter; jconverter.getObjectMapper().configure(Feature.WRITE_DATES_AS_TIMESTAMPS, false); } } } ConfigureISODatesInJson(); @Override void onEvent(Event event, Object source, Object data);  }