[MGNLUI-396] Location interface is too generic Created: 11/Dec/12 Updated: 11/Feb/13 Resolved: 07/Jan/13 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | app framework |
| Affects Version/s: | 5.0 |
| Fix Version/s: | 5.0 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Espen Jervidalo | Assignee: | Espen Jervidalo |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | app-api | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoR: |
Empty
|
| Date of First Response: |
| Description |
|
Currently the Location interface is too generic, resulting in casts to DefaultLocation throughout the framework. This can be easily fixed by making the interface more specific. move constants into interface will also get rid of some unnecessary imports. |
| Comments |
| Comment by Christopher Zimmermann [ 18/Dec/12 ] |
|
Please create small method in LocationControllerTest to create a "newLocation" for the tests instead of repeating: Location newLocation = new Location() { @Override public String getAppType() { return null; } @Override @Override public String getSubAppId() { return null; } }; |