Why are tests running successfully when running as Junit test but when building the pom file, there are test failures and build failure?
I dont have any error and tests run successfully when its run as Junit. But on Building that project’s pom, the following error is coming and the build is being failed because of these test failure.