diff --git a/bosk-spring-boot-3/build.gradle b/bosk-spring-boot-3/build.gradle index 0925fe9e..a9adad61 100644 --- a/bosk-spring-boot-3/build.gradle +++ b/bosk-spring-boot-3/build.gradle @@ -3,10 +3,6 @@ plugins { id 'bosk.development' id 'bosk.maven-publish' id 'com.github.spotbugs' version '5.1.5' - - // These are needed just for testing - id 'org.springframework.boot' version '3.3.2' - id 'io.spring.dependency-management' version '1.1.3' } java { @@ -16,11 +12,10 @@ java { dependencies { api project(":bosk-jackson") - implementation 'org.springframework.boot:spring-boot-starter-web' - annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' + implementation 'org.springframework.boot:spring-boot-starter-web:3.3.2' + annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:3.3.2" testImplementation project(":bosk-testing") testImplementation project(":lib-testing") - testImplementation 'org.springframework.boot:spring-boot-starter-test' } repositories { diff --git a/bosk-spring-boot-3/src/test/java/works/bosk/spring/boot/ServiceEndpointsTest.java b/bosk-spring-boot-3/src/test/java/works/bosk/spring/boot/ServiceEndpointsTest.java deleted file mode 100644 index 6260fc5a..00000000 --- a/bosk-spring-boot-3/src/test/java/works/bosk/spring/boot/ServiceEndpointsTest.java +++ /dev/null @@ -1,156 +0,0 @@ -package works.bosk.spring.boot; - -import com.fasterxml.jackson.databind.ObjectMapper; -import java.io.IOException; -import java.util.Optional; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.ValueSource; -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.boot.web.servlet.FilterRegistrationBean; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.test.context.TestPropertySource; -import org.springframework.test.web.servlet.MockMvc; -import works.bosk.Bosk; -import works.bosk.StateTreeNode; -import works.bosk.drivers.BufferingDriver; -import works.bosk.jackson.JacksonPlugin; -import works.bosk.spring.boot.ServiceEndpointsTest.BoskState; - -import static com.fasterxml.jackson.databind.SerializationFeature.INDENT_OUTPUT; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; -import static works.bosk.spring.boot.ServiceEndpointsTest.GREETING_VALUE; -import static works.bosk.spring.boot.TestBosk.INITIAL_STATE; - -/** - * Only a partial test because I can't seem to coax Jackson to work. - *
- * More complete testing can be found in HelloServiceEndpointsTest
.
- */
-@SpringBootTest(classes={Config.class, ServiceEndpoints.class, ReadContextFilter.class})
-@AutoConfigureMockMvc
-@TestPropertySource(properties = {"bosk.web.service-path=/bosk"})
-public class ServiceEndpointsTest {
- public record BoskState(Optional