@Test public final void testWriteValue() throws IOException { final AbstractHessianOutput out = mock(AbstractHessianOutput.class); final DateTime dateTime = new DateTime(0); final long millis = dateTime.toDateTime(DateTimeZone.UTC).getMillis(); testee.writeValue(out, dateTime); verify(out).writeUTCDate(millis); }
@Override protected final void writeValue(final AbstractHessianOutput out, final Object obj) throws IOException { final DateTime dateTime = (DateTime) obj; final long millis = dateTime.toDateTime(DateTimeZone.UTC).getMillis(); out.writeUTCDate(millis); }
JodaDateTimeSerializer extends BaseSerializer { @Override protected final void writeValue(final AbstractHessianOutput out, final Object obj) throws IOException { final DateTime dateTime = (DateTime) obj; final long millis = dateTime.toDateTime(DateTimeZone.UTC).getMillis(); out.writeUTCDate(millis); } }
JodaDateTimeSerializer extends BaseSerializer { @Override protected final void writeValue(final AbstractHessianOutput out, final Object obj) throws IOException { final DateTime dateTime = (DateTime) obj; final long millis = dateTime.toDateTime(DateTimeZone.UTC).getMillis(); out.writeUTCDate(millis); }  }
JodaDateTimeSerializer extends BaseSerializer { @Override protected final void writeValue(final AbstractHessianOutput out, final Object obj) throws IOException { final DateTime dateTime = (DateTime) obj; final long millis = dateTime.toDateTime(DateTimeZone.UTC).getMillis(); out.writeUTCDate(millis); }   }
JodaDateTimeSerializer extends BaseSerializer { @Override protected final void writeValue(final AbstractHessianOutput out, final Object obj) throws IOException { final DateTime dateTime = (DateTime) obj; final long millis = dateTime.toDateTime(DateTimeZone.UTC).getMillis(); out.writeUTCDate(millis); }    }