Folks,
Please assist me in below enlisted queries-
I'm doing JUnit testing using H2 database. I'm testing for Signup and login. So, in this both case I need to create user that I have created in my @BeforeClass in each test class. Now, when I'm running single class test cases, it is working fine (Reason is: It creates user performs the test cases and deleted automatically since I'm using H2 DB). But when I'm running gradlew build it gets failed after first test class. It gives me error "data.helper.ErrorException: User Id must be unique." Any help will be appreciated regarding how to drop the database between each class.
Thanks