CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/maven-org-springframework-boot--spring-boot-dependencies

Spring Boot Dependencies BOM that provides centralized dependency management for the Spring Boot ecosystem with 200+ library definitions.

Pending
Overview
Eval results
Files

testing.mddocs/

Testing Libraries

Testing frameworks, mocking libraries, and test containers with Spring Boot test integration. These libraries provide comprehensive testing capabilities for unit, integration, and end-to-end testing.

Capabilities

Core Testing Frameworks

Fundamental testing frameworks with managed versions and Spring integration.

// JUnit Jupiter (JUnit 5)
'org.junit.jupiter:junit-jupiter'                        // 5.12.2
'org.junit.jupiter:junit-jupiter-api'                    // 5.12.2
'org.junit.jupiter:junit-jupiter-engine'                 // 5.12.2
'org.junit.jupiter:junit-jupiter-params'                 // 5.12.2

// JUnit Platform
'org.junit.platform:junit-platform-engine'              // 1.11.3
'org.junit.platform:junit-platform-launcher'            // 1.11.3
'org.junit.platform:junit-platform-commons'             // 1.11.3

// JUnit 4 (legacy support)
'junit:junit'                                            // 4.13.2

// TestNG alternative
// Note: TestNG not included in Spring Boot Dependencies BOM

Mocking and Stubbing

Mocking frameworks for unit testing with dependency isolation.

// Mockito
'org.mockito:mockito-core'                               // 5.15.0
'org.mockito:mockito-junit-jupiter'                      // 5.15.0
'org.mockito:mockito-inline'                             // 5.15.0

// Additional mocking utilities
'org.mockito:mockito-android'                            // 5.15.0
'org.mockito:mockito-errorprone'                         // 5.15.0

Assertion Libraries

Fluent assertion libraries for readable test code.

// AssertJ
'org.assertj:assertj-core'                               // 3.26.3

// Hamcrest matchers
'org.hamcrest:hamcrest'                                  // 3.0
'org.hamcrest:hamcrest-core'                             // 3.0
'org.hamcrest:hamcrest-library'                          // 3.0

// JSON assertions
'org.skyscreamer:jsonassert'                             // 1.5.3

// XML assertions
'org.xmlunit:xmlunit-core'                               // 2.10.2
'org.xmlunit:xmlunit-matchers'                           // 2.10.2
'org.xmlunit:xmlunit-assertj'                            // 2.10.2

Spring Boot Testing

Spring Boot-specific testing support and auto-configuration.

// Spring Boot test starter (includes JUnit, Mockito, AssertJ, Spring Test)
'org.springframework.boot:spring-boot-starter-test'      // 3.5.3

// Spring Boot test framework
'org.springframework.boot:spring-boot-test'              // 3.5.3
'org.springframework.boot:spring-boot-test-autoconfigure' // 3.5.3

// Testcontainers integration
'org.springframework.boot:spring-boot-testcontainers'    // 3.5.3

Container Testing

Integration testing with real services using containers.

// Testcontainers core
'org.testcontainers:testcontainers'                      // 1.21.2
'org.testcontainers:junit-jupiter'                       // 1.21.2

// Database containers
'org.testcontainers:postgresql'                          // 1.21.2
'org.testcontainers:mysql'                               // 1.21.2
'org.testcontainers:mariadb'                             // 1.21.2
'org.testcontainers:mssqlserver'                         // 1.21.2
'org.testcontainers:oracle-xe'                           // 1.21.2
'org.testcontainers:oracle-free'                         // 1.21.2

// NoSQL containers
'org.testcontainers:mongodb'                             // 1.21.2
'org.testcontainers:neo4j'                               // 1.21.2
'org.testcontainers:cassandra'                           // 1.21.2
'org.testcontainers:couchbase'                           // 1.21.2
'org.testcontainers:elasticsearch'                       // 1.21.2
'org.testcontainers:clickhouse'                          // 1.21.2

// Message broker containers
'org.testcontainers:kafka'                               // 1.21.2
'org.testcontainers:rabbitmq'                            // 1.21.2
'org.testcontainers:pulsar'                              // 1.21.2
'org.testcontainers:activemq'                            // 1.21.2
'org.testcontainers:redpanda'                            // 1.21.2

// Cache and data store containers
'com.redis:testcontainers-redis'                         // 2.2.4
'org.testcontainers:r2dbc'                               // 1.21.2

// Observability containers
'org.testcontainers:grafana'                             // 1.21.2

// JDBC URL support
'org.testcontainers:jdbc'                                // 1.21.2

Web Testing

Web layer testing with mock servers and browser automation.

// Spring MVC Test
'org.springframework:spring-test'                        // 6.2.8

// WebTestClient (for reactive web testing)
'org.springframework:spring-webflux'                     // 6.2.8

