|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.view.internal.control.multireference.MultiReferenceRenderer_PTest
public class MultiReferenceRenderer_PTest
JUnit plugin tests for MultiReferenceSWTRenderer
.
Nested Class Summary | |
---|---|
static interface |
MultiReferenceRenderer_PTest.TestObservableValue
Helper Interface for mocking. |
Constructor Summary | |
---|---|
MultiReferenceRenderer_PTest()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiReferenceRenderer_PTest()
Method Detail |
---|
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 failed
NoLabelFoundException
public void tearDown()
public void testDatabindingServiceUsageInitialBinding() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
NoRendererFoundException
- Renderer could not be found
NoPropertyDescriptorFoundExeption
- Property descriptor could not be found
DatabindingFailedException
- if the databinding failedpublic void testDatabindingServiceUsageAddToModel() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
NoRendererFoundException
- Renderer could not be found
NoPropertyDescriptorFoundExeption
- Property descriptor could not be found
DatabindingFailedException
- if the databinding failedpublic void testDatabindingServiceUsageRemoveFromModel() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
NoRendererFoundException
- Renderer could not be found
NoPropertyDescriptorFoundExeption
- Property descriptor could not be found
DatabindingFailedException
- if the databinding failedpublic void testDatabindingServiceUsageChangeModel() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
NoRendererFoundException
- Renderer could not be found
NoPropertyDescriptorFoundExeption
- Property descriptor could not be found
DatabindingFailedException
- if the databinding failedpublic void testLabelServiceUsage() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
EMFFormsLabelProvider
is used to get labels.
NoRendererFoundException
- Renderer could not be found
NoPropertyDescriptorFoundExeption
- Property descriptor could not be found
DatabindingFailedException
- if the databinding failed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |