ClientCommit implements BitbucketCommit { @JsonbDateFormat("uuuu-MM-dd'T'HH:mm:ss[.SSSSSSSSS]xx") @Override public final OffsetDateTime getDate() { return date; } ClientCommit();  ClientCommit(final ClientCommit other); final String getType(); final void setType(final String type); @Override final String getHash(); final void setHash(final String hash); @JsonbDateFormat("uuuu-MM-dd'T'HH:mm:ss[.SSSSSSSSS]xx") @Override final OffsetDateTime getDate(); final void setDate(final OffsetDateTime date); @Override final String getMessage(); final void setMessage(final String message); @Override final BitbucketRepository getRepository(); final void setRepository(ClientRepository repository); @Override final BitbucketCommit[] getParents(); void setParents(ClientCommit[] parents); @Override final BitbucketRendered getSummary(); final void setSummary(ClientRendered summary); final BitbucketRendered getRendered(); static final String COMMIT; }
@Test void testDate1() { String string1 = "{\"type\":\"commit\"}"; ClientCommit commit1 = jsonb.fromJson(string1, ClientCommit.class); assertNull(commit1.getDate()); }
@Test void testDate2() { String string1 = "{\"type\":\"commit\",\"date\":\"2001-01-01T01:23:45+09:00\"}"; ClientCommit commit1 = jsonb.fromJson(string1, ClientCommit.class); assertEquals(OffsetDateTime.parse("2001-01-01T01:23:45+09:00"), commit1.getDate()); }
@Test void testDate3() { ClientCommit commit1 = jsonb.fromJson(sample1, ClientCommit.class); assertEquals(SAMPLE1_DATE, commit1.getDate()); }