BitbucketWebhookPush { public final Change[] getChanges() { if (changes != null) { return Arrays.copyOf(changes, changes.length); } return null; } BitbucketWebhookPush();  BitbucketWebhookPush(final BitbucketWebhookPush other); final Change[] getChanges(); final void setChanges(Change[] changes);  }
@Test void testChanges1() { String string1 = "{}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNull(push1.getChanges()); }
@Test void testChanges2() { String string1 = "{\"changes\":[]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNotNull(push1.getChanges()); assertEquals(0, push1.getChanges().length); }
@Test void testChanges3() { String string1 = "{\"changes\":[{}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNotNull(push1.getChanges()); assertEquals(1, push1.getChanges().length); assertNotNull(push1.getChanges()[0]); }
@Test void testChangeCreated1() { String string1 = "{\"changes\":[{}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertEquals(false, push1.getChanges()[0].isCreated()); }
@Test void testChangeCreated2() { String string1 = "{\"changes\":[{\"created\":true}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertEquals(true, push1.getChanges()[0].isCreated()); }
@Test void testChangeClosed1() { String string1 = "{\"changes\":[{}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertEquals(false, push1.getChanges()[0].isClosed()); }
@Test void testChangeClosed2() { String string1 = "{\"changes\":[{\"closed\":true}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertEquals(true, push1.getChanges()[0].isClosed()); }
@Test void testChangeForced1() { String string1 = "{\"changes\":[{}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertEquals(false, push1.getChanges()[0].isForced()); }
@Test void testChangeForced2() { String string1 = "{\"changes\":[{\"forced\":true}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertEquals(true, push1.getChanges()[0].isForced()); }
@Test void testChangeTruncated1() { String string1 = "{\"changes\":[{}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertEquals(false, push1.getChanges()[0].isTruncated()); }
@Test void testChangeTruncated2() { String string1 = "{\"changes\":[{\"truncated\":true}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertEquals(true, push1.getChanges()[0].isTruncated()); }
@Test void testChangeOld1() { String string1 = "{\"changes\":[{}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNull(push1.getChanges()[0].getOld()); }
@Test void testChangeOld2() { String string1 = "{\"changes\":[{\"old\":{}}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNotNull(push1.getChanges()[0].getOld()); }
@Test void testChangeNew1() { String string1 = "{\"changes\":[{}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNull(push1.getChanges()[0].getNew()); }
@Test void testChangeNew2() { String string1 = "{\"changes\":[{\"new\":{}}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNotNull(push1.getChanges()[0].getNew()); }
@Test void testChangeCommits1() { String string1 = "{\"changes\":[{}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNull(push1.getChanges()[0].getCommits()); }
@Test void testChangeCommits2() { String string1 = "{\"changes\":[{\"commits\":[]}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNotNull(push1.getChanges()[0].getCommits()); assertEquals(0, push1.getChanges()[0].getCommits().length); }
@Disabled("Not implemented") @Test void testChangeCommits3() { String string1 = "{\"changes\":[{\"commits\":[{}]}]}"; BitbucketWebhookPush push1 = jsonb.fromJson(string1, BitbucketWebhookPush.class); assertNotNull(push1.getChanges()[0].getCommits()); assertEquals(1, push1.getChanges()[0].getCommits().length); assertNotNull(push1.getChanges()[0].getCommits()[0]); }