feat: add reproducible Spring Boot backend skeleton

This commit is contained in:
2026-11-02 11:16:41 +08:00
parent 1fbc2cce57
commit c996df1e54
14 changed files with 812 additions and 12 deletions
@@ -0,0 +1,26 @@
package com.qlinker;
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.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
@SpringBootTest
@AutoConfigureMockMvc
class HealthEndpointTests {
@Autowired
private MockMvc mockMvc;
@Test
void actuatorHealthReturnsUp() throws Exception {
mockMvc.perform(get("/actuator/health"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.status").value("UP"));
}
}
@@ -0,0 +1,12 @@
package com.qlinker;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class QLinkerApplicationTests {
@Test
void contextLoads() {
}
}