Search in sources :

Example 1 with MockService

use of org.exoplatform.mocks.MockService in project kernel by exoplatform.

the class TestContainer method testComponent.

public void testComponent() throws Exception {
    RootContainer rootContainer = RootContainer.getInstance();
    MockService mservice = (MockService) rootContainer.getComponentInstance("MockService");
    assertTrue(mservice != null);
    assertTrue(mservice.getPlugins().size() == 2);
}
Also used : MockService(org.exoplatform.mocks.MockService) RootContainer(org.exoplatform.container.RootContainer)

Aggregations

RootContainer (org.exoplatform.container.RootContainer)1 MockService (org.exoplatform.mocks.MockService)1