@@ -780,8 +780,8 @@ public void repository() throws Exception {
780
780
*/
781
781
@ Test
782
782
public void repository_renamed () throws Exception {
783
- final GHEventPayload .RepositoryChanges event = GitHub .offline ()
784
- .parseEventPayload (payload .asReader (), GHEventPayload .RepositoryChanges .class );
783
+ final GHEventPayload .Repository event = GitHub .offline ()
784
+ .parseEventPayload (payload .asReader (), GHEventPayload .Repository .class );
785
785
assertThat (event .getAction (), is ("renamed" ));
786
786
assertThat (event .getChanges ().getRepository ().getName ().getFrom (), is ("react-workshop" ));
787
787
assertThat (event .getRepository ().getName (), is ("react-workshop-renamed" ));
@@ -798,8 +798,8 @@ public void repository_renamed() throws Exception {
798
798
*/
799
799
@ Test
800
800
public void repository_transferred_to_org () throws Exception {
801
- final GHEventPayload .RepositoryChanges event = GitHub .offline ()
802
- .parseEventPayload (payload .asReader (), GHEventPayload .RepositoryChanges .class );
801
+ final GHEventPayload .Repository event = GitHub .offline ()
802
+ .parseEventPayload (payload .asReader (), GHEventPayload .Repository .class );
803
803
assertThat (event .getAction (), is ("transferred" ));
804
804
assertThat (event .getChanges ().getOwner ().getFrom ().getUser ().getLogin (), is ("eleanorgoh" ));
805
805
assertThat (event .getChanges ().getOwner ().getFrom ().getUser ().getId (), is (66235606L ));
@@ -814,8 +814,8 @@ public void repository_transferred_to_org() throws Exception {
814
814
*/
815
815
@ Test
816
816
public void repository_transferred_to_user () throws Exception {
817
- final GHEventPayload .RepositoryChanges event = GitHub .offline ()
818
- .parseEventPayload (payload .asReader (), GHEventPayload .RepositoryChanges .class );
817
+ final GHEventPayload .Repository event = GitHub .offline ()
818
+ .parseEventPayload (payload .asReader (), GHEventPayload .Repository .class );
819
819
assertThat (event .getAction (), is ("transferred" ));
820
820
assertThat (event .getChanges ().getOwner ().getFrom ().getOrganization ().getLogin (), is ("EJG-Organization" ));
821
821
assertThat (event .getChanges ().getOwner ().getFrom ().getOrganization ().getId (), is (168135412L ));
0 commit comments