org.eclipse.emf.ecp.core.rap.test
Class RAPFactories_PTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.emf.ecp.core.rap.test.RAPFactories_PTest
All Implemented Interfaces:
junit.framework.Test

public class RAPFactories_PTest
extends junit.framework.TestCase

Author:
neilmack Tests the service factory classes from the org.eclipse.emf.ecp.core.rap package.

Constructor Summary
RAPFactories_PTest()
           
 
Method Summary
 void testDifferentSessionIdsECPObserverBus()
          Test that when the ECPObserverBusFactory is asked for a ECPObserverBus from 2 different sessions, that 2 different ECPObserverBus's are returned.
 void testDifferentSessionIdsECPProjectManager()
          Test that when the ECPProjectManagerFactory is asked for a ECPProjectManager from 2 different sessions, that 2 different ECPProjectManagers are returned.
 void testDifferentSessionIdsECPProviderRegistry()
          Test that when the ECPProviderRegistryFactory is asked for a ECPProviderRegistry from 2 different sessions, that 2 different ECPProviderRegistry's are returned.
 void testDifferentSessionIdsECPRepositoryManager()
          Test that when the ECPRepositoryManagerFactory is asked for a ECPRepositoryManager from 2 different sessions, that 2 different ECPRepositoryManagers are returned.
 void testRetrieveMock()
          Test retrieval of the mock SessionProvider service.
 void testSameSessionIdsECPObserverBus()
          Test that when the ECPObserverBusFactory is asked for a ECPObserverBus 2 times from the same session, that the same ECPObserverBus is returned.
 void testSameSessionIdsECPProjectManager()
          Test that when the ECPProjectManageractory is asked for a ECPProjectManager 2 times from the same session, that the same ECPProjectManager is returned.
 void testSameSessionIdsECPProviderRegistry()
          Test that when the ECPProviderRegistryFactory is asked for a ECPProviderRegistry 2 times from the same session, that the same ECPProviderRegistry is returned.
 void testSameSessionIdsECPRepositoryManager()
          Test that when the ECPRepositoryManagerFactory is asked for a ECPRepositoryManager 2 times from the same session, that the same ECPRepositoryManager is returned.
 void testServices()
          test that the ECPProjectManagerFacotry returns a working ECPProjectManager.
 
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RAPFactories_PTest

public RAPFactories_PTest()
Method Detail

testRetrieveMock

public void testRetrieveMock()
Test retrieval of the mock SessionProvider service.


testServices

public final void testServices()
                        throws ECPProjectWithNameExistsException
test that the ECPProjectManagerFacotry returns a working ECPProjectManager.

Throws:
ECPProjectWithNameExistsException - in case of exception

testDifferentSessionIdsECPProjectManager

public void testDifferentSessionIdsECPProjectManager()
Test that when the ECPProjectManagerFactory is asked for a ECPProjectManager from 2 different sessions, that 2 different ECPProjectManagers are returned.


testSameSessionIdsECPProjectManager

public void testSameSessionIdsECPProjectManager()
Test that when the ECPProjectManageractory is asked for a ECPProjectManager 2 times from the same session, that the same ECPProjectManager is returned.


testDifferentSessionIdsECPObserverBus

public final void testDifferentSessionIdsECPObserverBus()
Test that when the ECPObserverBusFactory is asked for a ECPObserverBus from 2 different sessions, that 2 different ECPObserverBus's are returned.


testSameSessionIdsECPObserverBus

public final void testSameSessionIdsECPObserverBus()
Test that when the ECPObserverBusFactory is asked for a ECPObserverBus 2 times from the same session, that the same ECPObserverBus is returned.


testDifferentSessionIdsECPProviderRegistry

public final void testDifferentSessionIdsECPProviderRegistry()
Test that when the ECPProviderRegistryFactory is asked for a ECPProviderRegistry from 2 different sessions, that 2 different ECPProviderRegistry's are returned.


testSameSessionIdsECPProviderRegistry

public final void testSameSessionIdsECPProviderRegistry()
Test that when the ECPProviderRegistryFactory is asked for a ECPProviderRegistry 2 times from the same session, that the same ECPProviderRegistry is returned.


testDifferentSessionIdsECPRepositoryManager

public final void testDifferentSessionIdsECPRepositoryManager()
Test that when the ECPRepositoryManagerFactory is asked for a ECPRepositoryManager from 2 different sessions, that 2 different ECPRepositoryManagers are returned.


testSameSessionIdsECPRepositoryManager

public final void testSameSessionIdsECPRepositoryManager()
Test that when the ECPRepositoryManagerFactory is asked for a ECPRepositoryManager 2 times from the same session, that the same ECPRepositoryManager is returned.



Copyright © 2015. All Rights Reserved.