This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datasource.driverClass=org.postgresql.Driver | |
datasource.jdbcUrl=jdbc:postgresql://127.0.0.1:5888/test_schema | |
datasource.commander=test | |
datasource.commanderPwd=test | |
datasource.querier=testquerier | |
datasource.querierPwd=testquerier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@XmlRootElement(name = "centerInfo") | |
@XmlAccessorType(XmlAccessType.FIELD) | |
public class CenterInfo extends BaseXmlConfig { | |
@XmlAttribute(name = "Id") | |
private String id; | |
@XmlAttribute(name = "Name") | |
private String name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.config.RequestConfig; | |
import org.apache.http.client.methods.HttpUriRequest; | |
import org.apache.http.client.methods.RequestBuilder; | |
import org.apache.http.impl.client.HttpClients; | |
import org.junit.Assume; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(SpringJUnit4ClassRunner.class) | |
@ContextConfiguration(locations = {"classpath:spring-mvc.xml", "classpath:spring-service.xml", | |
"classpath:spring-mapper-test.xml"}) | |
@WebAppConfiguration | |
public class ControllerTest { | |
@Autowired | |
private WebApplicationContext wac; | |
@InjectMocks |