[MAGNOLIA-2237] MockNodeData should mimic the way DefaultNodeData works Created: 09/Jul/08 Updated: 23/Jan/13 Resolved: 09/Jul/08 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.6 |
| Type: | Task | Priority: | Major |
| Reporter: | Magnolia International | Assignee: | Magnolia International |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoR: |
Empty
|
| Description |
|
Unfortunately, all get {Type}methods of DefaultNodeData do return null/""/0 when any exception is thrown (in most cases when the property does not exist, but there is absolutely no differentiation). Until this is fixed, MockNodeData should do the same. (the real fix should be letting the exception bubble up, but calling code should be more preventive and check if the property exists before using it) |
| Comments |
| Comment by Magnolia International [ 09/Jul/08 ] |
|
done on trunk |