Hi,
I have seen another error during tests on my local machine.
This time it was an acceptance test:
createHoliday(org.mifos.test.acceptance.holiday.HolidayTest) Time
elapsed: 4.488 sec <<< FAILURE!
java.lang.AssertionError: expected:<Review_holidayCreation> but
was:<create_officeHoliday>
at org.testng.Assert.fail(Assert.java:86)
at org.testng.Assert.failNotEquals(Assert.java:440)
at org.testng.Assert.assertEquals(Assert.java:110)
at org.testng.Assert.assertEquals(Assert.java:131)
at org.testng.Assert.assertEquals(Assert.java:141)
at
org.mifos.test.acceptance.framework.AbstractPage.verifyPage(AbstractPage.java:65)
at
org.mifos.test.acceptance.framework.holiday.CreateHolidayConfirmationPage.verifyPage(CreateHolidayConfirmationPage.java:33)
at
org.mifos.test.acceptance.holiday.HolidayTest.createHoliday(HolidayTest.java:84)
I fixed this by loading proper dataset at the beginning of the test:
dbUnitUtilities.loadDataFromFile("acceptance_default_003_dbunit.xml.zip", dataSource);
Do we have any consistent policy regarding preparing/cleaning test data
in integration/acceptance tests? Such mysterious test failures can be
really frustrating ;)
Yours sincerely,
Jakub.
--
Jakub Sławiński
SolDevelo
Gdynia, Poland.
------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups "Mifos Developer" group.
To post to this group, send email to
mifosde...@googlegroups.com.
To unsubscribe from this group, send email to
mifosdevelope...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/mifosdeveloper?hl=en.