File tree Expand file tree Collapse file tree 3 files changed +44
-2
lines changed
src/test/java/org/baeldung/httpclient Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 141141 <groupId >org.apache.maven.plugins</groupId >
142142 <artifactId >maven-surefire-plugin</artifactId >
143143 <version >${maven-surefire-plugin.version} </version >
144+ <configuration >
145+ <excludes >
146+ <exclude >**/*LiveTest.java</exclude >
147+ </excludes >
148+ </configuration >
144149 </plugin >
145150
146151 </plugins >
147152
148153 </build >
149154
155+ <profiles >
156+ <profile >
157+ <id >live</id >
158+ <build >
159+ <plugins >
160+ <plugin >
161+ <groupId >org.apache.maven.plugins</groupId >
162+ <artifactId >maven-surefire-plugin</artifactId >
163+ <executions >
164+ <execution >
165+ <phase >integration-test</phase >
166+ <goals >
167+ <goal >test</goal >
168+ </goals >
169+ <configuration >
170+ <excludes >
171+ <exclude >**/*ManualTest.java</exclude >
172+ </excludes >
173+ <includes >
174+ <include >**/*LiveTest.java</include >
175+ </includes >
176+ </configuration >
177+ </execution >
178+ </executions >
179+ <configuration >
180+ <systemPropertyVariables >
181+ <test .mime>json</test .mime>
182+ </systemPropertyVariables >
183+ </configuration >
184+ </plugin >
185+ </plugins >
186+ </build >
187+ </profile >
188+ </profiles >
189+
150190 <properties >
151191 <!-- persistence -->
152192 <hibernate .version>4.3.11.Final</hibernate .version>
Original file line number Diff line number Diff line change 3030import org .junit .Before ;
3131import org .junit .Test ;
3232
33- public class HttpClientMultipartTest {
33+ public class HttpClientMultipartLiveTest {
3434
3535 private static final String SERVER = "http://echo.200please.com" ;
3636 private static final String TEXTFILENAME = "temp.txt" ;
Original file line number Diff line number Diff line change 2727import org .apache .http .impl .client .CloseableHttpClient ;
2828import org .apache .http .impl .client .HttpClients ;
2929import org .apache .http .message .BasicNameValuePair ;
30+ import org .junit .Ignore ;
3031import org .junit .Test ;
3132
32- public class HttpClientPostingTest {
33+ @ Ignore ("need spring-rest module running" )
34+ public class HttpClientPostingLiveTest {
3335 private static final String SAMPLE_URL = "http://localhost:8080/spring-rest/users" ;
3436 private static final String URL_SECURED_BY_BASIC_AUTHENTICATION = "http://browserspy.dk/password-ok.php" ;
3537 private static final String DEFAULT_USER = "test" ;
You can’t perform that action at this time.
0 commit comments