Spring Test supports the unit testing and integration testing of Spring components with JUnit or TestNG. It provides consistent loading and caching of Spring ApplicationContexts and provides mock objects that you can use to test your code in isolation.

LicenseApache 2.0
CategoriesTesting Frameworks & Tools
Tagsqualitymockingjunitspringtestngframeworktesting
Organization Spring IO
HomePage https://github.com/spring-projects/spring-framework 🔍 Inspect URL
DateMay 06, 2016
Filespom (7 KB)  jar (549 KB)  View All
RepositoriesCentralAlfrescoJBoss PublicJenkins PublicSonatypeSpring ReleasesTalend Public
Ranking#56 in MvnRepository (See Top Artifacts)
#8 in Testing Frameworks & Tools
Used By11,404 artifacts
VulnerabilitiesVulnerabilities from dependencies:
CVE-2025-22233
CVE-2024-38820
CVE-2024-38819
View 19 more ...

Note: There is a new version for this artifact

New Version7.0.0

Scope:
Scope:
Format:
Scope:
Scope:
Scope:
Scope:
Scope:
Scope:

Compile Dependencies (26)

Category/License Group / ArtifactVersionUpdates
JSON Query
Apache 2.0
com.jayway.jsonpath » json-path (optional) 2.1.02.10.0
Expression Lang
javax.el » javax.el-api (optional) 2.2.56.0.1
Dep Injection
Apache 2.0
javax.inject » javax.inject (optional) 12.0.1
Java Spec
Apache 2.0
javax.portlet » portlet-api (optional) 2.03.0.1
Java Spec
EPL 2.0GPL
javax.servlet » javax.servlet-api (optional) 3.0.16.1.0
Java Spec
javax.servlet.jsp » javax.servlet.jsp-api (optional) 2.2.14.0.0
JSP Tag Library
EPL 2.0GPL
javax.servlet.jsp.jstl » javax.servlet.jsp.jstl-api (optional) 1.2.13.0.2
Testing
EPL 2.0
junit » junit (optional) 1 vulnerability 4.126.0.1
Browser Automation
Apache 2.0
net.sourceforge.htmlunit » htmlunit (optional) 2 vulnerabilities 2.194.18.0

Apache 2.0
org.apache.taglibs » taglibs-standard-jstlel (optional) 1.2.11.2.5
AOP
EPL 2.0
org.aspectj » aspectjweaver (optional) 1.8.91.9.25
JVM Languages
Apache 2.0
org.codehaus.groovy » groovy-all (optional) 2 vulnerabilities 2.4.65.0.2
Testing
BSD 3-clause
org.hamcrest » hamcrest-core (optional) 1.33.0
Browser Automation
Apache 2.0
org.seleniumhq.selenium » selenium-htmlunit-driver (optional) 2.48.24.13.0
Testing
Apache 2.0
org.skyscreamer » jsonassert (optional) 1.2.31.5.3
Dep Injection
Apache 2.0
org.springframework » spring-beans (optional) 2 vulnerabilities 4.2.6.RELEASE7.0.0
Dep Injection
Apache 2.0
org.springframework » spring-context (optional) 3 vulnerabilities 4.2.6.RELEASE7.0.0
Core Utils
Apache 2.0
org.springframework » spring-core5 vulnerabilities 4.2.6.RELEASE7.0.0
JDBC Extension
Apache 2.0
org.springframework » spring-jdbc (optional) 4.2.6.RELEASE7.0.0
O/R Mapping
Apache 2.0
org.springframework » spring-orm (optional) 4.2.6.RELEASE7.0.0
Transactions
Apache 2.0
org.springframework » spring-tx (optional) 4.2.6.RELEASE7.0.0
Web Framework
Apache 2.0
org.springframework » spring-web (optional) 6 vulnerabilities 4.2.6.RELEASE7.0.0
Web Framework
Apache 2.0
org.springframework » spring-webmvc (optional) 3 vulnerabilities 4.2.6.RELEASE7.0.0

Apache 2.0
org.springframework » spring-webmvc-portlet (optional) 4.2.6.RELEASE4.3.30.RELEASE
Testing
Apache 2.0
org.testng » testng (optional) 6.9.107.11.0
Testing
BSD 3-clause
xmlunit » xmlunit (optional) 1.62.11.0

Licenses

LicenseURL
The Apache Software License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.txt

Developers

NameEmailDev IdRolesOrganization
Juergen Hoellerjhoeller<at>pivotal.iojhoeller

Related Books

