๐ # Spring Boot + TestNG Unit Test Simple Example
In this project i have wrote test cases for a Spring Boot Application using TestNG. TestNG is a testing framework inspired from JUnit and NUnit. It also introduces some new functionalities of its own that make it more powerful and easier to use. TestNG is an open source automated testing framework where NG means NextGeneration.
In this i have used common TestNG annotations including @Test
, @BeforeMethod
, @AfterMethod
, @BeforeClass
, @AfterClass
, @BeforeGroups
, @AfterGroups
, @BeforeSuite
, @AfterSuite
, @BeforeTest
& @AfterTest
Following technologies being used
- SpringBoot 4.0.6.RELEASE
- Maven 3
- JDK 1.8
- TestNG 6.10
๐ for more advance use of unit testing you can reffer to Simple Spring Hibernate Application Using Annotations