Class TableControlDetailPanelRenderer_PTest
- java.lang.Object
-
- org.eclipse.emf.ecp.view.spi.table.swt.TableControlDetailPanelRenderer_PTest
-
public class TableControlDetailPanelRenderer_PTest extends java.lang.Object
Unit tests for theTableControlDetailPanelRenderer
.- Author:
- Eugen Neufeld
-
-
Constructor Summary
Constructors Constructor Description TableControlDetailPanelRenderer_PTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
tearDown()
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
testScroll()
Tests that a horizontal and vertical scrollbar appears if the detail is to small.
-
-
-
Method Detail
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
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.
-
testScroll
public void testScroll() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, EMFFormsNoRendererException
Tests that a horizontal and vertical scrollbar appears if the detail is to small.
-
-