// REST API testing
'io.rest-assured:rest-assured'                           // 5.5.5
'io.rest-assured:json-path'                              // 5.5.5
'io.rest-assured:xml-path'                               // 5.5.5
'io.rest-assured:json-schema-validator'                  // 5.5.5

// Mock web server
'com.squareup.okhttp3:mockwebserver'                     // (managed via other dependencies)

// Headless browser testing
'org.htmlunit:htmlunit'                                  // 4.11.1

// Selenium WebDriver
'org.seleniumhq.selenium:selenium-java'                  // 4.31.0
'org.seleniumhq.selenium:selenium-chrome-driver'         // 4.31.0
'org.seleniumhq.selenium:selenium-firefox-driver'        // 4.31.0
'org.seleniumhq.selenium:selenium-edge-driver'           // 4.31.0
'org.seleniumhq.selenium:selenium-safari-driver'         // 4.31.0
'org.seleniumhq.selenium:htmlunit3-driver'               // 4.30.0

Asynchronous Testing

Testing support for asynchronous and reactive code.

// Awaitility (async testing utilities)
'org.awaitility:awaitility'                              // 4.2.2
'org.awaitility:awaitility-groovy'                       // 4.2.2
'org.awaitility:awaitility-kotlin'                       // 4.2.2

// Reactor Test
'io.projectreactor:reactor-test'                         // (managed via reactor-bom)

// Spring Test reactive support  
'org.springframework:spring-webflux'                     // 6.2.8

Framework-Specific Testing

Testing support for specific frameworks and technologies.

// Spring Security testing
'org.springframework.security:spring-security-test'      // 6.5.1

// Spring Data testing
'org.springframework.data:spring-data-commons'           // 3.4.1

// Spring Batch testing
'org.springframework.batch:spring-batch-test'            // 5.2.2

// Spring Integration testing
'org.springframework.integration:spring-integration-test' // 6.5.0

// Spring AMQP testing
'org.springframework.amqp:spring-rabbit-test'            // 3.2.5

// Spring Kafka testing
'org.springframework.kafka:spring-kafka-test'            // 3.3.7

// GraphQL testing
'org.springframework.graphql:spring-graphql-test'        // 1.4.0

Usage Examples

Basic Unit Testing

dependencies {
    implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.3')
    
    implementation 'org.springframework.boot:spring-boot-starter'
    
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    // Includes: JUnit Jupiter, Mockito, AssertJ, Spring Test, JSONassert, Hamcrest
}

Integration Testing with Testcontainers

dependencies {
    implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.3')
    
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'org.springframework.boot:spring-boot-testcontainers'
    testImplementation 'org.testcontainers:junit-jupiter'
    testImplementation 'org.testcontainers:postgresql'
}

Web Layer Testing

dependencies {
    implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.3')
    
    implementation 'org.springframework.boot:spring-boot-starter-web'
    
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'io.rest-assured:rest-assured'
    testImplementation 'org.htmlunit:htmlunit'
}

Reactive Testing

dependencies {
    implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.3')
    
    implementation 'org.springframework.boot:spring-boot-starter-webflux'
    implementation 'org.springframework.boot:spring-boot-starter-data-r2dbc'
    
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'io.projectreactor:reactor-test'
    testImplementation 'org.awaitility:awaitility'
}

Security Testing

dependencies {
    implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.3')
    
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.springframework.boot:spring-boot-starter-security'
    
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'org.springframework.security:spring-security-test'
}

Message Broker Testing

dependencies {
    implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.3')
    
    implementation 'org.springframework.boot:spring-boot-starter-amqp'
    implementation 'org.springframework.kafka:spring-kafka'
    
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'org.springframework.boot:spring-boot-testcontainers'
    testImplementation 'org.testcontainers:rabbitmq'
    testImplementation 'org.testcontainers:kafka'
    testImplementation 'org.springframework.amqp:spring-rabbit-test'
    testImplementation 'org.springframework.kafka:spring-kafka-test'
}

Browser Testing with Selenium

dependencies {
    implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.3')
    
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
    
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'org.seleniumhq.selenium:selenium-java'
    testImplementation 'org.seleniumhq.selenium:selenium-chrome-driver'
    testImplementation 'org.testcontainers:selenium'
}

Multi-Database Testing

dependencies {
    implementation platform('org.springframework.boot:spring-boot-dependencies:3.5.3')
    
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
    implementation 'org.springframework.boot:spring-boot-starter-data-redis'
    
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'org.springframework.boot:spring-boot-testcontainers'
    testImplementation 'org.testcontainers:junit-jupiter'
    testImplementation 'org.testcontainers:postgresql'
    testImplementation 'org.testcontainers:mongodb'
    testImplementation 'com.redis:testcontainers-redis'
}

Install with Tessl CLI

npx tessl i tessl/maven-org-springframework-boot--spring-boot-dependencies

docs

data-access.md

index.md

observability.md

spring-boot-components.md

spring-integration.md

testing.md

web-http.md

tile.json