Practical Microservices Architectural Patterns: Build Highly Scalable Distributed Applications with Spring Boot 3 and Spring CloudPractical Microservices Architectural Patterns: Build Highly Scalable Distributed Applications with Spring Boot 3 and Spring Cloud (2025)
by Christudas, Binildas, Telang, Tarun
JUnit & TestNG Demystified: Engineering Clean Java Code with JUnit and TestNGJUnit & TestNG Demystified: Engineering Clean Java Code with JUnit and TestNG (2025)
by Tripathy, Badal
JUnit & TestNG Demystified: Engineering Clean Java Code with JUnit and TestNGJUnit & TestNG Demystified: Engineering Clean Java Code with JUnit and TestNG (2025)
by Tripathy, Badal
Software Architecture with Spring: Design scalable and high-performance Java applications with SpringSoftware Architecture with Spring: Design scalable and high-performance Java applications with Spring (2025)
by Xesquevixos, Wanderson
TestNG Essentials: Definitive Reference for Developers and EngineersTestNG Essentials: Definitive Reference for Developers and Engineers (2025)
by Johnson, Richard
Spring System Design in Practice: Build scalable web applications using microservices and design patterns in Spring and Spring BootSpring System Design in Practice: Build scalable web applications using microservices and design patterns in Spring and Spring Boot (2025)
by Santiago, Rodrigo, Goyal, Shalini
TestNG Interview Questions: Guide to crack any SDET interviewTestNG Interview Questions: Guide to crack any SDET interview (2025)
by PALA, BHASKAR REDDY
Spring Framework Mastery: Build Enterprise-Grade Java Applications with Spring Boot and MicroservicesSpring Framework Mastery: Build Enterprise-Grade Java Applications with Spring Boot and Microservices (2025)
by Rambert, Dennis
Selenium and TestNg: A Beginner’s Guide to Software Test AutomationSelenium and TestNg: A Beginner’s Guide to Software Test Automation (2025)
by Um, Jung, Um, Kevin Chan, Um, Amy Ha
Java Testing Deep Dive: Exploring JUnit, TestNG, and Mocking FrameworksJava Testing Deep Dive: Exploring JUnit, TestNG, and Mocking Frameworks (2025)
by Tripathy, Badal
Pragmatic Unit Testing in Java with JUnitPragmatic Unit Testing in Java with JUnit (2024)
by Langr, Jeff
Spring Boot 3 and Spring Framework 6: Build Scalable, Modern Java Applications with Spring and Spring Boot—From Fundamentals to Advanced Techniques (Rheinwerk Computing)Spring Boot 3 and Spring Framework 6: Build Scalable, Modern Java Applications with Spring and Spring Boot—From Fundamentals to Advanced Techniques (Rheinwerk Computing) (2023)
by Ullenboom, Christian
Pro Spring 6 with Kotlin: An In-depth Guide to Using Kotlin APIs in Spring Framework 6Pro Spring 6 with Kotlin: An In-depth Guide to Using Kotlin APIs in Spring Framework 6 (2023)
by Späth, Peter, Cosmina, Iuliana, Harrop, Rob, Schaefer, Chris
Pro Spring 6: An In-Depth Guide to the Spring FrameworkPro Spring 6: An In-Depth Guide to the Spring Framework (2023)
by Cosmina, Iuliana, Harrop, Rob, Schaefer, Chris, Ho, Clarence
Pro Spring 6: An In-Depth Guide to the Spring FrameworkPro Spring 6: An In-Depth Guide to the Spring Framework (2023)
by Cosmina, Iuliana, Harrop, Rob, Schaefer, Chris, Ho, Clarence
Spring 6 Recipes: A Problem-Solution Approach to Spring FrameworkSpring 6 Recipes: A Problem-Solution Approach to Spring Framework (2023)
by Deinum, Marten, Rubio, Daniel, Long, Josh
Test-Driven Development with Java: Create higher-quality software by writing tests first with SOLID and hexagonal architectureTest-Driven Development with Java: Create higher-quality software by writing tests first with SOLID and hexagonal architecture (2023)
by Mellor, Alan
Spring in Action, Sixth EditionSpring in Action, Sixth Edition (2022)
by Walls, Craig
Learning Test-Driven Development: A Polyglot Guide to Writing Uncluttered CodeLearning Test-Driven Development: A Polyglot Guide to Writing Uncluttered Code (2021)
by Siddiqui, Saleem
Spring Boot: Up and Running: Building Cloud Native Java and Kotlin ApplicationsSpring Boot: Up and Running: Building Cloud Native Java and Kotlin Applications (2021)
by Heckler, Mark
JUnit in Action, Third EditionJUnit in Action, Third Edition (2020)
by Tudose, Catalin
Practical Unit Testing with JUnit and MockitoPractical Unit Testing with JUnit and Mockito (2019)
by Kaczanowski, Tomek
Testing Java Microservices: Using Arquillian, Hoverfly, AssertJ, JUnit, Selenium, and MockitoTesting Java Microservices: Using Arquillian, Hoverfly, AssertJ, JUnit, Selenium, and Mockito (2018)
by Alex Soto Bueno, Andy Gumbrecht, Jason Porter
Getting Started With TestNG: A Java Test Framework (Practical How To Selenium Tutorials)Getting Started With TestNG: A Java Test Framework (Practical How To Selenium Tutorials) (2018)
by Jones II, Rex Allen
Test-Driven Java Development - Second Edition: Invoke TDD principles for end-to-end application developmentTest-Driven Java Development - Second Edition: Invoke TDD principles for end-to-end application development (2018)
by Garcia, Alex, Farcic, Viktor
Selenium Framework Design in Data-Driven Testing: Build data-driven test frameworks using Selenium WebDriver, AppiumDriver, Java, and TestNGSelenium Framework Design in Data-Driven Testing: Build data-driven test frameworks using Selenium WebDriver, AppiumDriver, Java, and TestNG (2018)
by Cocchiaro, Carl
Mastering Software Testing with JUnit 5: Comprehensive guide to develop high quality Java applicationsMastering Software Testing with JUnit 5: Comprehensive guide to develop high quality Java applications (2017)
by Garcia, Boni
Spring 5 Recipes: A Problem-Solution ApproachSpring 5 Recipes: A Problem-Solution Approach (2017)
by Deinum, Marten, Rubio, Daniel, Long, Josh
Beginning Spring Boot 2: Applications and Microservices with the Spring FrameworkBeginning Spring Boot 2: Applications and Microservices with the Spring Framework (2017)
by Prasad Reddy, K. Siva
Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring FrameworkGetting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework (2016)
by Sharma, J, Sarin, Ashish
Junit with examplesJunit with examples (2016)
by Salunke, Mr Sagar
Testing with JUnitTesting with JUnit (2015)
by Appel, Frank
Java For Testers: Learn Java fundamentals fastJava For Testers: Learn Java fundamentals fast (2015)
by Richardson, Mr Alan J
Pragmatic Unit Testing in Java 8 with JUnitPragmatic Unit Testing in Java 8 with JUnit (2015)
by Langr, Jeff, Hunt, Andy, Thomas, Dave
Mastering Unit Testing Using Mockito and JUnitMastering Unit Testing Using Mockito and JUnit (2014)
by Acharya, Sujoy
Getting started with Spring Framework: a hands-on guide to begin developing applications using Spring FrameworkGetting started with Spring Framework: a hands-on guide to begin developing applications using Spring Framework (2014)
by Sharma, J, Sarin, Ashish
Introducing Spring Framework: A PrimerIntroducing Spring Framework: A Primer (2013)
by Gutierrez, Felipe
TestNG Beginner's GuideTestNG Beginner's Guide (2013)
by Menon, Varun
Practical Unit Testing with JUnit and MockitoPractical Unit Testing with JUnit and Mockito (2013)
by Kaczanowski, Tomek
Spring Framework: A Step by Step Approach for Learning Spring FrameworkSpring Framework: A Step by Step Approach for Learning Spring Framework (2013)
by Mudunuri, Srinivas
Getting started with Spring FrameworkGetting started with Spring Framework (2012)
by Sharma, J, Sarin, Ashish
Practical Unit Testing with TestNG and MockitoPractical Unit Testing with TestNG and Mockito (2012)
by Kaczanowski, Tomek
Just Spring: A Lightweight Introduction to the Spring FrameworkJust Spring: A Lightweight Introduction to the Spring Framework (2011)
by Konda, Madhusudhan
JUnit Interview Questions You'll Most Likely Be AskedJUnit Interview Questions You'll Most Likely Be Asked (2011)
by Publishers, Vibrant
JUnit in Action, Second EditionJUnit in Action, Second Edition (2010)
by Tahchiev, Petar, Leme, Felipe, Massol, Vincent, Gregory, Gary
Pro Java EE Spring Patterns: Best Practices and Design Strategies Implementing Java EE Patterns with the Spring Framework (Expert's Voice in Open Source)Pro Java EE Spring Patterns: Best Practices and Design Strategies Implementing Java EE Patterns with the Spring Framework (Expert's Voice in Open Source) (2008)
by Kayal, Dhrubojyoti
Beginning Spring Framework 2Beginning Spring Framework 2 (2007)
by Van de Velde, Thomas, Snyder, Bruce, Dupuis, Christian, Li, Sing, Horton, Anne, Balani, Naveen
Test Driven: TDD and Acceptance TDD for Java DevelopersTest Driven: TDD and Acceptance TDD for Java Developers (2007)
by Koskela, Lasse
Next Generation Java Testing: TestNG and Advanced ConceptsNext Generation Java Testing: TestNG and Advanced Concepts (2007)
by Beust, C\Xe9dric, Suleiman, Hani
Professional Java Development with the Spring FrameworkProfessional Java Development with the Spring Framework (2005)
by Johnson, Rod, H?ller, J?rgen, Arendsen, Alef, Risberg, Thomas, Sampaleanu, Colin