Package org.apache.qpid.disttest.message

Examples of org.apache.qpid.disttest.message.StartTestCommand


            queuesCreated = true;
            Runtime.getRuntime().addShutdownHook(_removeQueuesShutdownHook);

            sendTestSetupCommands();
            awaitCommandResponses();
            sendCommandToParticipatingClients(new StartTestCommand());
            awaitCommandResponses();

            awaitTestResults();

            sendCommandToParticipatingClients(new TearDownTestCommand());
View Full Code Here


    public void testClientCanStartPerformingTests() throws Exception
    {
        createTestProducer(TEST_SESSION_NAME, TEST_PRODUCER_NAME, TEST_DESTINATION);

        sendCommandToClient(new StartTestCommand());

        validateStartTestResponseAndParticipantResults(CommandType.PRODUCER_PARTICIPANT_RESULT);

        assertState(_client, RUNNING_TEST);
    }
View Full Code Here

    public void testParticipantsSendResults() throws Exception
    {
        createTestProducer(TEST_SESSION_NAME, TEST_PRODUCER_NAME, TEST_DESTINATION);

        sendCommandToClient(new StartTestCommand());

        validateStartTestResponseAndParticipantResults(CommandType.PRODUCER_PARTICIPANT_RESULT);
    }
View Full Code Here

    }

    public void testClientCannotStartPerformingTestsInNonReadyState() throws Exception
    {
        assertState(_client, READY);
        sendCommandAndValidateResponse(new StartTestCommand(), true);
        assertState(_client, RUNNING_TEST);

        // Send another start test command
        sendCommandAndValidateResponse(new StartTestCommand(), false /*should reject duplicate start command*/);
        assertState(_client, RUNNING_TEST);
    }
View Full Code Here

    public void testSendCommandToAllParticipatingClients()
    {
        _testRunner = new TestRunner(_participatingClients, mock(TestInstance.class), _respondingJmsDelegate, COMMAND_RESPONSE_TIMEOUT, TEST_RESULT_TIMEOUT);

        StartTestCommand startTestCommand = new StartTestCommand();
        _testRunner.sendCommandToParticipatingClients(startTestCommand);

        verify(_respondingJmsDelegate).sendCommandToClient(CLIENT1_REGISTERED_NAME, startTestCommand);
    }
View Full Code Here

        verify(_delegate).createConsumer(command);
    }

    public void testStartTest() throws Exception
    {
        final StartTestCommand command = new StartTestCommand();
        _visitor.visit(command);
        verify(_client).startTest();
    }
View Full Code Here

            queuesCreated = true;
            Runtime.getRuntime().addShutdownHook(_removeQueuesShutdownHook);

            sendTestSetupCommands();
            awaitCommandResponses();
            sendCommandToParticipatingClients(new StartTestCommand());
            awaitCommandResponses();

            awaitTestResults();

            sendCommandToParticipatingClients(new TearDownTestCommand());
View Full Code Here

            queuesCreated = true;
            Runtime.getRuntime().addShutdownHook(_removeQueuesShutdownHook);

            sendTestSetupCommands();
            awaitCommandResponses();
            sendCommandToParticipatingClients(new StartTestCommand());
            awaitCommandResponses();

            awaitTestResults();

            sendCommandToParticipatingClients(new TearDownTestCommand());
View Full Code Here

        verify(_delegate).createConsumer(command);
    }

    public void testStartTest() throws Exception
    {
        final StartTestCommand command = new StartTestCommand();
        _visitor.visit(command);
        verify(_client).startTest();
    }
View Full Code Here

    public void testSendCommandToAllParticipatingClients()
    {
        _testRunner = new TestRunner(_participatingClients, mock(TestInstance.class), _respondingJmsDelegate, COMMAND_RESPONSE_TIMEOUT, TEST_RESULT_TIMEOUT);

        StartTestCommand startTestCommand = new StartTestCommand();
        _testRunner.sendCommandToParticipatingClients(startTestCommand);

        verify(_respondingJmsDelegate).sendCommandToClient(CLIENT1_REGISTERED_NAME, startTestCommand);
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.disttest.message.StartTestCommand

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.