[MAGNOLIA-5445] CoreModuleVersionHandlerTest.usersAndRolesHaveLastActivatedPropertySetOnUpdateTo511 fails on the first day of month Created: 01/Nov/13  Updated: 04/Nov/13  Resolved: 01/Nov/13

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 5.1.1, 5.2
Fix Version/s: 5.1.2, 5.2

Type: Bug Priority: Blocker
Reporter: Jozef Chocholacek Assignee: Jozef Chocholacek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: 5.1.2

 Description   

Using Calendar.roll() method leads to wrong mgnl:created date and thus to failure when the test is run on the first day of a month.



 Comments   
Comment by Daniel Lipp [ 01/Nov/13 ]
  • title is by far to technical - something like "CoreModuleVersionHandlerTest.usersXXX fails on first day of month" is much easier to understand for everybody
  • joda time is a nice lib but we don't use it anywhere, so I wouldn't introduce it just for a simple test setup: e.g. Calendar.add(Calendar.DAY_OF_MONTH, -1) would do the same thing
Generated at Mon Feb 12 04:05:14 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.