ClientCommit implements BitbucketCommit { @Override public final BitbucketCommit[] getParents() { if (parents != null) { return Arrays.copyOf(parents, parents.length, BitbucketCommit[].class); } return null; } 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 testParents1() { String string1 = "{\"type\":\"commit\"}"; ClientCommit commit1 = jsonb.fromJson(string1, ClientCommit.class); assertNull(commit1.getParents()); }
@Test void testParents2() { String string1 = "{\"type\":\"commit\",\"parents\":[]}"; ClientCommit commit1 = jsonb.fromJson(string1, ClientCommit.class); assertNotNull(commit1.getParents()); assertEquals(0, commit1.getParents().length); }
@Test void testParents3() { ClientCommit commit1 = jsonb.fromJson(sample1, ClientCommit.class); assertNotNull(commit1.getParents()); assertEquals(0, commit1.getParents().length); }