public class MultiReferenceRenderer_PTest extends Object
MultiReferenceSWTRenderer.| Modifier and Type | Class and Description |
|---|---|
static interface |
MultiReferenceRenderer_PTest.TestObservableValue
Helper Interface for mocking.
|
| Constructor and Description |
|---|
MultiReferenceRenderer_PTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Set up executed before every test.
|
static void |
setUpBeforeClass()
Get
Realm for the tests. |
void |
tearDown()
Unregister databinding and label service after every test.
|
void |
testDatabindingServiceUsageAddToModel()
Tests whether adding values to the model is reflected in the control.
|
void |
testDatabindingServiceUsageChangeModel()
Tests whether changing values of the model is reflected in the control.
|
void |
testDatabindingServiceUsageInitialBinding()
Test if the initial data binding is working.
|
void |
testDatabindingServiceUsageRemoveFromModel()
Tests whether removing values to the model is reflected in the control.
|
void |
testLabelServiceUsage()
Tests whether a
EMFFormsLabelProvider is used to get labels. |
public static void setUpBeforeClass()
Realm for the tests.public void setUp()
throws DatabindingFailedException,
NoLabelFoundException
MultiReferenceSWTRenderer to be tested. Mocks needed parameters and contents (e.g.
VControl, ViewModelContext).DatabindingFailedException - if the databinding failedNoLabelFoundExceptionpublic void tearDown()
public void testDatabindingServiceUsageInitialBinding()
throws NoRendererFoundException,
NoPropertyDescriptorFoundExeption,
DatabindingFailedException
NoRendererFoundException - Renderer could not be foundNoPropertyDescriptorFoundExeption - Property descriptor could not be foundDatabindingFailedException - if the databinding failedpublic void testDatabindingServiceUsageAddToModel()
throws NoRendererFoundException,
NoPropertyDescriptorFoundExeption,
DatabindingFailedException
NoRendererFoundException - Renderer could not be foundNoPropertyDescriptorFoundExeption - Property descriptor could not be foundDatabindingFailedException - if the databinding failedpublic void testDatabindingServiceUsageRemoveFromModel()
throws NoRendererFoundException,
NoPropertyDescriptorFoundExeption,
DatabindingFailedException
NoRendererFoundException - Renderer could not be foundNoPropertyDescriptorFoundExeption - Property descriptor could not be foundDatabindingFailedException - if the databinding failedpublic void testDatabindingServiceUsageChangeModel()
throws NoRendererFoundException,
NoPropertyDescriptorFoundExeption,
DatabindingFailedException
NoRendererFoundException - Renderer could not be foundNoPropertyDescriptorFoundExeption - Property descriptor could not be foundDatabindingFailedException - if the databinding failedpublic void testLabelServiceUsage()
throws NoRendererFoundException,
NoPropertyDescriptorFoundExeption,
DatabindingFailedException
EMFFormsLabelProvider is used to get labels.NoRendererFoundException - Renderer could not be foundNoPropertyDescriptorFoundExeption - Property descriptor could not be foundDatabindingFailedException - if the databinding failedCopyright © 2016. All rights reserved.