[BAEL-14088] - Moved interceptop, rest config and live test back to spring-rest module

This commit is contained in:
amit2103 2019-04-15 00:05:03 +05:30
parent f737435586
commit 10897b14b8
4 changed files with 35 additions and 4 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.config;
package com.baeldung.sampleapp.config;
import java.util.ArrayList;
import java.util.List;
@ -9,7 +9,7 @@ import org.springframework.http.client.ClientHttpRequestInterceptor;
import org.springframework.util.CollectionUtils;
import org.springframework.web.client.RestTemplate;
import com.baeldung.interceptors.RestTemplateHeaderModifierInterceptor;
import com.baeldung.sampleapp.interceptors.RestTemplateHeaderModifierInterceptor;
@Configuration
public class RestClientConfig {

View File

@ -0,0 +1,31 @@
package com.baeldung.transfer;
public class LoginForm {
private String username;
private String password;
public LoginForm() {
}
public LoginForm(String username, String password) {
super();
this.username = username;
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}

View File

@ -16,7 +16,7 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.client.RestTemplate;
import com.baeldung.config.RestClientConfig;
import com.baeldung.sampleapp.config.RestClientConfig;
import com.baeldung.transfer.LoginForm;
@RunWith(SpringJUnit4ClassRunner.class)