MockAsset.getRenditions returns ImmutableList

Description

I hope I'm creating this ticket in the correct section.
If not, please feel free to move it.

The MockAsset.getRenditions method currently returns an ImmutableList:

This does not seem like a big deal, but when calling UIHelper.getBestfitRendition we end up in DamUtil.getBestFitRendition, which tries to sort the renditions when no perfect match can be found. Hence, an UnsupportedOperationException is thrown.

Gliffy Diagrams

Activity

Show:

Robin van Riel August 16, 2016 at 1:09 PM

I'm impressed by your responsiveness.
Thanks for fixing it so fast.

Stefan Seifert August 15, 2016 at 3:28 PM

fixed in AEM mocks 2.0.2 & AEM Mocks 1.8.2

rev. a64960e06fd7d2757aa2752255e8916a63db3313, 3b79b5d44ae61cfc2ed3f6827735a254327f16c2

Fixed

Details

Assignee

Reporter

Components

Priority

Created August 15, 2016 at 11:08 AM
Updated November 13, 2017 at 2:58 PM
Resolved August 15, 2016 at 3:28 PM