Class SWTTableDatabindingLabel_PTest
- java.lang.Object
-
- org.eclipse.emf.ecp.view.spi.table.swt.SWTTableDatabindingLabel_PTest
-
public class SWTTableDatabindingLabel_PTest extends java.lang.Object
JUnit tests forTableControlSWTRenderer
testing the data binding of the table.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description SWTTableDatabindingLabel_PTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Set up executed before every test.void
testCreateLabelStyleBits()
void
testDatabindingServiceUsageAddToModel()
Tests the binding from the model to the table for the addition of a new element to the model.void
testDatabindingServiceUsageChangeModel()
Tests the binding from the model to the table for the change of an element of the model.void
testDatabindingServiceUsageInitialBinding()
Tests the initial binding from the model to the table.void
testDatabindingServiceUsageRemoveFromModel()
Tests the binding from the model to the table for the removal of a element from the model .void
testLabelServiceUsage()
-
-
-
Method Detail
-
setUp
public void setUp() throws DatabindingFailedException, NoLabelFoundException
Set up executed before every test. Mocks and registers the databinding and label service. Creates a newTableControlSWTRenderer
to be tested. Mocks needed parameters and contents (e.g. VControl, ViewModelContext).
-
testLabelServiceUsage
public void testLabelServiceUsage() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
testDatabindingServiceUsageInitialBinding
public void testDatabindingServiceUsageInitialBinding() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
Tests the initial binding from the model to the table.- Throws:
NoRendererFoundException
- Renderer could not be foundNoPropertyDescriptorFoundExeption
- Property descriptor could not be foundDatabindingFailedException
- if the databinidng failed
-
testDatabindingServiceUsageAddToModel
public void testDatabindingServiceUsageAddToModel() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
Tests the binding from the model to the table for the addition of a new element to the model.- Throws:
NoRendererFoundException
- Renderer could not be foundNoPropertyDescriptorFoundExeption
- Property descriptor could not be foundDatabindingFailedException
- if the databinidng failed
-
testDatabindingServiceUsageRemoveFromModel
public void testDatabindingServiceUsageRemoveFromModel() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
Tests the binding from the model to the table for the removal of a element from the model .- Throws:
NoRendererFoundException
- Renderer could not be foundNoPropertyDescriptorFoundExeption
- Property descriptor could not be foundDatabindingFailedException
- if the databinidng failed
-
testDatabindingServiceUsageChangeModel
public void testDatabindingServiceUsageChangeModel() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
Tests the binding from the model to the table for the change of an element of the model.- Throws:
NoRendererFoundException
- Renderer could not be foundNoPropertyDescriptorFoundExeption
- Property descriptor could not be foundDatabindingFailedException
- if the databinidng failed
-
testCreateLabelStyleBits
public void testCreateLabelStyleBits()
-
-