Package org.rhq.enterprise.server.test

Examples of org.rhq.enterprise.server.test.TestServerCommunicationsService$MockServiceContainer


        driftManager = LookupUtil.getDriftManager();
        overlord = LookupUtil.getSubjectManager().getOverlord();

        driftServerService = new DriftServerServiceImpl();

        TestServerCommunicationsService agentServiceContainer = prepareForTestAgents();
        agentServiceContainer.driftService = new TestDefService();

        prepareScheduler();

        DriftServerPluginService driftServerPluginService = new DriftServerPluginService(getTempDir());
View Full Code Here


        configurationManager = LookupUtil.getConfigurationManager();
        resourceManager = LookupUtil.getResourceManager();

        prepareScheduler();

        TestServerCommunicationsService agentServiceContainer = prepareForTestAgents();
        TestServices testServices = new TestServices();
        agentServiceContainer.configurationService = testServices;
        agentServiceContainer.discoveryService = testServices;

        overlord = LookupUtil.getSubjectManager().getOverlord();
View Full Code Here

        pluginUpdateProgressWaiter = new CountDownLatch(1);

        updatePluginsCalled = false;

        agentServiceContainer = prepareForTestAgents(new TestServerCommunicationsService() {
            @Override
            public AgentClient getKnownAgentClient(Agent agent) {
                AgentClient ret = new TestAgentClient(agent, this) {
                    @Override
                    public void updatePlugins() {
View Full Code Here

        when(mockedMeasurementService.getRealTimeMeasurementValue(eq(resource1.getId()), any(Set.class))).thenReturn(
            new HashSet<MeasurementData>(Arrays.asList(makeMeasurement(time1, schedule1.getId(), value1, name1))));
        when(mockedMeasurementService.getRealTimeMeasurementValue(eq(resource2.getId()), any(Set.class))).thenReturn(
            new HashSet<MeasurementData>(Arrays.asList(makeMeasurement(time2, schedule2.getId(), value2, name2),
                makeMeasurement(time3, schedule3.getId(), value3, name3))));
        TestServerCommunicationsService agentServiceContainer = prepareForTestAgents();
        agentServiceContainer.measurementService = mockedMeasurementService;
    }
View Full Code Here

    }

    // Private  --------------------------------------------

    private void setupTestEnvironment() throws Exception {
        TestServerCommunicationsService agentServiceContainer = prepareForTestAgents();
        agentServiceContainer.contentService = contentAgentService;

        getTransactionManager().begin();

        try {
View Full Code Here

        resourceManager = LookupUtil.getResourceManager();
        discoveryBoss = LookupUtil.getDiscoveryBoss();
        overlord = LookupUtil.getSubjectManager().getOverlord();

        prepareScheduler();
        TestServerCommunicationsService agentServiceContainer = prepareForTestAgents();
        agentServiceContainer.resourceFactoryService = mockAgentService;

        //the server plugins are in play when package types are involved
        StandardServerPluginService serverPluginService = new StandardServerPluginService(getTempDir());
        prepareCustomServerPluginService(serverPluginService);
View Full Code Here

        operationManager = LookupUtil.getOperationManager();
        schedulerManager = LookupUtil.getSchedulerBean();

        operationServerService = new OperationServerServiceImpl();

        TestServerCommunicationsService agentServiceContainer = prepareForTestAgents();
        agentServiceContainer.operationService = new TestConfigService();

        prepareScheduler();

        simulatedOperation_Sleep = 500L;
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.test.TestServerCommunicationsService$MockServiceContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.