@@ -0,0 +1,1562 @@
+package com.codeaffine.home.control.admin.ui.preference.collection;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport org.eclipse.jface.viewers.CellEditor;%0Aimport org.eclipse.jface.viewers.ILabelProvider;%0Aimport org.junit.Before;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport com.codeaffine.home.control.admin.ui.test.DisplayHelper;%0A%0Apublic class CollectionPropertyDescriptorTest %7B%0A%0A  @Rule%0A  public final DisplayHelper displayHelper = new DisplayHelper();%0A%0A  private CollectionPropertyDescriptor descriptor;%0A%0A  @Before%0A  public void setUp() %7B%0A    descriptor = new CollectionPropertyDescriptor( %22id%22, %22displayName%22 );%0A  %7D%0A%0A  @Test%0A  public void createPropertyEditor() %7B%0A    CellEditor actual = descriptor.createPropertyEditor( displayHelper.createShell() );%0A%0A    assertThat( actual ).isInstanceOf( CollectionCellEditor.class );%0A  %7D%0A%0A  @Test%0A  public void getLabelProvider() %7B%0A    ILabelProvider labelProvider = descriptor.getLabelProvider();%0A    String actual = labelProvider.getText( %22text%22 );%0A%0A    assertThat( actual ).isEmpty();%0A  %7D%0A%0A  @Test( expected = IllegalArgumentException.class )%0A  public void constructWithNullAsIdArgument() %7B%0A    new CollectionPropertyDescriptor( null, %22displayName%22 );%0A  %7D%0A%0A  @Test( expected = IllegalArgumentException.class )%0A  public void constructWithNullAsDisplayNameArgument() %7B%0A    new CollectionPropertyDescriptor( %22id%22, null );%0A  %7D%0A%0A  @Test( expected = IllegalArgumentException.class )%0A  public void createPropertyEditorWithNullAsParentArgument() %7B%0A    descriptor.createPropertyEditor( null );%0A  %7D%0A%7D

Create test case for CollectionPropertyDescriptor