File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
httpclient/src/test/java/org/baeldung/httpclient
spring-security-rest-full/src/main/java/org/baeldung/spring Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 11package org .baeldung .httpclient ;
22
3+ import org .apache .http .HttpHost ;
4+ import org .apache .http .client .protocol .HttpClientContext ;
5+ import org .apache .http .conn .ConnectionRequest ;
6+ import org .apache .http .conn .routing .HttpRoute ;
7+ import org .apache .http .impl .conn .BasicHttpClientConnectionManager ;
8+ import org .junit .Test ;
9+
310public class HttpClientConnectionManagementTest {
4- //
11+
12+ // tests
13+
14+ @ Test
15+ public final void whenLowLevelConnectionIsEstablished_thenNoExceptions () {
16+ final HttpClientContext context = HttpClientContext .create ();
17+ final BasicHttpClientConnectionManager connManager = new BasicHttpClientConnectionManager ();
18+ final HttpRoute route = new HttpRoute (new HttpHost ("localhost" , 80 ));
19+ final ConnectionRequest connRequest = connManager .requestConnection (route , null );
20+ }
21+
522}
Original file line number Diff line number Diff line change 2323
2424@ Configuration
2525@ EnableTransactionManagement
26- @ PropertySource ({ "classpath:persistence-mysql.properties" })
26+ @ PropertySource ({ "classpath:persistence-${envTarget: mysql} .properties" })
2727@ ComponentScan ({ "org.baeldung.persistence" })
2828// @ImportResource("classpath*:springDataPersistenceConfig.xml")
2929@ EnableJpaRepositories (basePackages = "org.baeldung.persistence.dao" )
You can’t perform that action at this time.
0 commit comments