Major
Nice to have
Bugfix
Major
Enhancement
Detail
#23230
Label and ResourceProvider for TabbedLayoutComponent, LayoutComponent and ComponentTile and other small things
As part of #23183, LabelProviders and ResourceProviders, respectively, were developed for several base classes:
- TabbedLayoutComponentResourceProvider
- LayoutComponentLabelProvider
- ComponentTileResourceProvider
The following were also developed as superclasses:
- NullSafeLabelProvider
- NullSafeResourceProvider
The latter return null if the model is null. This way, each provider does not have to do this itself.
These classes are also useful independently of #23183 and are therefore checked in under a separate ticket.
Furthermore, the following small things have been created and are checked in under this ticket for the same reasons:
- Methods to check in tests that an exception is thrown in error cases:
- BasicTestCase.assertThrows(Class<? extends Throwable>, Runnable)
- BasicTestCase.assertThrows(String, Class<? extends Throwable>, Runnable)
- BasicTestCase.assertThrows(Predicate<? super Throwable>, Runnable)
- BasicTestCase.assertThrows(String, Predicate<? super Throwable>, Runnable)
Methods in CollectionUtilShared:
- removePrefix(Collection, int) : List
- removeSuffix(Collection, int) : List
- getCommonPrefix(Collection, Collection) : List
- getCommonSuffix(Collection, Collection) : List
- getAdded(Collection, Collection) : List
- getRemoved(Collection, Collection) : List
- reverse(Collection) : Collection
Test
- TestCollectionUtil.testRemovePrefix()
- TestCollectionUtil.testRemoveSuffix()
- TestCollectionUtil.testGetCommonPrefix()
- TestCollectionUtil.testGetCommonSuffix()
- TestCollectionUtil.testGetAdded()
- TestCollectionUtil.testGetRemoved()