@@ -75,7 +75,7 @@ public void testSendWithCallback() throws InterruptedException, ExecutionExcepti
7575 public void testFunctionParameters () {
7676 final Option fo1 = new FunctionOption ("1" , "one" );
7777 final Option fo2 = new FunctionOption ("2" , null );
78- final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), Arrays .asList (fo1 , fo2 ), null ){};
78+ final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), Arrays .asList (fo1 , fo2 ), Void . class ){};
7979 assertEquals ("https://a.b.c/(1='one',2=null)" , request .getRequestUrl ().toString ());
8080 request .addFunctionOption (new FunctionOption ("3" ,"two" ));;
8181 assertEquals ("https://a.b.c/(1='one',2=null,3='two')" , request .getRequestUrl ().toString ());
@@ -86,7 +86,7 @@ public void testFunctionParameters() {
8686 public void testQueryParameters () {
8787 final Option q1 = new QueryOption ("q1" ,"option1 " );
8888 final Option q2 = new QueryOption ("q2" ,"option2" );
89- final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), Arrays .asList (q1 , q2 ), null ){};
89+ final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), Arrays .asList (q1 , q2 ), Void . class ){};
9090 assertEquals ("https://a.b.c/?q1=option1%20&q2=option2" , request .getRequestUrl ().toString ());
9191 request .addQueryOption (new QueryOption ("q3" ,"option3" ));
9292 assertEquals ("https://a.b.c/?q1=option1%20&q2=option2&q3=option3" , request .getRequestUrl ().toString ());
@@ -99,14 +99,14 @@ public void testFunctionAndQueryParameters() {
9999 final Option f2 = new FunctionOption ("f2" , null );
100100 final Option q1 = new QueryOption ("q1" ,"option1 " );
101101 final Option q2 = new QueryOption ("q2" ,"option2" );
102- final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), Arrays .asList (f1 , f2 , q1 , q2 ), null ){};
102+ final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), Arrays .asList (f1 , f2 , q1 , q2 ), Void . class ){};
103103 assertEquals ("https://a.b.c/(f1='fun1',f2=null)?q1=option1%20&q2=option2" , request .getRequestUrl ().toString ());
104104 assertEquals (4 , request .getOptions ().size ());
105105 }
106106
107107 @ Test
108108 public void testHttpMethod () {
109- final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), null , null ){};
109+ final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), null , Void . class ){};
110110 assertNull (request .getHttpMethod ());
111111 request .setHttpMethod (HttpMethod .GET );
112112 assertEquals (HttpMethod .GET , request .getHttpMethod ());
@@ -116,7 +116,7 @@ public void testHttpMethod() {
116116 public void testHeader () {
117117 final String expectedHeader = "header key" ;
118118 final String expectedValue = "header value" ;
119- final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), null , null ){};
119+ final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), null , Void . class ){};
120120 assertEquals (0 , request .getHeaders ().size ());
121121 request .addHeader (expectedHeader ,expectedValue );
122122 assertEquals (1 ,request .getHeaders ().size ());
@@ -128,7 +128,7 @@ public void testProtectedProperties() {
128128 assertEquals (0 , mRequest .queryOptions .size ());
129129 final Option q1 = new QueryOption ("q1" ,"option1 " );
130130 final Option f1 = new FunctionOption ("f1" ,"option2" );
131- final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), Arrays .asList (q1 ,f1 ), null ){};
131+ final BaseRequest <Void > request = new BaseRequest <Void >("https://a.b.c/" , mock (IBaseClient .class ), Arrays .asList (q1 ,f1 ), Void . class ){};
132132 assertEquals (1 , request .functionOptions .size ());
133133 assertEquals (1 , request .queryOptions .size ());
134134 assertEquals ("q1" , request .queryOptions .get (0 ).getName ());
0 commit comments