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 Framework
HomePage http://www.springframework.org
DateJan 10, 2008
Filespom (4 KB)  jar (173 KB)  View All
RepositoriesCentralAlfrescoGeomajasJBoss PublicSonatypeTalend Public
Ranking#56 in MvnRepository (See Top Artifacts)
#8 in Testing Frameworks & Tools
Used By11,194 artifacts
VulnerabilitiesVulnerabilities from dependencies:
CVE-2025-22233
CVE-2024-38820
CVE-2024-38819
View 12 more ...

Note: There is a new version for this artifact

New Version7.0.0-M6

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

Provided Dependencies (4)

Category/License Group / ArtifactVersionUpdates
Java Spec
EDL 1.0EPL 1.0
javax.persistence » persistence-api 1.02.2
Java Spec
Apache 2.0
javax.portlet » portlet-api 1.03.0.1
Java Spec
CDDLGPLGPL 2.0
javax.servlet » jsp-api 2.02.2
Java Spec
CDDLGPL 1.1GPL 2.0
javax.servlet » servlet-api 2.44.0.1

Licenses

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

Related Books

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
TestNG Essentials: Definitive Reference for Developers and EngineersTestNG Essentials: Definitive Reference for Developers and Engineers (2025)
by Johnson, Richard
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
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
Spring in Action, Sixth EditionSpring in Action, Sixth Edition (2022)
by Walls, Craig
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
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
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
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
JUnit Pocket GuideJUnit Pocket Guide (2004)
by Kent Beck
JUnit Recipes: Practical Methods for Programmer TestingJUnit Recipes: Practical Methods for Programmer Testing (2004)
by Rainsberger, J B, Stirling, Scott
JUnit Recipes: Practical Methods for Programmer TestingJUnit Recipes: Practical Methods for Programmer Testing (2004)
by Stirling, Scott, Rainsberger, J.B., Stirling, Scott
Pragmatic Unit Testing in Java with JUnitPragmatic Unit Testing in Java with JUnit (2003)
by Hunt, Andy, Thomas, Dave
Pragmatic Unit Testing in Java with JUnit (text only) byA.Hunt.D.ThomasPragmatic Unit Testing in Java with JUnit (text only) byA.Hunt.D.Thomas (2002)
by A.Hunt.D.Thomas
JUnit in ActionJUnit in Action
by Massol, Vincent, Husted, Ted