Code improvement
This commit is contained in:
parent
70eb0501c6
commit
5329c54f28
1
pom.xml
1
pom.xml
|
@ -69,7 +69,6 @@
|
||||||
<module>rest-assured</module>
|
<module>rest-assured</module>
|
||||||
<module>rest-testing</module>
|
<module>rest-testing</module>
|
||||||
<module>resteasy</module>
|
<module>resteasy</module>
|
||||||
<module>okhttp</module>
|
|
||||||
|
|
||||||
<module>spring-all</module>
|
<module>spring-all</module>
|
||||||
<module>spring-akka</module>
|
<module>spring-akka</module>
|
||||||
|
|
|
@ -10,3 +10,4 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
|
||||||
- [Http Message Converters with the Spring Framework](http://www.baeldung.com/spring-httpmessageconverter-rest)
|
- [Http Message Converters with the Spring Framework](http://www.baeldung.com/spring-httpmessageconverter-rest)
|
||||||
- [Redirect in Spring](http://www.baeldung.com/spring-redirect-and-forward)
|
- [Redirect in Spring](http://www.baeldung.com/spring-redirect-and-forward)
|
||||||
- [Returning Custom Status Codes from Spring Controllers](http://www.baeldung.com/spring-mvc-controller-custom-http-status-code)
|
- [Returning Custom Status Codes from Spring Controllers](http://www.baeldung.com/spring-mvc-controller-custom-http-status-code)
|
||||||
|
- [A Guide to OkHttp](http://www.baeldung.com/guide-to-okhttp)
|
||||||
|
|
|
@ -18,7 +18,7 @@ import okhttp3.Request;
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
import okhttp3.Response;
|
import okhttp3.Response;
|
||||||
|
|
||||||
public class OkHttpFileUploadingTest {
|
public class OkHttpFileUploadingLiveTest {
|
||||||
|
|
||||||
private static final String BASE_URL = "http://localhost:8080/spring-rest";
|
private static final String BASE_URL = "http://localhost:8080/spring-rest";
|
||||||
|
|
|
@ -14,7 +14,7 @@ import okhttp3.OkHttpClient;
|
||||||
import okhttp3.Request;
|
import okhttp3.Request;
|
||||||
import okhttp3.Response;
|
import okhttp3.Response;
|
||||||
|
|
||||||
public class OkHttpGetTest {
|
public class OkHttpGetLiveTest {
|
||||||
|
|
||||||
private static final String BASE_URL = "http://localhost:8080/spring-rest";
|
private static final String BASE_URL = "http://localhost:8080/spring-rest";
|
||||||
|
|
|
@ -9,7 +9,7 @@ import okhttp3.OkHttpClient;
|
||||||
import okhttp3.Request;
|
import okhttp3.Request;
|
||||||
import okhttp3.Response;
|
import okhttp3.Response;
|
||||||
|
|
||||||
public class OkHttpHeaderTest {
|
public class OkHttpHeaderLiveTest {
|
||||||
|
|
||||||
private static final String SAMPLE_URL = "http://www.github.com";
|
private static final String SAMPLE_URL = "http://www.github.com";
|
||||||
|
|
|
@ -16,10 +16,10 @@ import okhttp3.OkHttpClient;
|
||||||
import okhttp3.Request;
|
import okhttp3.Request;
|
||||||
import okhttp3.Response;
|
import okhttp3.Response;
|
||||||
|
|
||||||
public class OkHttpMiscTest {
|
public class OkHttpMiscLiveTest {
|
||||||
|
|
||||||
private static final String BASE_URL = "http://localhost:8080/spring-rest";
|
private static final String BASE_URL = "http://localhost:8080/spring-rest";
|
||||||
private static Logger logger = LoggerFactory.getLogger(OkHttpMiscTest.class);
|
private static Logger logger = LoggerFactory.getLogger(OkHttpMiscLiveTest.class);
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenSetRequestTimeout_thenFail() throws IOException {
|
public void whenSetRequestTimeout_thenFail() throws IOException {
|
|
@ -18,7 +18,7 @@ import okhttp3.Request;
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
import okhttp3.Response;
|
import okhttp3.Response;
|
||||||
|
|
||||||
public class OkHttpPostingTest {
|
public class OkHttpPostingLiveTest {
|
||||||
|
|
||||||
private static final String BASE_URL = "http://localhost:8080/spring-rest";
|
private static final String BASE_URL = "http://localhost:8080/spring-rest";
|
||||||
private static final String URL_SECURED_BY_BASIC_AUTHENTICATION = "http://browserspy.dk/password-ok.php";
|
private static final String URL_SECURED_BY_BASIC_AUTHENTICATION = "http://browserspy.dk/password-ok.php";
|
|
@ -12,7 +12,7 @@ import okhttp3.OkHttpClient;
|
||||||
import okhttp3.Request;
|
import okhttp3.Request;
|
||||||
import okhttp3.Response;
|
import okhttp3.Response;
|
||||||
|
|
||||||
public class OkHttpRedirectTest {
|
public class OkHttpRedirectLiveTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenSetFollowRedirects_thenNotRedirected() throws IOException {
|
public void whenSetFollowRedirects_thenNotRedirected() throws IOException {
|
Loading…
Reference in New Issue