File tree 1 file changed +9
-0
lines changed
src/test/java/com/ning/http/client/async 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 19
19
import com .ning .http .client .AsyncHttpClient ;
20
20
import com .ning .http .client .AsyncHttpClientConfig ;
21
21
import com .ning .http .client .AsyncHttpClientConfig .Builder ;
22
+ import com .ning .http .client .AsyncHttpClientConfigBean ;
22
23
import com .ning .http .client .AsyncHttpProviderConfig ;
23
24
import com .ning .http .client .Cookie ;
24
25
import com .ning .http .client .FluentCaseInsensitiveStringsMap ;
@@ -1593,4 +1594,12 @@ public void invalidUri() throws Exception {
1593
1594
Response r = c .executeRequest (builder .build ()).get ();
1594
1595
assertEquals (200 , r .getStatusCode ());
1595
1596
}
1597
+
1598
+ @ Test (groups = {"standalone" , "default_provider" })
1599
+ public void asyncHttpClientConfigBeanTest () throws Exception {
1600
+ AsyncHttpClient c = getAsyncHttpClient (new AsyncHttpClientConfigBean ().setUserAgent ("test" ));
1601
+ AsyncHttpClient .BoundRequestBuilder builder = c .prepareGet (getTargetUrl ());
1602
+ Response r = c .executeRequest (builder .build ()).get ();
1603
+ assertEquals (200 , r .getStatusCode ());
1604
+ }
1596
1605
}
You can’t perform that action at this time.
0 commit comments