[MAGNOLIA-5963] MockValue shouldn't throw ValueFormatException when getting a valid Long value as String Created: 30/Oct/14  Updated: 30/Oct/14  Resolved: 30/Oct/14

Status: Closed
Project: Magnolia
Component/s: testing
Affects Version/s: None
Fix Version/s: 5.3.5

Type: Improvement Priority: Neutral
Reporter: Philip Mundt Assignee: Philip Mundt
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)

 Description   

When getting a Long (org.apache.jackrabbit.value.BaseValue#getLong()) from a jackrabbit value the internal string will be parsed Long.parseLong() and returned.

Our info.magnolia.test.mock.jcr.MockValue will throw a ValueFormatException instead.


Generated at Mon Feb 12 04:10:02 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.