Class EMFFormsLabelProviderImpl_ITest
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.label.EMFFormsLabelProviderImpl_ITest
-
public class EMFFormsLabelProviderImpl_ITest extends java.lang.Object
JUnit integration test that tests thatEMFFormsLabelProviderImpl
uses the correct services.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description EMFFormsLabelProviderImpl_ITest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Resets and newly configures the services for every test.static void
setUpBeforeClass()
Set up that is executed before every test case.void
tearDown()
Dispose the realm.static void
tearDownAfterClass()
Unregisters the services after every test.void
testServiceUsageDescriptionOneParam()
Tests thatEMFFormsLabelProviderImpl.getDescription(VDomainModelReference)
uses the databinding and emf specific services.void
testServiceUsageDescriptionTwoParam()
Tests thatEMFFormsLabelProviderImpl.getDescription(VDomainModelReference, EObject)
uses the databinding and emf specific services.void
testServiceUsageDisplayNameOneParam()
Tests thatEMFFormsLabelProviderImpl.getDisplayName(VDomainModelReference)
uses the databinding and emf specific services.void
testServiceUsageDisplayNameTwoParam()
Tests thatEMFFormsLabelProviderImpl.getDisplayName(VDomainModelReference, EObject)
uses the databinding and emf specific services.
-
-
-
Method Detail
-
setUpBeforeClass
public static void setUpBeforeClass() throws DatabindingFailedException, BundleResolver.NoBundleFoundException
Set up that is executed before every test case. Registers a databinding and an emf specific service. Mocks various objects for the tests.- Throws:
DatabindingFailedException
- should not happen, just needs to be thrown because the databinding service defines the throw in its interface.BundleResolver.NoBundleFoundException
-
setUp
public void setUp() throws DatabindingFailedException
Resets and newly configures the services for every test.- Throws:
DatabindingFailedException
- should not happen, just needs to be thrown because the databinding service defines the throw in its interface.
-
tearDown
public void tearDown()
Dispose the realm.
-
tearDownAfterClass
public static void tearDownAfterClass()
Unregisters the services after every test.
-
testServiceUsageDisplayNameOneParam
public void testServiceUsageDisplayNameOneParam() throws DatabindingFailedException, NoLabelFoundException
Tests thatEMFFormsLabelProviderImpl.getDisplayName(VDomainModelReference)
uses the databinding and emf specific services.- Throws:
DatabindingFailedException
- should not happen, just needs to be thrown because the databinding service defines the throw in its interface.NoLabelFoundException
-
testServiceUsageDescriptionOneParam
public void testServiceUsageDescriptionOneParam() throws DatabindingFailedException, NoLabelFoundException
Tests thatEMFFormsLabelProviderImpl.getDescription(VDomainModelReference)
uses the databinding and emf specific services.- Throws:
DatabindingFailedException
- should not happen, just needs to be thrown because the databinding service defines the throw in its interface.NoLabelFoundException
-
testServiceUsageDisplayNameTwoParam
public void testServiceUsageDisplayNameTwoParam() throws DatabindingFailedException, NoLabelFoundException
Tests thatEMFFormsLabelProviderImpl.getDisplayName(VDomainModelReference, EObject)
uses the databinding and emf specific services.- Throws:
DatabindingFailedException
- should not happen, just needs to be thrown because the databinding service defines the throw in its interface.NoLabelFoundException
-
testServiceUsageDescriptionTwoParam
public void testServiceUsageDescriptionTwoParam() throws DatabindingFailedException, NoLabelFoundException
Tests thatEMFFormsLabelProviderImpl.getDescription(VDomainModelReference, EObject)
uses the databinding and emf specific services.- Throws:
DatabindingFailedException
- should not happen, just needs to be thrown because the databinding service defines the throw in its interface.NoLabelFoundException
-
-