Reputation: 79
boolean b = Testfactory.read_element_file(models).equals(ExcelUtils.readdata("Model Export.xlsx"));
SoftAssert ass = new SoftAssert();
ass.assertEquals(b, true);
in boolean b i comparing two list after debugging i am getting b value is false but the assert is not getting failed. Junit test cases showing passed.Please have a look the attched screen shot here
Upvotes: 0
Views: 165
Reputation: 1481
I would suggest to use simple
Assert.assertTrue(b);
hope this helps,
Upvotes: 0