What is assert in JUnit?

What is assert in JUnit?

Assert is nothing but a method we use to determine if the status of a test case is Pass or Fail. We provide the assert methods using the class org. junit. Assert that extends up to java. lang. Object class.

Explore further about using JUnitTest class of org.testng.junit package: Use org.testng.junit.JUnitTest in JUnit With Examples | LambdaTest