@@ -50,7 +50,7 @@ public void callDoIndexWithNullReqMessageMustThrowException() throws IOException
5050 GogsWebHook gogsWebHook = new GogsWebHook ();
5151 StaplerResponse staplerResponse = Mockito .mock (ResponseImpl .class );
5252 try {
53- gogsWebHook .doIndex ( null , staplerResponse );
53+ gogsWebHook .internalDoIndex ( new GogsResults (), null , staplerResponse );
5454 } catch (NullPointerException e ) {
5555 String expectedErrMsg = "Null request submitted to doIndex method" ;
5656 assertEquals ("Not the expected error message." , expectedErrMsg , e .getMessage ());
@@ -65,7 +65,7 @@ public void callDoIndexWithNullResponseMessageMustThrowException() throws IOExce
6565 GogsWebHook gogsWebHook = new GogsWebHook ();
6666 StaplerRequest staplerRequest = Mockito .mock (RequestImpl .class );
6767 try {
68- gogsWebHook .doIndex ( staplerRequest , null );
68+ gogsWebHook .internalDoIndex ( new GogsResults (), staplerRequest , null );
6969 } catch (NullPointerException e ) {
7070 String expectedErrMsg = "Null reply submitted to doIndex method" ;
7171 assertEquals ("Not the expected error message." , expectedErrMsg , e .getMessage ());
@@ -128,7 +128,7 @@ public void whenQueryStringIsNullMustThrowException() throws Exception {
128128
129129
130130 try {
131- gogsWebHook .doIndex ( staplerRequest , staplerResponse );
131+ gogsWebHook .internalDoIndex ( new GogsResults (), staplerRequest , staplerResponse );
132132 } catch (NullPointerException e ) {
133133 String expectedErrMsg = "The queryString in the request is null" ;
134134 assertEquals ("Not the expected error message." , expectedErrMsg , e .getMessage ());
0 commit comments