Skip to content
Snippets Groups Projects
Commit f939edf4 authored by Mingyuan Chen's avatar Mingyuan Chen
Browse files

Delete IntegrationTest.java

parent b6bc50dc
Branches
No related tags found
No related merge requests found
package com.cardiff.cmyTest;
import com.cardiff.client_project.HealthCareApplication;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.web.servlet.MockMvc;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
@SpringBootTest(classes = HealthCareApplication.class, properties = {
"spring.datasource.url=jdbc:mysql://localhost:3306/healthcare?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC",
"spring.datasource.username=root",
"spring.datasource.password=472500",
"spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver"
})
@AutoConfigureMockMvc(addFilters = false)
public class IntegrationTest {
@Autowired
private MockMvc mockMvc;
@Test
void testGetAllHospitalsIntegration() throws Exception {
mockMvc.perform(get("/commonAdmin/hospital/all"))
.andExpect(status().isOk());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment