Project: Eclipse_Platform_UI
Bug 222558 Write a test suite to test null IDecorationContexts
Reported: 2008-03-13 08:53:51 | Status: resolved fixed

Neither the DecoratingLabelProvider or DecoratingStyledCellLabelProvider should ever have a null IDecorationContext. Write a suite that checks that it is not possible to set the IDecorationContext without an assertion error or having it set to the default content (note that DecoratingStyledCellLabelProvider has both conditions possible depending on how you use it).

Files changed in fix:
tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/labelProviders/DecoratingLabelProviderTests.java tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/labelProviders/DecoratingStyledCellLabelProviderTest.java tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/labelProviders/IDecorationContextTest.java