Pavel Matusevich
04/12/2022, 6:29 AMCaused by:
org.opentest4j.AssertionFailedError: Array elements differ at index 0. Expected element <Lesson(place=4, timeConstraints=TimeConstraints(startHour=11, startMinute=25, endHour=12, endMinute=10), title=Биология, classID=8, teacherID=104631, journalID=null)>, actual element <Lesson(place=4, timeConstraints=TimeConstraints(startHour=11, startMinute=25, endHour=12, endMinute=10), title=Биология, classID=8, teacherID=104631, journalID=100125)>.
Expected <[Lesson(place=4, timeConstraints=TimeConstraints(startHour=11, startMinute=25, endHour=12, endMinute=10), title=Биология, classID=8, teacherID=104631, journalID=null)]>, actual <[Lesson(place=4, timeConstraints=TimeConstraints(startHour=11, startMinute=25, endHour=12, endMinute=10), title=Биология, classID=8, teacherID=104631, journalID=100125)]>.
The most bizzare part of that assertion fail is part with journalID=null
in expected element. The problem is that there are no null journal ID's in tests.
Does anybody know what is my problem?
Source code for tests (the failing one is marked): https://github.com/Neitex/Schools_Parser/blob/74c9fb9ed14b47cce4d173dc288d0a91a088b3ed/src/test/kotlin/com/neitex/SchoolsByParserTest.kt#L430
Source code of Lesson constructor (this is a regular data class, nothing special): https://github.com/Neitex/Schools_Parser/blob/74c9fb9ed14b47cce4d173dc288d0a91a088b3ed/src/main/kotlin/com/neitex/DataClasses.kt#L63
Thanks in advance!Rob Elliot
04/12/2022, 8:14 AMRob Elliot
04/12/2022, 8:14 AMRob Elliot
04/12/2022, 8:15 AMnull
journal id is actually in timetable.wednesday.first[0]
Pavel Matusevich
04/12/2022, 9:26 AM