I am doing regression testing.
In my Aplication I am giving
assertEquals() command for time period which is in miliseconds.But it has very small changes time period and my testcase failed.So I want to add Tolerance for 10milisec. How to add Tolerance?
You can use AssertJ which has the expected assertion: