public class EMFFormsRendererFactory_Test extends Object
EMFFormsRendererFactoryImpl.| Constructor and Description |
|---|
EMFFormsRendererFactory_Test() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Setup the EMFFormsRendererFactoryImpl.
|
void |
testAddAdditionalRendererService()
|
void |
testAddRendererService()
|
void |
testGetAdditionalRendererInstanceNoFittingServices()
|
void |
testGetRendererInstanceDifferentPrioSameVElement()
|
void |
testGetRendererInstanceNoFittingServices()
|
void |
testGetRendererInstanceNoRendererServices()
|
void |
testGetRendererInstanceSamePrioDifferentVElement()
|
void |
testRemoveAdditionalRendererService()
|
void |
testRemoveRendererService()
|
public void setUp()
public void testGetRendererInstanceNoRendererServices()
throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext).
When no EMFFormsRendererService is registered then an IllegalStateException should be thrown.EMFFormsNoRendererExceptionpublic void testGetRendererInstanceNoFittingServices()
throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext).
When no fitting EMFFormsRendererService is available then an IllegalStateException should be thrown.EMFFormsNoRendererExceptionpublic void testAddRendererService()
throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext).
When one EMFFormsRendererService is registered then
EMFFormsRendererService.isApplicable(VElement,ViewModelContext) is
called exactly once.EMFFormsNoRendererExceptionpublic void testRemoveRendererService()
throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext).
When the only EMFFormsRendererService is removed then an IllegalStateException is thrown.EMFFormsNoRendererExceptionpublic void testGetRendererInstanceSamePrioDifferentVElement()
throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext).
Check that the EMFFormsRendererService with the fitting VElement is used to get an AbstractSWTRenderer.EMFFormsNoRendererExceptionpublic void testGetRendererInstanceDifferentPrioSameVElement()
throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext).
Check that the EMFFormsRendererService with the higher priority is used to get an AbstractSWTRenderer.EMFFormsNoRendererExceptionpublic void testAddAdditionalRendererService()
EMFFormsRendererFactory#getAdditionalRendererInstances(VElement, ViewModelContext).
When one EMFFormsRendererService is registered then
EMFFormsAdditionalRendererService.isApplicable(VElement, ViewModelContext) is
called exactly once.public void testRemoveAdditionalRendererService()
public void testGetAdditionalRendererInstanceNoFittingServices()
EMFFormsRendererFactory#getAdditionalRendererInstances(VElement, ViewModelContext).
When no fitting EMFFormsRendererService is available then the collection is empty.Copyright © 2020. All rights reserved.