org.eclipse.emfforms.internal.core.services.label
Class EMFFormsLabelProviderDefaultImpl_ITest

java.lang.Object
  extended by org.eclipse.emfforms.internal.core.services.label.EMFFormsLabelProviderDefaultImpl_ITest

public class EMFFormsLabelProviderDefaultImpl_ITest
extends Object

JUnit integration test that tests that EMFFormsLabelProviderDefaultImpl uses the correct services.

Author:
Lucas Koehler

Constructor Summary
EMFFormsLabelProviderDefaultImpl_ITest()
           
 
Method Summary
 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 tearDownClass()
          Unregisters the services after every test.
 void testServiceUsageDescriptionOneParam()
          Tests that EMFFormsLabelProviderDefaultImpl.getDescription(VDomainModelReference) uses the databinding and emf specific services.
 void testServiceUsageDescriptionTwoParam()
          Tests that EMFFormsLabelProviderDefaultImpl.getDescription(VDomainModelReference, EObject) uses the databinding and emf specific services.
 void testServiceUsageDisplayNameOneParam()
          Tests that EMFFormsLabelProviderDefaultImpl.getDisplayName(VDomainModelReference) uses the databinding and emf specific services.
 void testServiceUsageDisplayNameTwoParam()
          Tests that EMFFormsLabelProviderDefaultImpl.getDisplayName(VDomainModelReference, EObject) uses the databinding and emf specific services.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMFFormsLabelProviderDefaultImpl_ITest

public EMFFormsLabelProviderDefaultImpl_ITest()
Method Detail

setUpBeforeClass

public static void setUpBeforeClass()
                             throws DatabindingFailedException,
                                    org.osgi.framework.InvalidSyntaxException
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.
org.osgi.framework.InvalidSyntaxException - thrown by OSGI

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.


tearDownClass

public static void tearDownClass()
Unregisters the services after every test.


testServiceUsageDisplayNameOneParam

public void testServiceUsageDisplayNameOneParam()
                                         throws DatabindingFailedException,
                                                NoLabelFoundException
Tests that EMFFormsLabelProviderDefaultImpl.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 - should not be thrown

testServiceUsageDescriptionOneParam

public void testServiceUsageDescriptionOneParam()
                                         throws DatabindingFailedException,
                                                NoLabelFoundException
Tests that EMFFormsLabelProviderDefaultImpl.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 - should not be thrown

testServiceUsageDisplayNameTwoParam

public void testServiceUsageDisplayNameTwoParam()
                                         throws DatabindingFailedException,
                                                NoLabelFoundException
Tests that EMFFormsLabelProviderDefaultImpl.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 - Should not be thrown

testServiceUsageDescriptionTwoParam

public void testServiceUsageDescriptionTwoParam()
                                         throws DatabindingFailedException,
                                                NoLabelFoundException
Tests that EMFFormsLabelProviderDefaultImpl.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 - Should not be thrown


Copyright © 2015. All Rights Reserved.