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.EMFFormsNoRendererException
public void testGetRendererInstanceNoFittingServices() throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext)
.
When no fitting EMFFormsRendererService is available then an IllegalStateException should be thrown.EMFFormsNoRendererException
public void testAddRendererService() throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext)
.
When one EMFFormsRendererService is registered then
EMFFormsRendererService.isApplicable(VElement,ViewModelContext)
is
called exactly once.EMFFormsNoRendererException
public void testRemoveRendererService() throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext)
.
When the only EMFFormsRendererService is removed then an IllegalStateException is thrown.EMFFormsNoRendererException
public void testGetRendererInstanceSamePrioDifferentVElement() throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext)
.
Check that the EMFFormsRendererService with the fitting VElement is used to get an AbstractSWTRenderer.EMFFormsNoRendererException
public void testGetRendererInstanceDifferentPrioSameVElement() throws EMFFormsNoRendererException
EMFFormsRendererFactory#getRendererInstance(VElement, ViewModelContext)
.
Check that the EMFFormsRendererService with the higher priority is used to get an AbstractSWTRenderer.EMFFormsNoRendererException
public 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 © 2019. All rights reserved.