Class GridControlDetailPanelRenderer_PTest
- java.lang.Object
-
- org.eclipse.emf.ecp.view.spi.table.nebula.grid.GridControlDetailPanelRenderer_PTest
-
public class GridControlDetailPanelRenderer_PTest extends java.lang.Object
Unit tests for theGridControlDetailPanelRenderer
.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description GridControlDetailPanelRenderer_PTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
after()
static void
afterClass()
static void
beforeClass()
void
init()
void
testDetailReused()
Verify the reuse of detail renderings with caching.void
testEnabledChangeAppliedToDetailView_DoesNotOverrideReadonlyTrue()
If the table is read only, enabling it must not set the detail's readonly flag to false.void
testEnabledChangeAppliedToDetailView_OriginalReadonlyFalse()
If the detail view is not configured as readonly, the table sets it to read only when the table is disabled.void
testEnabledChangeAppliedToDetailView_OriginalReadonlyTrue()
If the detail view is configured as readonly, it must always stay readonly.void
testGetView()
void
testReadonlyChangeAppliedToDetailView_DoesNotOverrideEnabledFalse()
If the table is disabled, setting its read only flag to false, must not set the detail's readonly flag to false.void
testReadonlyChangeAppliedToDetailView_OriginalReadonlyFalse()
If the detail view is not configured as readonly, the table sets it to read only when the table is set to readonly.void
testReadonlyChangeAppliedToDetailView_OriginalReadonlyTrue()
If the detail view is configured as readonly, it must always stay readonly.void
testSashForm()
Tests that a sash form is used in order to allow resizing of the grid and detail panel composites.void
testScroll()
Tests that a horizontal and vertical scrollbar appears if the detail is to small.
-
-
-
Method Detail
-
beforeClass
public static void beforeClass()
-
afterClass
public static void afterClass()
-
init
public void init()
-
after
public void after()
-
testSashForm
public void testSashForm() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, EMFFormsNoRendererException
Tests that a sash form is used in order to allow resizing of the grid and detail panel composites.
-
testScroll
public void testScroll() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, EMFFormsNoRendererException
Tests that a horizontal and vertical scrollbar appears if the detail is to small.
-
testGetView
public void testGetView()
-
testEnabledChangeAppliedToDetailView_OriginalReadonlyFalse
public void testEnabledChangeAppliedToDetailView_OriginalReadonlyFalse()
If the detail view is not configured as readonly, the table sets it to read only when the table is disabled. Furthermore, the detail's readonly state is resetted when the table is enabled again.
-
testEnabledChangeAppliedToDetailView_OriginalReadonlyTrue
public void testEnabledChangeAppliedToDetailView_OriginalReadonlyTrue()
If the detail view is configured as readonly, it must always stay readonly.
-
testEnabledChangeAppliedToDetailView_DoesNotOverrideReadonlyTrue
public void testEnabledChangeAppliedToDetailView_DoesNotOverrideReadonlyTrue()
If the table is read only, enabling it must not set the detail's readonly flag to false.
-
testReadonlyChangeAppliedToDetailView_OriginalReadonlyFalse
public void testReadonlyChangeAppliedToDetailView_OriginalReadonlyFalse()
If the detail view is not configured as readonly, the table sets it to read only when the table is set to readonly.
-
testReadonlyChangeAppliedToDetailView_OriginalReadonlyTrue
public void testReadonlyChangeAppliedToDetailView_OriginalReadonlyTrue()
If the detail view is configured as readonly, it must always stay readonly.
-
testReadonlyChangeAppliedToDetailView_DoesNotOverrideEnabledFalse
public void testReadonlyChangeAppliedToDetailView_DoesNotOverrideEnabledFalse()
If the table is disabled, setting its read only flag to false, must not set the detail's readonly flag to false.
-
testDetailReused
public void testDetailReused() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, EMFFormsNoRendererException
Verify the reuse of detail renderings with caching.
-
-