File tree Expand file tree Collapse file tree
spring-security-rest-custom/src/test/java/org/baeldung/live
spring-security-rest-full Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414import org .apache .http .HttpHeaders ;
1515import org .apache .http .HttpResponse ;
1616import org .apache .http .client .methods .HttpGet ;
17+ import org .apache .http .impl .client .CloseableHttpClient ;
1718import org .apache .http .impl .client .DefaultHttpClient ;
1819import org .apache .http .params .BasicHttpParams ;
1920import org .apache .http .params .HttpParams ;
2627
2728public class HttpLiveServiceTemp {
2829
29- private DefaultHttpClient client ;
30+ private CloseableHttpClient client ;
3031
3132 // fixtures
3233
Original file line number Diff line number Diff line change 130130 <dependency >
131131 <groupId >com.google.guava</groupId >
132132 <artifactId >guava</artifactId >
133- <version >14.0.1 </version >
133+ <version >${guava.version} </version >
134134 </dependency >
135+
136+ <!-- logging -->
135137
138+ <dependency >
139+ <groupId >org.slf4j</groupId >
140+ <artifactId >slf4j-api</artifactId >
141+ <version >${org.slf4j.version} </version >
142+ </dependency >
143+ <dependency >
144+ <groupId >ch.qos.logback</groupId >
145+ <artifactId >logback-classic</artifactId >
146+ <version >${logback.version} </version >
147+ <!-- <scope>runtime</scope> -->
148+ </dependency >
149+ <dependency >
150+ <groupId >org.slf4j</groupId >
151+ <artifactId >jcl-over-slf4j</artifactId >
152+ <version >${org.slf4j.version} </version >
153+ <!-- <scope>runtime</scope> --> <!-- some spring dependencies need to compile against jcl -->
154+ </dependency >
155+ <dependency > <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
156+ <groupId >org.slf4j</groupId >
157+ <artifactId >log4j-over-slf4j</artifactId >
158+ <version >${org.slf4j.version} </version >
159+ </dependency >
160+
136161 <!-- test scoped -->
137162
138163 <dependency >
254279 <httpclient .version>4.3.1</httpclient .version>
255280
256281 <rest-assured .version>2.1.0</rest-assured .version>
257- <groovy .version>1.8.9</groovy .version>
258282
259283 <!-- Maven plugins -->
260284 <maven-compiler-plugin .version>3.1</maven-compiler-plugin .version>
You can’t perform that action at this time.
0 commit comments